Scripting/Server/Events/onScriptLoad
Called once after every server script file has been loaded. Create your world here (vehicles, pickups, timers). Also called again after ReloadScripts().
Contents
Syntax
onScriptLoad()Example
function onScriptLoad()
{
print( "My gamemode loaded" );
SetTime( 12, 0 );
SetWeather( 0 );
CreateVehicle( 101, Vector( 1000.0, -870.0, 15.5 ), 90.0 );
}Related pages
Section: Lifecycle and connection
Categories: Server events | Lifecycle and connection