Scripting/Client/Events/onScriptLoad
All client scripts finished downloading and ran. Build your GUI here.
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
- onScriptUnload
- onClientSpawn
- onClientRender
- onClientCommand
- onClientMouseMove
- onClientMouseClick
- onClientMouseWheel
- onClientKeyStateChange
- onGameWindowResize
- onObjectShot
Section: Client events
Categories: Client events | Client events