Graphics::getLightsState: Revision history

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

26 April 2024

  • curprev 09:0809:08, 26 April 2024Shr0x talk contribs 544 bytes +544 Created page with "{{ClientsideJsFunction}} {{JSContainer| ===Required Params=== *'''lightid:''' {{RageType|Number}} ===Return value=== *''{{RageType|Boolean}}'' ==Syntax== <syntaxhighlight lang="javascript"> mp.game.graphics.getLightsState(lightId); </syntaxhighlight> ==Example== <syntaxhighlight lang="javascript"> mp.game.graphics.setLightsState(1, true); const lightState = mp.game.graphics.getLightsState(1); mp.console.logInfo(`Light id 1 state is ${lightState}`); </syntaxhighlight>..."