fivem-ts

a library to speed up the development of Fivem scripts and frameworks


Project maintained by Purpose-Dev Hosted on GitHub Pages — Theme by mattgraham

fivem-ts - Documentation v0.7.5Docs


fivem-ts - Documentation v0.7.5 / Client / Game / disableControlThisFrame

Function: disableControlThisFrame()

disableControlThisFrame(inputMode, control): void

Disables a specific control for the current frame.

Parameters

inputMode: InputMode

The mode of input that should be disabled (e.g., keyboard, gamepad).

control: Controls

The specific control within the input mode to be disabled.

Returns

void

Defined in

client/Game.ts:474