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 17, 2014 · 21 revisions

Useful Scripting Resources

IDs Player Stunts Colours Other
Pause Menus Player Actions Stunt Types HUD Colours Mouse Buttons
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></td>

</tr>
<tr>

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

</tr>
<tr>

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

</tr>
<tr>

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

</tr>
<tr>

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

</tr>
<tr>

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

</tr>
<tr>

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

</tr>
<tr>

	<td><a href="https://github.com/KingHual/SA-MP-Plus/wiki/TogglePlayerVehicleBlips">TogglePlayerVehicleBlips</a></td>
<td><a href="https://github.com/KingHual/SA-MP-Plus/wiki/TogglePlayerInfiniteOxygen">TogglePlayerInfiniteOxygen</a></td>
<td><a href="https://github.com/KingHual/SA-MP-Plus/wiki/ToggleWaterBuoyancy">ToggleWaterBuoyancy</a></td>
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