altv-issues
altv-issues copied to clipboard
Add alt.setLightsState to client side
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.
Will this feature continue to be developed?
Very interested by this feature