OnStop

On resource stop

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 is stopped

----

Example

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

Last updated