Skip to content
This repository was archived by the owner on Feb 19, 2020. It is now read-only.

Scripting

GtakillerIV edited this page Nov 13, 2014 · 21 revisions

Useful Scripting Resources

IDs Player Stunts Colours
Pause Menus Player Actions Stunt Types
Radio Stations
HUD Components

Functions

Note Some examples require sscanf and ZCMD.

G I S T
GetPlayerAircraftHeight IsPlayerInPauseMenu SetPlayerAircraftHeight ToggleHUDComponentForPlayer
GetPlayerJetpackHeight IsUsingSAMPP SetBlurIntensity TogglePauseMenuAbility
GetPlayerRadioStation SetPlayerGameSpeed TogglePlayerAction
GetPlayerResolution SetPlayerHUDComponentColour TogglePlayerDriveOnWater
GetPlayerVehicleBlips SetPlayerNoReload TogglePlayerFrozen
SetPlayerPedAnims TogglePlayerSwitchReload
SetPlayerJetpackHeight TogglePlayerInfiniteRun
SetPlayerCheckpointEx TogglePlayerVehicleBlips
SetPlayerCheckpointColour
SetRadioStationForPlayer
SetPlayerRaceCheckpointEx
SetPlayerRaceCheckpointColour
SetWaveHeightForPlayer
SetWaveHeightForAll

Callbacks

<tr>
	<td> <a href="https://github.com/KingHual/SA-MP-Plus/wiki/OnPlayerEnterPauseSubMenu">OnPlayerEnterPauseSubMenu</td></a>
	<td> <a href="https://github.com/KingHual/SA-MP-Plus/wiki/OnDriverDriveByShot">OnDriverDriveByShot</td></a>
</tr>

<tr>
	<td> <a href="https://github.com/KingHual/SA-MP-Plus/wiki/OnPlayerStunt">OnPlayerStunt</td></a>
	<td> <a href="https://github.com/KingHual/SA-MP-Plus/wiki/OnPlayerResolutionChange">OnPlayerResolutionChange</td></a>
</tr>

<tr>
	<td> <a href="https://github.com/KingHual/SA-MP-Plus/wiki/OnPlayerSAMPPConnect">OnPlayerSAMPPConnect</td></a>
	<td> <a href="https://github.com/KingHual/SA-MP-Plus/wiki/OnPlayerSAMPPJoin">OnPlayerSAMPPJoin</td></a>
</tr>

<tr>
	<td> <a href="https://github.com/KingHual/SA-MP-Plus/wiki/OnPlayerClick">OnPlayerClick</td></a>
	<td> <a href="https://github.com/KingHual/SA-MP-Plus/wiki/OnPlayerChangeRadioStation">OnPlayerChangeRadioStation</td></a>
</tr>
Callbacks
OnPlayerOpenPauseMenu OnPlayerClosePauseMenu
Clone this wiki locally