{"hash":"0x8BCF0014","ns":"CFX","name":"DISABLE_RAW_KEY_THIS_FRAME","slug":"DISABLE_RAW_KEY_THIS_FRAME","official":true,"named":true,"luaName":"DisableRawKeyThisFrame","game":"cfx","apiset":"client","returnType":"BOOL","params":[{"name":"rawKeyIndex","type":"int","description":"Index of raw key from keyboard."}],"returnsDescription":"Returns bool value of down state.","summary":"Disables the specified rawKeyIndex, making it not trigger the regular IS_RAW_KEY_ natives.","descriptions":[{"source":"cfx","format":"md","body":"Disables the specified `rawKeyIndex`, making it not trigger the regular `IS_RAW_KEY_*` natives.\n\nVirtual key codes can be found [here](https://learn.microsoft.com/en-us/windows/win32/inputdev/virtual-key-codes)"}],"examples":[{"lang":"lua","code":"local KEY_SPACE = 32\nDisableRawKeyThisFrame(KEY_SPACE)\n-- This will not get triggered this frame\nif IsRawKeyDown(KEY_SPACE) then\n\tprint(\"unreachable :(\")\nend\n-- this will get triggered\nif IsDisabledRawKeyDown(KEY_SPACE) then\n    print(\"Spacebar is down\")\nend","source":"cfx"}],"aliases":[],"enums":[],"related":[],"sources":["cfx"],"doc":3,"url":"https://natives.borderlinerp.com/natives/CFX/DISABLE_RAW_KEY_THIS_FRAME","markdownUrl":"https://natives.borderlinerp.com/natives/CFX/DISABLE_RAW_KEY_THIS_FRAME.md","snippets":{"lua":"local retval = DisableRawKeyThisFrame(rawKeyIndex)","luaInvoke":"local retval = Citizen.InvokeNative(0x8bcf0014, rawKeyIndex, Citizen.ReturnResultAnyway())","js":"const retval = DisableRawKeyThisFrame(rawKeyIndex);","jsInvoke":"const retval = Citizen.invokeNative('0x8bcf0014', rawKeyIndex, Citizen.returnResultAnyway());","csharp":"bool retval = Function.Call<bool>((Hash)0x8bcf0014, rawKeyIndex);","notes":[]}}