altv-issues icon indicating copy to clipboard operation
altv-issues copied to clipboard

Add alt.setLightsState to client side

Open DurtyFree opened this issue 4 years ago • 2 comments

Suggestion Add client side scripting API to toggle light states of GTA (there is 0-15), so people can customize light states better.

Use cases

  • Complete blackout (including vehicle lights) done by EMP bomb?
  • Faded city blackout, first house lights, then street lights a bit later delayed etc. (For more realistic "electricity shutdown")
  • Some light states are useful for causing better environment effects (maybe zombie server in the future need this)

Describe the solution you'd like Add API method on client alt.setLightsState(id: number, enabled: boolean);, where id is some value between 0 & 15 (there are 16 light states in total)

Describe alternatives you've considered There is only SetArtificialLightsState native, which toggles city completely (for blackout), tuxick also patched that this native doesnt toggle vehicle lights, which might be desired for some use cases.

DurtyFree avatar Jan 03 '21 23:01 DurtyFree

Will this feature continue to be developed?

PlumeDreams avatar Aug 02 '23 12:08 PlumeDreams

Very interested by this feature

Arochka avatar Jan 16 '24 18:01 Arochka