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 14, 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
GetPlayerAircraftHeight IsPlayerInPauseMenu SetPlayerAircraftHeight
GetPlayerJetpackHeight IsUsingSAMPP SetBlurIntensity
GetPlayerRadioStation SetPlayerGameSpeed
GetPlayerResolution SetPlayerHUDComponentColour
GetPlayerVehicleBlips SetPlayerNoReload
SetPlayerPedAnims
SetPlayerJetpackHeight
SetPlayerCheckpointEx
SetPlayerCheckpointColour
SetRadioStationForPlayer
SetPlayerRaceCheckpointEx
SetPlayerRaceCheckpointColour
SetWaveHeightForPlayer
SetWaveHeightForAll
	<td><a href="https://github.com/KingHual/SA-MP-Plus/wiki/ToggleHUDComponentForPlayer">ToggleHUDComponentForPlayer</a>

</tr>
<tr>

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

</tr>
<tr>

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

</tr>
<tr>

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

</tr>
<tr>

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

</tr>
<tr>

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

</tr>
<tr>

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

</tr>
<tr>

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

</tr>
T

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>
<tr>
	<td> <a href="https://github.com/KingHual/SA-MP-Plus/wiki/OnPlayerDrinkSprunk">OnPlayerDrinkSprunk</td></a>
	<td> </td>
</tr>
Callbacks
OnPlayerOpenPauseMenu OnPlayerClosePauseMenu
Clone this wiki locally