OnResourceStart

From Wiki G1R-MP G1 Remake Multiplayer
Jump to navigation Jump to search

onResourceStart

Triggered after the current server resource has started and its scripts are ready.

Availability

This event is available in server-side scripts.

Callback signature

onResourceStart()

Parameters

This event does not pass parameters to its handler.

Examples

Handle the event:

addEventHandler("onResourceStart", resourceRoot, function()
    outputDebugString("Resource started")
end)

Notes

  • Attach this event to resourceRoot to handle only the current resource.