pma-sirensync is a resource handling the controlling and syncing of sirens, this resource is an alternative to lux_vehcontrol (meaning it doesn’t support ELS vehicles) excluding the menu lux_vehcontrol provides (maybe soon using ox_lib?), this uses faster syncing with state bags to ensure everyone on the server can see the changes made with sirens instantly and the state bag is registered on entities instead of players.
Please read the README.md carefully (you usually should read it anyway) on the repository as that contains pretty critical information to know before you get started with the resource.
Originally @AvarianKnight made this, but he didn’t want to release it and he asked me to do it, so here I am. Thanks to AvarianKnight we have this amazing resource.
Feel free to leave any suggestions below or in an issue on the github repository.
I may be wrong but I’m pretty sure this script is for syncing sirens and not much else.
Adopted this script today, bar a few changes to make it easier for our player base to get attuned to it (Comma => Alt, R Toggles etc) and seems to be working perfectly. So far, no issues and players have reported less siren issues than we had with a stripped down Lux.
I wouldn’t mind putting the changes behind a config and pushing them up if the OP is interested, would help more people coming over from Lux.
That sleep = 0 is to disable controls, making 0 any bigger causes issues as control disables need to run every frame. I am going to optimize it soon though, so be on the lookout for that change, any changelogs will be posted in this topic and in github releases.
As mentioned in the readme, this does support addon sirens, although it doesn’t request an audiobank anywhere, so I have to add something to support that