Constants
Numeric identifiers available as bare globals.
These names are plain integer values. Use them directly, e.g. SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DANCE1).
| Constant | Value | Use |
|---|---|---|
BONE_SPINE | 1 | Attached object bone |
BONE_HEAD | 2 | Attached object bone |
BONE_LEFT_HAND | 5 | Attached object bone |
BONE_RIGHT_HAND | 6 | Attached object bone |
SPECIAL_ACTION_NONE | 0 | Clear special action |
SPECIAL_ACTION_HANDSUP | 2 | Hands up |
SPECIAL_ACTION_DANCE1 | 5 | Dance animation |
MAX_PLAYERS | 1000 | Array sizing / loops |
INVALID_PLAYER_ID | 65535 | No player |
INVALID_VEHICLE_ID | 65535 | No vehicle |
DOWNLOAD_REQUEST_EMPTY | 0 | OnPlayerRequestDownload type |
DOWNLOAD_REQUEST_MODEL_FILE | 1 | OnPlayerRequestDownload type |
DOWNLOAD_REQUEST_TEXTURE_FILE | 2 | OnPlayerRequestDownload type |
MIN_CUSTOM_SKIN_ID | 20001 | Custom skin range |
MAX_CUSTOM_SKIN_ID | 30000 | Custom skin range |
MIN_CUSTOM_OBJECT_ID | -30000 | Custom object range |
MAX_CUSTOM_OBJECT_ID | -1000 | Custom object range |
| Constant | Value |
|---|---|
BONE_HEAD | 2 |
BONE_LEFT_HAND | 5 |
BONE_PELVIS | 1 |
BONE_RIGHT_HAND | 6 |
BONE_SPINE | 1 |
DOWNLOAD_REQUEST_EMPTY | 0 |
DOWNLOAD_REQUEST_MODEL_FILE | 1 |
DOWNLOAD_REQUEST_TEXTURE_FILE | 2 |
INVALID_PLAYER_ID | 0 |
INVALID_VEHICLE_ID | 0 |
MAX_CUSTOM_OBJECT_ID | -1000 |
MAX_CUSTOM_SKIN_ID | 30000 |
MAX_PLAYERS | 1000 |
MIN_CUSTOM_OBJECT_ID | -30000 |
MIN_CUSTOM_SKIN_ID | 20001 |
SPECIAL_ACTION_DANCE1 | 5 |
SPECIAL_ACTION_HANDSUP | 2 |
SPECIAL_ACTION_NONE | 0 |
Note
Weapon, colour and other SA-MP constants are passed as plain numbers; see the native reference for the value expected by each function.