Knight docs
EN ID
GitHub

Constants

Numeric identifiers available as bare globals.

These names are plain integer values. Use them directly, e.g. SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DANCE1).

ConstantValueUse
BONE_SPINE1Attached object bone
BONE_HEAD2Attached object bone
BONE_LEFT_HAND5Attached object bone
BONE_RIGHT_HAND6Attached object bone
SPECIAL_ACTION_NONE0Clear special action
SPECIAL_ACTION_HANDSUP2Hands up
SPECIAL_ACTION_DANCE15Dance animation
MAX_PLAYERS1000Array sizing / loops
INVALID_PLAYER_ID65535No player
INVALID_VEHICLE_ID65535No vehicle
DOWNLOAD_REQUEST_EMPTY0OnPlayerRequestDownload type
DOWNLOAD_REQUEST_MODEL_FILE1OnPlayerRequestDownload type
DOWNLOAD_REQUEST_TEXTURE_FILE2OnPlayerRequestDownload type
MIN_CUSTOM_SKIN_ID20001Custom skin range
MAX_CUSTOM_SKIN_ID30000Custom skin range
MIN_CUSTOM_OBJECT_ID-30000Custom object range
MAX_CUSTOM_OBJECT_ID-1000Custom object range
ConstantValue
BONE_HEAD2
BONE_LEFT_HAND5
BONE_PELVIS1
BONE_RIGHT_HAND6
BONE_SPINE1
DOWNLOAD_REQUEST_EMPTY0
DOWNLOAD_REQUEST_MODEL_FILE1
DOWNLOAD_REQUEST_TEXTURE_FILE2
INVALID_PLAYER_ID0
INVALID_VEHICLE_ID0
MAX_CUSTOM_OBJECT_ID-1000
MAX_CUSTOM_SKIN_ID30000
MAX_PLAYERS1000
MIN_CUSTOM_OBJECT_ID-30000
MIN_CUSTOM_SKIN_ID20001
SPECIAL_ACTION_DANCE15
SPECIAL_ACTION_HANDSUP2
SPECIAL_ACTION_NONE0
Note
Weapon, colour and other SA-MP constants are passed as plain numbers; see the native reference for the value expected by each function.