Scene Menu Traffic Policer

roleplay
cops
fivem
server

#21

Amazing Script, love how it like merges 2 into one. :slight_smile: Keep it up!


#22

Ok, I’ll test it out this weekend! Thankyou man! And love the script entirely, keep up the good work!


#23

good job


#24

You can’t have chat commands in a

Citizen.CreateThread(function()
while true do

It will cause high memory issues


#25

So you will have to redo it around the chat command?


#26

No, just make it like this:

Citizen.CreateThread(function()
  while true do
      Citizen.Wait(0)
      _menuPool:ProcessMenus()
  end
end)

RegisterCommand('scenemenu', function(source, args, rawCommand)
    trafficmenu:Visible(not trafficmenu:Visible())
end, false)

#27

Apologies, yes thank you for correcting that


#28

I already have a NativeUI installed for another script (server side eup). Can I rename the nativeui folder in this plugin to like “nativeui1” as long as I make necessary edits, or is there a way to safely co-exist the two programs without one over-writing the other menu?


#29

I’m not entirely sure, this isn’t something i’ve had to test but renaming it SHOULD work theoretically. Trial and error I suppose


#30

I installed this last night and played around with it for an hour… All I got to say is… BRAVO man… this is and excellent script. I was able to rp many things with it… I even did a road construction at night scene that cause the hp to show up to direct traffic. Bravo


#31

Thank you


#32

your welcome…