- Documentation
- Server events
- onResourceStart
Event
onResourceStart
A resource started. Attached to resourceRoot it only arrives for your own resource, to root for every resource.
Handler
addEventHandler("onResourceStart", root, function(startedResource) ... end)Parameters
startedResourceresource- The resource.
Source
source is the resource root.
Example
addEventHandler("onResourceStart", resourceRoot, function()
outputServerLog(getResourceName(getThisResource()) .. " gotowy")
end)