onClientResourceStop
ClientEvent
Fired when a resource is about to stop, while its scripts and elements still exist.
addEventHandler("onClientResourceStop", root, function(resource stoppedResource) … end)
Handler parameters
| Name | Type | Description |
|---|---|---|
| stoppedResource | resource | The resource about to stop. |
Source
The element of the resource about to stop.
With a handler on resourceRoot, only the resource itself; with one on root, every resource.
Example
addEventHandler("onClientResourceStop", resourceRoot, function(stoppedResource)
outputDebugString(getResourceName(stoppedResource) .. " is stopping")
end)