A NoPixel 3.0 inspired vehicle menu for police on ESX servers. Officers with the police job open it at Mission Row, pick one of eight vehicles in its own UI, pay for it and are placed in the car at the station.
Features
- Marker with [E] Menu at Mission Row (
463.72, -1019.55, 28.1), shown only to players with thepolicejob - Vehicle menu with its own NUI: each slot opens a confirm screen with Go Back and Confirm Purchase
- Eight vehicle slots set by spawn name in
config.lua(by defaultfbi,adder,policetopolice4,policebandpolicet) - Each vehicle costs a flat 5,000 from the player’s cash, charged on the server
- The vehicle spawns in the Mission Row garage (
438.77, -1026.7, 28.43) with the player in the driver’s seat; the screen fades out and back in - Calls
keys:addNewwith the new plate, so a vehicle key resource that listens to that event gives the keys
Requirements
- ESX (loaded through the
esx:getSharedObjectevent) - mysql-async (listed in
fxmanifest.lua)
Installation
- Copy
police_menuinto your resources folder. - Set the vehicle spawn names in
config.lua; the button labels (“Car Name”) are edited inclient/html/UI.html. - Add
ensure police_menuto your server.cfg.
Notes
- There is no EMS menu in the code; only the police location is included.
- The vehicle spawns even if the player has less than 5,000, and slot 6 spawns the model from
Config.Policecar4; adjustclient/client.luaif you need that changed.