OnGameModeInit

From SA-MP Wiki

Jump to: navigation, search

Description:

This callback is triggered when the gamemode starts.


Parameters:
This callback has no parameters.


Return Values:

This callback does not handle returns.


Image:32px-Ambox_warning_orange.png

Note

This function can also be used in a filterscript to detect if the gamemode changes with RCON commands like changemode or gmx, as changing the gamemode does not reload a filterscript.


Example Usage:

public OnGameModeInit()
{
    print("Gamemode started!");
    return 1;
}

Related Callbacks

The following callbacks might be useful as well, as they're related to this callback in one way or another.

Personal tools
In other languages