Skip to content

Commit 4016c0c

Browse files
authored
Merge pull request #1235 from noiseXYZ/patch-3
Update keys.md
2 parents 14e7695 + 4252002 commit 4016c0c

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

  • frontend/docs/scripting/resources

frontend/docs/scripting/resources/keys.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ SA-MP uses bitmasking to determine which keys are pressed and which are not. Her
3333
| KEY_ANALOG_RIGHT | 16384 | \~k~\~VEHICLE_LOOKRIGHT~ | \~k~\~VEHICLE_TURRETRIGHT~ | NUM6 | NUM6 |
3434
| KEY_YES<sup>(2)</sup> | 65536 | \~k~\~CONVERSATION_YES~ | \~k~\~CONVERSATION_YES~ | Y | Y |
3535
| KEY_NO<sup>(2)</sup> | 131072 | \~k~\~CONVERSATION_NO~ | \~k~\~CONVERSATION_NO~ | N | N |
36-
| KEY_CTRL_BACK<sup>(2)</sup> | 262144<sup>(4)</sup> | \~k~\~GROUP_CONTROL_BWD~ | \~k~\~GROUP_CONTROL_BWD~ | H | H |
36+
| KEY_CTRL_BACK<sup>(2)</sup> | 262144<sup>(4)</sup> | \~k~\~GROUP_CONTROL_BWD~ | \~k~\~GROUP_CONTROL_BWD~ | H | H, R<sup>(7)</sup> |
3737
| UNDEFINED<sup>(3)</sup> | - | \~k~\~GROUP_CONTROL_FWD~ | \~k~\~GROUP_CONTROL_FWD~ | G | G |
3838
| KEY_UP | -128 | \~k~\~GO_FORWARD~ | \~k~\~VEHICLE_STEERUP~ | UP | UP |
3939
| KEY_DOWN | 128 | \~k~\~GO_BACK~ | \~k~\~VEHICLE_STEERDOWN~ | DOWN | DOWN |
@@ -54,8 +54,10 @@ or use KEY_HANDBRAKE.
5454
5555
**(3):** GROUP_CONTROL_FWD cannot be detected in SA-MP, as it used internally to enter vehicles as passenger. However, the gametext definition still exists.
5656
57-
**(4):** If the key number "262144" does not work, just use key number "2".
57+
**(4):** If the key number "262144" does not work, just use key number "2".
5858
5959
**(5):** Only detected when "JOYPAD" configuration is selected for controller.
6060
6161
**(6)** Embedding codes only work for [client messages](../functions/SendDeathMessage), [textdraws](../functions/TextDrawCreate) and [gametexts](../functions/GameTextForPlayer).
62+
63+
**(7)** If a player sits in a vehicle with no radio stations (Cop cars, RC vehicles), both R and H will return "262144" for their session. But if they don't, pressing H / Caps Lock in vehicle only returns "2", while R button returns "262144".

0 commit comments

Comments
 (0)