REMAP_RAW_KEYMAP
Remaps the keymap bound to `keymapName` to `newRawKeyIndex` Virtual key codes can be found [here](https://learn.microsoft.com/en-us/windows/win32/inputdev/virtual-key-codes)
CFX
Signature
lua
RemapRawKeymap(keymapName, 0)
-- returns voidParameters
| Name | Type | Description |
|---|---|---|
| char* | the name given to the keymap in [REGISTER_RAW_KEYMAP](#\_0x49C1F6DC) | |
| int | Index of raw key from keyboard. |
Usage
Named call
RemapRawKeymap(keymapName, 0)InvokeNative
Citizen.InvokeNative(0x6E38C1B9, keymapName, 0)lua 1
function on_key_up()
print("key no longer pressed")
end
function on_key_down()
print("key is pressed")
end
local KEY_SPACE = 32
local canBeDisabled = false
local KEY_E = 69
RegisterRawKeymap("our_keymap", on_key_up, on_key_down, KEY_SPACE, canBeDisabled)
RemapRawKeymap("our_keymap", KEY_E)Details
- Hash
- API set
- Source
- cfx
Source: cfx
