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 / isControlJustPressed

Function: isControlJustPressed()

isControlJustPressed(inputMode, control): boolean

Checks if a control has just been pressed within the specified input mode.

Parameters

inputMode: InputMode

The input mode in which to check the control press.

control: Controls

The specific control to check.

Returns

boolean

Returns true if the control has just been pressed, otherwise false.

Defined in

client/Game.ts:375