alt.gameControlsEnabled
Determines whether or not game controls are currently enabled.
Returns a boolean
. (true / false)
Declaration
alt.gameControlsEnabled(): boolean
Usage
alt.gameControlsEnabled();
Real World Example
const result = alt.gameControlsEnabled();
if (result) {
alt.log('Game Controls are enabled!');
}
These examples assume you have imported alt
from alt-client
.