-
Please note that some of the listed animations may not be useable in SA-MP.
AIRPORT
thrw_barl_thrw
Attractors
Stepsit_in
Stepsit_loop
Stepsit_out
BAR
Barcustom_get
Barcustom_loop
Barcustom_order
BARman_idle
Barserve_bottle
Barserve_give
Barserve_glass
Barserve_in
Barserve_loop
Barserve_order
dnk_stndF_loop
dnk_stndM_loop
-
To be used with SetPlayerFightingStyle and GetPlayerFightingStyle.
4 - FIGHT_STYLE_NORMAL
5 - FIGHT_STYLE_BOXING
6 - FIGHT_STYLE_KUNGFU
7 - FIGHT_STYLE_KNEEHEAD
15 - FIGHT_STYLE_GRABKICK
16 - FIGHT_STYLE_ELBOW
-
Description:
Check which keys a player is pressing.
Parameters:
(playerid, &keys, &updown, &leftright)
playerid
The ID of the player to get the keys of.
keys
A set of bits containing the player's key states. This value is what is called a bit mask.
updown
Up/down state.
leftright
Left/right state.
Return Values:
This functi
-
To be used with SetPlayerMapIcon.
Important
Note
Map icon ID 1 (), 2 (), 4 (), and 56 () will cause your game to crash if you have map legends enabled while viewing the map.
ID
Icon
Name
Notes
0
Colored Square/Triangle (Dynamic)
Can be used in any colour. Used for Single Player objectives.
1
White Squar
-
To be used with ShowPlayerMarkers.
PLAYER_MARKERS_MODE_OFF (0)
PLAYER_MARKERS_MODE_GLOBAL (1)
PLAYER_MARKERS_MODE_STREAMED (2)
-
To be used with GetPlayerState or the OnPlayerStateChange callback.
Often used
ID
Macro
Description
0
PLAYER_STATE_NONE
Empty (while initializing)
1
PLAYER_STATE_ONFOOT
Player is on foot
2
PLAYER_STATE_DRIVER
Player is the driver of a vehicle
3
PLAYER_STATE_PASSENGER
Player is passenger of a vehicle
7
-
These are the IDs that can be set in the SetPlayerSpecialAction function or returned in the GetPlayerSpecialAction function.
0 - SPECIAL_ACTION_NONE
2 - SPECIAL_ACTION_USEJETPACK
5 - SPECIAL_ACTION_DANCE1
6 - SPECIAL_ACTION_DANCE2
7 - SPECIAL_ACTION_DANCE3
8 - SPECIAL_ACTION_DANCE4
10 - SPECIAL_ACTION_HANDSUP
11 - SPECIAL_ACTION_USECELLPHONE
12 - SPECIAL_ACTION_SITTING *
13 - SPECIAL_ACTION_STOPUSECELLPHONE
These special actions were added in SA-MP
-
To be used with SetPlayerSkillLevel.
Skill Levels
0 - WEAPONSKILL_PISTOL
1 - WEAPONSKILL_PISTOL_SILENCED
2 - WEAPONSKILL_DESERT_EAGLE
3 - WEAPONSKILL_SHOTGUN
4 - WEAPONSKILL_SAWNOFF_SHOTGUN
5 - WEAPONSKILL_SPAS12_SHOTGUN
6 - WEAPONSKILL_MICRO_UZI
7 - WEAPONSKILL_MP5
8 - WEAPONSKILL_AK47
9 - WEAPONSKILL_M4
10 - WEAPONSKILL_SNIPERRIFLE
-
For use with GetPlayerWeaponState.
ID
Definition
Description
-1
WEAPONSTATE_UNKNOWN
Unknown (Set when in a vehicle)
0
WEAPONSTATE_NO_BULLETS
The weapon has no remaining ammo
1
WEAPONSTATE_LAST_BULLET
The weapon has one remaining bullet
2
WEAPONSTATE_MORE_BULLETS
The weapon has multiple bullets
3
WEAPONST