RegisterKeyMapping — RedM Natives
0xD7664FD1 · CFX · client
Registers a key mapping for the current resource. See the related cookbook post for more information. Below you can find some examples on how to create these keybindings as well as the alternate keybinding syntax, which is preceded by ~! to indicate that it's an alternate key.
Parameters
| Name | Type | Description |
|---|---|---|
| commandString | char* | The command to execute, and the identifier of the binding. |
| description | char* | A description for in the settings menu. |
| defaultMapper | char* | The [mapper ID](https://docs.fivem.net/docs/game-references/input-mapper-parameter-ids/) to use for the default binding, e.g. `keyboard`. |
| defaultParameter | char* | The [IO parameter ID](https://docs.fivem.net/docs/game-references/input-mapper-parameter-ids/) to use for the default binding, e.g. `f3`. |
Returns
void