Skip to main content

Graphics::resetLightsState

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.

Client-side function

JavaScript​

Return value​

  • void

Syntax​

mp.game.graphics.resetLightsState();

Example​

mp.game.graphics.setLightsState(1, true);

//reset lights state after 5 seconds.
setTimeout(() => {
mp.game.graphics.resetLightsState();
}, 5000);