System.isFocused
Client-Side Function
JavaScript Syntax
Return value
- boolean
Syntax
mp.system.isFocused
Example
mp.events.add("playerReady", () => {
if (mp.system.isFocused) {
mp.console.logInfo(`Player is focused into the game`);
}
})
See Also
- Functions:
- Properties: