Graphics::getLightsState

From RAGE Multiplayer Wiki

Client-Side
Function

 JavaScript



JavaScript Syntax

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}`);


See also