Special actions
All of the special actions used by SetPlayerSpecialAction and GetPlayerSpecialAction can be found here.
ID | Constant | Description |
---|---|---|
0 | SPECIAL_ACTION_NONE | N/A |
1 | SPECIAL_ACTION_DUCK | Used when the player is ducking (crouching). It cannot be set using SetPlayerSpecialAction. |
2 | SPECIAL_ACTION_USEJETPACK | Used when the player is using a jetpack. |
3 | SPECIAL_ACTION_ENTER_VEHICLE | Used when the player is entering a vehicle with an animation. It cannot be set using SetPlayerSpecialAction. |
4 | SPECIAL_ACTION_EXIT_VEHICLE | Used when the player is exiting a vehicle with an animation. It cannot be set using SetPlayerSpecialAction. |
5 | SPECIAL_ACTION_DANCE1 | The primary dance loop. |
6 | SPECIAL_ACTION_DANCE2 | The secondary dance loop. |
7 | SPECIAL_ACTION_DANCE3 | The third dance loop. |
8 | SPECIAL_ACTION_DANCE4 | The fourth dance loop. |
10 | SPECIAL_ACTION_HANDSUP | The player will surrender and throw his/her hands up. |
11 | SPECIAL_ACTION_USECELLPHONE | The player will pretend to use a cellphone. |
12 | SPECIAL_ACTION_SITTING | The player will sit. It cannot be set using SetPlayerSpecialAction. |
13 | SPECIAL_ACTION_STOPUSECELLPHONE | The player will no longer pretend to use a cellphone. |
20 | SPECIAL_ACTION_DRINK_BEER | The player will drink a beer. The player will become drunk as well. |
21 | SPECIAL_ACTION_SMOKE_CIGGY | Will give the player a blunt to smoke. |
22 | SPECIAL_ACTION_DRINK_WINE | The player will drink from a bottle of wine. The player will become drunk as well. |
23 | SPECIAL_ACTION_DRINK_SPRUNK | The player will drink a can of sprunk. |
24 | SPECIAL_ACTION_CUFFED | The player will be cuffed. The animation does not work on skin ID 0 (CJ). |
25 | SPECIAL_ACTION_CARRY | The player will carry something, and will not be able to sprint, jump, or shoot. The animation does not work on skin ID 0 (CJ). |
68 | SPECIAL_ACTION_PISSING | The player will urinate with a visual pee stream. The macro for this special action is not present in the SA-MP include files. |