Fix your broken lights lightning fast! v2 (PowerShell Script)

Onyx Development ID Generator V2

Important Note: FiveM is limited to 255 siren IDs

I have provided two different updated generators.
One will randomize the carcols & carvariations in compliance with the 255 siren ID limitations
The other will randomize the carcols & carvartiations to 6 digits, to be used if your server is not following the 13-255 ID values.

To use this generator:
Step 1: Right click and select “Open with powershell”
Step 2: Select your carvariations and carcols metas
Step 3: Select Randomize
Step 4: Restart your vehicles resource and check your lights :slight_smile:

Repeat steps 3 & 4 until the lights are fixed

Important Tip: This script works best with metas containing only one vehicle, or vehicle packs that all
have the same lighting pattern.
You can use one code for an entire pack if the emissives are the same.

ONLY use the 255-Limit genererator if you’re either starting a new server and don’t have any ID’s, or have kept your siren ID’s under the number limit of 255.

Example for 255-Limit Generator:
<sirenSettings value=“150”
<id value=“150”

Example for 6 Digit Generator:
<sirenSettings value=“864651”
<id value=“864651”

Onyx Development Siren Randomizer.zip (4.6 KB)

image

image

6 Likes

thank you bro

1 Like

HELP! When I right click and do run with powershell…it keeps closing out of some window. I guess I cant’t get PowerShell to open or something. Please help! Thanks!

when i open with powershell it just opens then closes

1 Like

For those having issues with scripts:
Execute

Get-ExecutionPolicy

If the following states:
Restricted

Open a powershell administrator and type in:

Set-ExecutionPolicy RemoteSigned
1 Like

that worked once, then stopped.

Dose not work at all for me i tired everything in steps and dosent work

Open PowerShell Ice → do Set-ExecutionPolicy RemoteSigned in the console then open the script and run.