a library to speed up the development of Fivem scripts and frameworks
fivem-ts - Documentation v0.7.5 • Docs
fivem-ts - Documentation v0.7.5 / Client / Game / isControlJustPressed
isControlJustPressed(
inputMode
,control
):boolean
Checks if a control has just been pressed within the specified input mode.
• inputMode: InputMode
The input mode in which to check the control press.
• control: Controls
The specific control to check.
boolean
Returns true if the control has just been pressed, otherwise false.