RedM Index logoRedM Index
NativesHashesClothesBlipsPropsItem Tool
Sign inGet started

Reference

  • Natives
  • Hashes
  • Clothes
  • Blips
  • Props

Namespace

  1. Reference
  2. Natives
  3. DISABLE_RAW_KEY_THIS_FRAME

DISABLE_RAW_KEY_THIS_FRAME

Disables the specified `rawKeyIndex`, making it not trigger the regular `IS_RAW_KEY_*` natives. Virtual key codes can be found [here](https://learn.microsoft.com/en-us/windows/win32/inputdev/virtual-key-codes)

CFX

Signature

lua
DisableRawKeyThisFrame(0)
-- returns BOOL

Parameters

NameTypeDescription
intIndex of raw key from keyboard.

Usage

Named call
DisableRawKeyThisFrame(0)
InvokeNative
Citizen.InvokeNative(0x8BCF0014, 0)
lua 1
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

Details

Hash
API set
Source
cfx

Source: cfx

On this page

  • Signature
  • Parameters
  • Usage
  • Details