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