Scripting/Client/Events/onScriptLoad

All client scripts finished downloading and ran. Build your GUI here.

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 );
}

Section: Client events

Categories: Client events | Client events