What's new
Roleplay UK

Join the UK's biggest roleplay community on FiveM and experience endless new roleplay opportunities!

  • The Official Roleplay UK 10 year pin badge has arrived, get one for yourself here 5 left!

Traffic light script

Status
Not open for further replies.

Lube

Well-known member
Location
West Midlands
Brief Summary:

As an LSPS officer, we are told to obey traffic laws and ensure that civilians follow in a similar way. This is highly frustrating as the traffic lights of the city take years to change and are only green for a small period of time. This is highly unrealistic for the traffic we have on the islands meaning to travel a mile in the city can take 5-10 minutes. We end up pulling over countless civilians who are always fined or given warnings for traffic offences when everyone knows they are not followed by anyone and even some police.

Detailed Suggestion:

After doing a bit of searching, I found a traffic light script which is designed for FiveM. Not sure if it works well or puts too much strain on the server but I thought it would be worth a mention.

Traffic Light Script:  https://forum.cfx.re/t/release-smarttrafficlights-server-side-smart-traffic-lights-v1-00/492770

The Script, if made to work, is server side so can be seen from multiple players and also works with AI. Overall, it makes the lights react a lot more realistically and improves the flow of player traffic.

The Pros:

- Improve RP

- Speed up the game and make it so that Road Traffic Laws can actually be enforced within RP

- Give traffic something to do 😉

The Cons:

- May put too much strain on the server

- Not sure if it actually works

Does this suggestion change balance on the server ?

- Allows for police to enforce traffic laws to a higher standard.

 
Last edited by a moderator:
  • AI ignore changes to traffic lights
No big no makes it harder with stupid ai as it is

 
  • AI ignore changes to traffic lights
No big no makes it harder with stupid ai as it is
Ah didn't see that. I still think it could be worth looking into this. Maybe for a possible fix or would we even notice? AI already don't go through greens now do they?

 
This script is build very poorly and as stated by the many comments on the post, it doesn't work with AI vehicles which would lead to a mess on the server. Could look into the possibility of speeding up the lights but unfortunately no for the script.

 
Status
Not open for further replies.
Back
Top