M MY Multiplayer: Wiki
Side
Kind

onClientResourceStart

ClientEvent

Fired when a resource has finished starting, after its scripts have run.

addEventHandler("onClientResourceStart", 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("onClientResourceStart", resourceRoot, function(startedResource)
    outputDebugString(getResourceName(startedResource) .. " is ready")
end)

See also