[DEPRACATED] Scene Menu Traffic Policer

RESOURCE IS NO LONGER SUPPORTED!

DOWNLOAD THE NEW VERSION HERE

image

Scene Menu

~ By Infinity Studios (Kye Jones)

This resource allows players to easily and effectively manage the traffic around them. Place barriers, cones and more to stop traffic in the area.

With massive configuration support, you can easily add objects and manage who can use the menu or simply allow everyone to! This resource has been tried and tested in nearly every FiveM server in one way or another these days, and it’s the best option out there for traffic management. Whether you’re a police officer at a collision with traffic blaring past, or you’re doing roadworks on Joshua Road, this menu will be your best friend.

Features:

  • Object Spawner
  • Working scene lights.
  • AI Traffic Controller (Change the speed of traffic within a radius)
  • Full Configuration support
  • Whitelisting
  • Synced/Networked Traffic Management

Bugs/Issues:

  • Scene lights spawn facing behind you.
  • Must press key/input command twice initially to open the menu if mode set to ‘IP’. This only happens on first activation.


Screenshots

image

image


Download (GitHub)

Installation

Installation:

  1. Download kj_scenemenu.zip
  2. Extract the contents of the kj_scenemenu.zip and place it into the ‘resources’ folder.
  3. Include kj_scenemenu in your server.cfg
  4. Configure the config.lua within kj_scenemenu.
  5. Restart your server.
  6. Press your chosen key or type your command and enjoy!
Changelogs

CHANGELOG:

v1.3.1 RELEASED:

  • Removed NativeUI Dependency (In-built warmenu framework now)
  • Cleaned up code massively (My god, it was a mess!)
  • Fixed some sync issues.
  • Updated resource.lua to new fxmanifest
  • Updated certain natives and events to match the new API.

v1.3.0 RELEASED:

  • You can now add/remove/change the objects you can spawn easily through the config file!
  • You can now configure the speed and radius options easily through the config file!
  • You can now disable the traffic announcement that appears in chat!
  • Lots of optimization.
  • Code generally just tidied a little.
  • Mouse control disabled on submenus (Stops the spazzy screen)
  • Fixed version script (Woopsie)

v1.2.0 RELEASED:

  • Added config.lua
  • Allowed IP Whitelisting
  • Allowed Ped Whitelisting
  • Allowed SteamID Whitelisting
  • Allowed the configuration of activation (Custom Commands and keys)
  • Added automatic version checker!

If you want to find more of my resources and gain access to exclusive content, join my discord!

19 Likes

What is the key to open the menu?
I see keypress 166, which I believe is F5, but the menu doesn’t seem to be opening. I have the resource in and it is started.

1 Like

You need to have NativeUI installed.

Cool Menu! I’m going to add it to my Development Server and see what’s up with it, i’ll make sure to leave a review with i’m done testing it out!

is NativeUI something that needs to be installed client sided or can i install server sided?

It can be installed serversided, apologies i’ll include a link to what you need!

You need to download the following resource and start it as a seperate resource. I’ve included this in the main post now! :slight_smile:

ok thank you and sorry foe being a noob

1 Like

omg this is SO good of script THANK YOU so much!!!

Keep up the good work man!!!

1 Like

Thank you, much appreciated! :slight_smile: <3

hmm cool good job

1 Like

Thank you

I’ve included instructions in the main post now for people a bit confused on how to install the resource.

Thank You for adding instructions, because I was meaning to install the menu, but never could because I was having trouble with doing so.

1 Like

Absolutely no worries, mate. Should’ve done them when I initially posted but didn’t, apologies

I love this. It is good for our Scenarios for the FD. Only issue I have is that some objects dont want to delete sometimes.

1 Like

Yeah, it’s incredibly rare though. You just have to find the sweet spot, usually where you were standing when you originally spawned in the object.

Glad you like it though! :slight_smile:

I actually do love it. It goes good with our retro (1990’s-2000’s) Vehicles.

1 Like

You think there is a way to to change (let me know how) this from F5 to like /scenemenu

1 Like

Of course! All you’d have to do is change the following…

Citizen.CreateThread(function()
  while true do
      Citizen.Wait(0)
      _menuPool:ProcessMenus()
      if IsControlJustPressed(0, 168) and GetLastInputMethod( 0 ) then
          trafficmenu:Visible(not trafficmenu:Visible())
      end
  end
end)

To something along the lines of…

Citizen.CreateThread(function()
  while true do
      Citizen.Wait(0)
      _menuPool:ProcessMenus()
      RegisterCommand('scenemenu', function(source, args, rawCommand)
          trafficmenu:Visible(not trafficmenu:Visible())
      end, false)
  end
end)

Although I haven’t tested that fully, it should work absolutely fine! :slight_smile: