OnStart

On resource start

Parameters description

ParameterTypeDescriptionDefault

resName

string|'any'|?

The resource name or nil for the cur one

current resource

cb

fun(resource: string)

The function that triggers when resource start

----

Example

HRLib.OnStart('any', function(resource)
    print(('The resource %s was started'):format(resource))
end)

Last updated