{"hash":"0x6E38C1B9","ns":"CFX","name":"REMAP_RAW_KEYMAP","slug":"REMAP_RAW_KEYMAP","official":true,"named":true,"luaName":"RemapRawKeymap","game":"cfx","apiset":"client","returnType":"void","params":[{"name":"keymapName","type":"char*","description":"the name given to the keymap in [REGISTER_RAW_KEYMAP](#\\_0x49C1F6DC)"},{"name":"newRawKeyIndex","type":"int","description":"Index of raw key from keyboard."}],"summary":"Remaps the keymap bound to keymapName to newRawKeyIndex Virtual key codes can be found here","descriptions":[{"source":"cfx","format":"md","body":"Remaps the keymap bound to `keymapName` to `newRawKeyIndex`\n\nVirtual key codes can be found [here](https://learn.microsoft.com/en-us/windows/win32/inputdev/virtual-key-codes)"}],"examples":[{"lang":"lua","code":"\nfunction on_key_up()\n\tprint(\"key no longer pressed\")\nend\n\nfunction on_key_down()\n\tprint(\"key is pressed\")\nend\n\nlocal KEY_SPACE = 32\nlocal canBeDisabled = false\n\nlocal KEY_E = 69\n\nRegisterRawKeymap(\"our_keymap\", on_key_up, on_key_down, KEY_SPACE, canBeDisabled)\n\nRemapRawKeymap(\"our_keymap\", KEY_E)","source":"cfx"}],"aliases":[],"enums":[],"related":["0x49C1F6DC"],"sources":["cfx"],"doc":3,"url":"https://natives.borderlinerp.com/natives/CFX/REMAP_RAW_KEYMAP","markdownUrl":"https://natives.borderlinerp.com/natives/CFX/REMAP_RAW_KEYMAP.md","snippets":{"lua":"RemapRawKeymap(keymapName, newRawKeyIndex)","luaInvoke":"Citizen.InvokeNative(0x6e38c1b9, keymapName, newRawKeyIndex)","js":"RemapRawKeymap(keymapName, newRawKeyIndex);","jsInvoke":"Citizen.invokeNative('0x6e38c1b9', keymapName, newRawKeyIndex);","csharp":"Function.Call((Hash)0x6e38c1b9, keymapName, newRawKeyIndex);","notes":[]}}