M MY Multiplayer: Wiki
Side
Kind

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

NameTypeDescription
startedResourceresourceThe 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)

See also