onClientResourceStart
ClientEvent
Fired when a resource has finished starting, after its scripts have run.
addEventHandler("onClientResourceStart", root, function(resource startedResource) … end)
Handler parameters
| Name | Type | Description |
|---|---|---|
| startedResource | resource | The resource that started. |
Source
The element of the resource that started.
With a handler on resourceRoot, only the resource itself; with one on root, every resource.
Example
addEventHandler("onClientResourceStart", resourceRoot, function(startedResource)
outputDebugString(getResourceName(startedResource) .. " is ready")
end)