Graphics::getLightsState
Not available on SYNC MP yet
This member is part of the RAGE:MP API but SYNC MP does not implement it yet (Client-side JavaScript). Calling it does nothing or throws.
JavaScript
Required Params
- lightid: Number
Return value
- Boolean
Syntax
mp.game.graphics.getLightsState(lightId);
Example
mp.game.graphics.setLightsState(1, true);
const lightState = mp.game.graphics.getLightsState(1);
mp.console.logInfo(`Light id 1 state is ${lightState}`);