Native referenceRedMclient

DISABLE_RAW_KEY_THIS_FRAME

0x8BCF0014 CFX
FUNCTION SIGNATURE
BOOL DISABLE_RAW_KEY_THIS_FRAME(int rawKeyIndex);
Property Value
Native Name DISABLE_RAW_KEY_THIS_FRAME
Hash 0x8BCF0014
Return Type BOOL
API Set client
Parameters rawKeyIndex (int)

Description: Disables the specified rawKeyIndex, making it not trigger the regular IS_RAW_KEY_* natives.

Virtual key codes can be found here

Parameters

  • rawKeyIndex (int) — Index of raw key from keyboard.

Examples

local KEY_SPACE = 32
DisableRawKeyThisFrame(KEY_SPACE)
-- This will not get triggered this frame
if IsRawKeyDown(KEY_SPACE) then
	print("unreachable :(")
end
-- this will get triggered
if IsDisabledRawKeyDown(KEY_SPACE) then
    print("Spacebar is down")
end
Back to CFX