onResourceStart
ServerEvent
Fired when a resource has finished starting, after its scripts and maps have run.
addEventHandler("onResourceStart", 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("onResourceStart", root, function(startedResource)
outputServerLog("started " .. getResourceName(startedResource))
end)