Disabling Traffic Lights?

Anyone might have a clue how to disable traffic lights without using SetArtificialLightsState as that will turn off all lights I’ve already looked at the props and I could be wrong but don’t thing the red/amber/green lights are controlled through the prop I’ve also tried using SetEntityTrafficlightOverride but it seems like you can only pick red, amber or green disabling it or setting it to none seems to just reset it back to the automatic cycling If anyone can help me out with finding this one out would be grateful not sure if it’s just a case of replacing every original traffic light prop with a custom one I’m already running these over the original ones https://luman.tebex.io/package/5571943

Hi there i believe this would disable them

setTrafficLightState(9)

Doesn’t work are you even sure this is meant for fivem cause it’s a wiki page for San Andreas stuff

Just tried SetEntityLights(ent, state) as well for some of the traffic light props it removes the street lantern light source but yet again it keeps the red/amber/green lights regardless

I have noticed that Prodigy’s zombie server TWE (The Worldz End) has the everything light source related on but someone managed to have the traffic lights off so it must be possible in some kind of way

Have you tried this native?

(The native is not IS_OBJECT_NEAR_POINT, Idk why it shows that)

Yes I’ve tried this native as well but it only lets you select between the colors or reset the cycle but there is no off/disable option unfortunately

Sorry

CreateThread(function()
SwitchTrafficLights(false)
end)

this should be the fivem one ( Client Sided )

Or You Could Use This

CreateThread(function()
SetTrafficLightsState(4) -- flashing amber
FreezeTrafficLights(true)
SwitchTrafficLights(false)
end)

Ill try them out tomorrow where did you find these natives cause I dont see them anywhere on the fivem native documentation

nah again none of these work I dunno where you got these cause I don’t even think they are existing natives

the light is baked into the model if i remember right, you would need to modify the traffic light assets to add an additional state or modify an existing one.