Scripting/Squirrel/Events/Misc/onScriptLoad

From VC-MP Wiki

Jump to: navigation, search

This is called when a new Squirrel script is loaded. This will only be called in the VM the script is using.

Syntax

function onScriptLoad()

Parameters

  • none

Example

This example will print the script name to the console when the script is loaded.

function onScriptLoad()
{
     print( "== Loaded Squirrel VC:MP Script ==" );
}

Related Events

Personal tools
squirrel scripting