Skip to content
DPS-EnhancedPublic

About

DPS Fleet: the vehicle browser and workshop on one panel, for Qbox on FiveM for GTAV Enhanced.

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

DelPerroSands

dps_fleet

This is the DPS Enhanced edition, for Qbox on FiveM for GTAV Enhanced. It was called dps-fleet until v3.1.0. If you are updating: rename the folder to dps_fleet and change ensure dps-fleet to ensure dps_fleet in server.cfg. The original, for the older FiveM, is at DaemonAlex/dps-fleet.

What changed for Enhanced:

  • Keys come from whichever keys script the server runs, through dps_core. wasabi_carlock is no longer needed.
  • Photos no longer need a paid script. See Vehicle photos.
  • ox_lib and ox_target are met by dps_lib and dps_target, which answer to those names.
  • Not done yet: the panel still wears its old look. It is being redrawn to the DPS Look.
  • Not yet seen in game on Enhanced.

dps_fleet is a Qbox-native FiveM resource that puts the vehicle browser and the vehicle workshop on one panel. Press F7 (or type /fleet) to search every vehicle on the server — by group, department, kind, price, brand, or free text — see its photo where one exists, spawn it, replace the car you're in, or park it beside you. On the same panel, open the Workshop to change liveries, extras, performance, colours, wheels, tint, neon, doors, windows, seats, sirens, and to save presets or run a repair. Emergency vehicles also carry trunk gear (vests, helmets, turnout coats, medical bags) that the right department can pull out through ox_target.

dps-fleet is the merge of two older DPS resources — dps-carmenu (the browser) and dps-EVM (the workshop, formerly Emergency Vehicle Menu) — into one resource, one config, and one ace. If you ran either of those before, see Upgrading from dps-EVM / dps-carmenu.

A picture of the panel taken in game is still to come.


Features

Browse

  • Search tokens — type plain words, or narrow with key:value tokens: cat:sports, dept:police, type:suv, brand:vapid, price>50000, speed<200, sort:price-desc. Words like cops, swat, ambulance, bikes, heli are recognised shortcuts for the tokens above.
  • Groups, departments and kinds — the fleet is organised the way people think about it: top groups (Street, Bikes, Racing, Emergency, Work, Air, Sea, Other) → categories within a group. Fleet knows both the DPS categories and the stock Qbox ones that vehicles.lua still uses (motorcycles go to Bikes; sedans, coupes, compacts, super and sports classics to Street; open wheel to Racing; planes to Air; utility, commercial and industrial to Work). A category no group lists is never dropped: it shows in Other under its own name. The Emergency group instead groups by department (Los Santos Police Department, BCSO, SAHP, FIB, DOC, Fish & Wildlife, Coast Guard, LSFD, SAMS, LSMC) and then by kind (Cruiser, Unmarked, SUV / truck, Fire engine, Ladder truck, Ambulance, Helicopter, …). LSPD SWAT (police_swat) has its own row inside the Los Santos Police Department department.
  • Photos — when jg-vehiclestudio is installed, Browse shows its default vehicle photo for every model it has one for. No jg-vehiclestudio, no photos — everything else still works.
  • Spawn / Replace / Beside — spawn a car fresh, replace the one you're sitting in (removes it first), or spawn one beside you without touching what you're in.
  • Copy card — copies a plain-text "DPS VEHICLE CARD" (model, name, category, price, class, handling summary, and — once you've sat in or spawned the car — its current workshop state) for pasting into a ticket or an LLM.
  • Favorites and recent — the last 15 vehicles you spawned, and anything you've starred, lead an empty search.

Workshop

Open on the vehicle you're in, or via the Workshop option ox_target adds to any vehicle. Sections (each can be switched off independently, see Config reference):

Section What it does
Liveries Every livery the model's vehicles.meta defines
Custom liveries Custom YFT liveries you list in Config.CustomLiveries
Extras Toggle every extra the model has (lightbars, pushbars, spots, …)
Performance Engine, brakes, transmission, suspension, armour, turbo
Colours Primary/secondary paint, from the full 161-colour GTA V list
Wheels Wheel type and index
Window tint The 7 stock tint levels
Neon Colour + on/off (see Config.UndercoverNeon for selective use)
Doors Open/close each door
Windows Roll each window, or smash one for an EMS-style extraction
Seats Eject an occupied seat
Presets Save/load your own or a job-wide vehicle configuration
Sirens Assign which tones LVC cycles through on this model
Repair Emergency, full, or field repair, with pricing
  • Presets — save up to Config.Presets.maxPresetsPerPlayer personal presets, or (grade minGradeForJobPresets+) a shared job preset, up to maxPresetsPerJob per job.
  • Livery memory — with Config.AutoApplyLivery on, the livery/extras you last set on a model are re-applied automatically the next time you get in one (or one spawns), no menu trip needed.
  • Sirens — every tone LVC has installed (46 as of this release), grouped into ready-made sets (LEO/Whelen, Fire, EMS, RLS, PA, DX5, Sapphire, Smart Siren) or built by hand, 2–8 tones with slot 1 always the airhorn. dps-fleet owns the assignment; LVC (GPL-3, unmodified except for a small credited read-hook) owns the sound. See Credits.
  • Repairs — Emergency (quick), Full (station-grade), and Field (needs a repair item, has a cooldown) repair, each priced from Config.RepairCosts with a job discount or a free pass for mechanics.

Trunk gear

Emergency vehicles listed in data/emergency.json can carry gear in their trunk — a bulletproof vest, heavy vest, reflective vest, helmet, turnout coat, fire helmet, or a medical bag — offered through ox_target to whichever job is allowed to take that department's kit. See Config reference → Trunk gear and Data files.


What it is for

A server collects hundreds of vehicles, and staff end up remembering spawn names. This gives one panel to find any vehicle by department, kind, brand or price, see it, and spawn it. The same panel sets up emergency vehicles properly: the right livery, extras, sirens and trunk gear for each department, saved so the next officer gets the same car.

On its own, and with other scripts

On its own. With Qbox, ox_lib, oxmysql and ox_target: the full browser and the full workshop, with presets, custom liveries and trunk gear.

With paid vehicle packs. This is where it earns its place. A police or fire pack often ships dozens of extras and liveries with no way to manage them in game. Here each vehicle's setup is saved once and applied every time, per department.

With vehicle photos. The browser shows a photo of each vehicle where one exists. See Vehicle photos. No paid script is needed.

With a keys script. A spawned vehicle comes with its key, through dps_core.

With an ox_inventory based inventory. Trunk gear (vests, helmets, medical bags) is handed out as real items to the right department.

Requirements

Resource Required Used for
ox_lib yes menus, callbacks, cache, progress bars
qbx_core yes jobs, player data, vehicle spawning, the vehicle registry
oxmysql yes custom liveries, saved mods, presets, livery memory, siren assignments
ox_target yes the "Workshop" option and trunk-gear options on vehicles
dps_core optional hands the player a key on spawn, through the server's keys script
wasabi_carlock optional the same, on a server that runs it and not dps_core
jg-vehiclestudio optional vehicle photos in Browse. Without it, see Vehicle photos

On a DPS Enhanced server ox_lib and ox_target are met by dps_lib and dps_target. Each answers to the old name, so nothing here needs changing.

Vehicle photos

Browse shows a photo of each vehicle. It looks in three places, in this order:

  1. jg-vehiclestudio, if that script is running.
  2. The panel's own folder: html/vehicles/<model>.webp, one file per vehicle, named by its spawn name. html/vehicles/adder.webp is the Adder.
  3. Neither: a plain vehicle shape. Nothing breaks.

The pictures are not in this repository. A picture that is free to use is not always ours to republish, so each server brings its own. Put the files in html/vehicles/ and restart the resource.

A picture should be a .webp, about 256 wide, on a clear background. Every player downloads the folder on their first join, so keep each file small: 700 vehicles at 5 KB each is 3.5 MB.

Planned: a photo studio inside this script, so staff can take a matching picture of any vehicle on the server, add-on cars included.


Install

  1. Copy the dps_fleet folder into your resources tree (on DPS: [dps]/dps_fleet).
  2. Add one line to server.cfg, after ox_lib, qbx_core, oxmysql and ox_target:
    ensure dps_fleet
    
  3. Grant the Browse ace. With Config.AutoAces = true (the default) the server grants it itself at start to group.admin and group.tester if they don't already have it — you'll see one dps.fleet ace: … line in the boot log confirming it. To grant it to another group, or to be explicit, add to server.cfg:
    add_ace group.admin dps.fleet allow
    add_ace group.tester dps.fleet allow
    
  4. Nothing else. On first boot, dps-fleet creates its own five database tables if they don't exist (custom_liveries, vehicle_mods, vehicle_presets, player_livery_memory, fleet_siren_assignments) — no SQL file to import. Config.AutoJobs = true derives who may use the Workshop straight from your job list (see Permissions) — no job list to edit either.
  5. (Optional) If you run a registry tool that produces a vehicles_found.json fleet listing, copy or symlink it to data/fleet_state.json (DPS does this automatically at server start via registry-refresh.sh) so Browse shows real pack, price and photo data instead of treating every model as vanilla. This file is git-ignored — it's expected to be missing on a fresh checkout; Browse still works without it.

Config reference

Every Config.* key lives in config.lua, grouped the same way the file is.

Job access control

Key Default Meaning
EnableJobRestrictions true false opens the Workshop to everyone, no job check
AutoJobs true Derive the Workshop job set at start from qbx_core:GetJobs() — every job of type leo or ems, plus ExtraWorkshopJobs
ExtraWorkshopJobs { 'mechanic' } Extra job names added to the auto-derived set (jobs that aren't typed leo/ems but should still get the Workshop)
AutoAces true Grant the dps.fleet ace to group.admin and group.tester at start if either is missing it
JobMappings { police = {...}, fire = {...}, ambulance = {...}, mechanic = {...} } Only read when AutoJobs = false. Manual group → job-names map; group keys, not job names

Feature toggles

Key Default Meaning
EnabledModifications.* all true except Neon 10 flags gate the Workshop's 14 sections (Liveries, CustomLiveries, Performance, Appearance covers Colours/Wheels/Window tint, Neon, Extras, Doors covers Doors/Windows/Seats, Repair, Sirens, Presets) — false removes that section (or that whole trio, for Appearance/Doors) from the menu
UndercoverNeon.enabled false true lets neon show on specific vehicles even while EnabledModifications.Neon is off
UndercoverNeon.allowedVehicles {} Spawn codes allowed neon under the rule above

Economy / repair costs

Key Default Meaning
RepairCosts.enabled true false makes every repair free
RepairCosts.chargeFrom 'bank' 'bank', 'cash', or 'both' (bank first)
RepairCosts.currency 'money' Unused/reserved — chargeFrom is what the code actually reads
RepairCosts.fullRepairCost / emergencyRepairCost / fieldRepairCost 500 / 200 / 350 Base price per repair kind, charged server-side (client-supplied cost is never trusted)
RepairCosts.freeForJobs { 'mechanic' } Jobs that repair for free
RepairCosts.discountJobs every LEO/fire/medical job at 0.25 Per-job discount list

Field repair

Key Default Meaning
FieldRepair.enabled true Switches the whole feature off
FieldRepair.requireItem / itemName / alternativeItems true / 'repairkit' / {repairkit, toolkit, mechanickit, advanced_repairkit} The ox_inventory item needed; any name in the alternatives list also works
FieldRepair.allowedJobs every LEO/fire/medical job Jobs that may field-repair (mechanics aren't listed — they reach repair through the Workshop, which their job set already opens)
FieldRepair.minGrade 0 Minimum job grade required (0 = any grade)
FieldRepair.maxEngineRepair 350.0 Engine health cap a field repair can reach
FieldRepair.cooldown 300000 (5 min) Per-player cooldown between field repairs
FieldRepair.consumeItem true Removes the item after use
FieldRepair.repairTime 15000 Progress-bar duration, ms

Presets

Key Default Meaning
Presets.enabled true Switches the feature off
Presets.maxPresetsPerPlayer 10 Personal preset cap
Presets.maxPresetsPerJob 5 Shared job-preset cap
Presets.allowJobPresets true Lets a high-enough grade save a job-wide preset
Presets.minGradeForJobPresets 3 Grade needed to save (or delete another player's) job preset
Presets.saveToDatabase true Presets persist in vehicle_presets
Presets.maxPresetBytes (not in config.lua) Optional — server.lua reads it and falls back to 16384 bytes when it's absent, so a preset's saved size is capped either way

Auto-apply livery (livery memory)

Key Default Meaning
AutoApplyLivery.enabled true Switches the feature off
AutoApplyLivery.applyOnSpawn true Re-apply your last livery/extras when the model spawns
AutoApplyLivery.applyOnEnter false Re-apply when you get in (alternative to the above)
AutoApplyLivery.rememberPerVehicle true Memory is keyed per vehicle model
AutoApplyLivery.rememberExtras true Extras are remembered along with the livery
AutoApplyLivery.notifyOnApply true Shows a notification when memory is applied

Custom liveries

Config.CustomLiveries — keys are vehicle spawn codes, not job names (e.g. police, ambulance — the vanilla models). Each entry is a list of { name, file } custom YFT liveries for that model. Add your own vehicles and files here.

Input validation

Key Default Meaning
InputValidation.maxNameLength / minNameLength 32 / 1 Preset/livery name length bounds
InputValidation.allowedCharacters ^[%w%s%-_]+$ Pattern a name must match
InputValidation.sanitizeNames / blockSpecialChars true / true Sanitisation switches

Constants

Config.Constants holds one value: ENGINE_MAX_FIELD_REPAIR (350). A field repair brings the engine back to that much health at most, where 1000 is new.

Trunk gear

Config.TrunkGear — "make it as auto as possible" applies here too:

Key Default Meaning
enabled true One switch for the whole feature
AutoVehicles true Every model in data/emergency.json carries its department's kit automatically — a new emergency pack needs no edit here
allowedVehicles {} Per-model override, read whether AutoVehicles is on or off; with it off, this list is the only source
DeptGear police/bcso/sasp/fib/doc/dfw/uscg → vest+helmet kit; police_swat → heavy kit; lsfd → turnout kit; sams/lsmc → medbag kit Department → kit, keyed by the dept values in data/emergency.json
DefaultGear { 'refvest' } Kit for a model that's in data/emergency.json but whose department isn't in DeptGear (none/unsorted rows — coroner vans, tow trucks)
AutoJobs true Re-uses the Workshop job set (LEO + EMS types + Config.ExtraWorkshopJobs) so a new department needs no edit
Authorizedjobs { police, bcso, sasp, fib, doc, dfw, uscg } Only read when AutoJobs = false
CrossDept false false: an allowed job may only take its own family's department kit (police can't pull turnout gear from a fire engine); true: any allowed job can take any department's kit
DeptJobs one list per department (see config.lua) Which job names may take that department's kit; a department left out is open to any allowed job
RequireUnlocked true The vehicle must be unlocked to open its trunk
RequireItems true Item-backed gear (bproof, medbag) must actually be in the trunk
NotifyDuration 5 Notification duration, seconds
Duration 3500 Progress-circle duration, ms
Sound { Enable = false, ... } Optional sound on pickup
Gear / GearOrder 7 pieces (bproof, heavy, refvest, helmet, turnout, firehelmet, medbag) The gear catalogue and its menu order — set a piece to false to switch it off entirely
Slots / SlotOrder vest / torso / head The "put it back" options, one per body slot
Translation — User-facing strings

Permissions

What Gate Notes
Browse (F7 / /fleet / /carmenu) ace dps.fleet Granted automatically to group.admin/group.tester when Config.AutoAces = true
Workshop (any section) job-based, not ace-based Allowed set comes from Config.AutoJobs (qbx job types leo+ems + Config.ExtraWorkshopJobs), or Config.JobMappings when AutoJobs = false
Workshop admin bypass ace command Any player holding the FiveM command ace (normally group.admin) can open the Workshop on any vehicle regardless of job
Trunk gear job-based (+ department) Config.TrunkGear.AutoJobs re-uses the Workshop job set; CrossDept = false also requires the job to be listed for that vehicle's department in DeptJobs

Commands and keys

Command / key Opens
F7 Browse
/fleet Browse
/carmenu Browse (alias, kept for muscle memory)
/evm Workshop, on the vehicle you're in or targeting (alias)
ox_target → Workshop Workshop, on that vehicle
ox_target → trunk-gear options Take or stow a piece of gear, on an emergency vehicle that carries it

Data files

  • data/emergency.json (committed) — { "modelname": { "dept": "policename", "kind": "Cruiser" } } for every emergency vehicle model (lowercase spawn name as the key). dept must already exist in qbx_core/shared/jobs.lua (or be police_swat for the tactical fleet, or none/unsorted for a vehicle with no department yet). kind is a display bucket (Cruiser, Unmarked, SUV / truck, Motorcycle, Tactical, Command, Fire engine, Ladder truck, Brush truck, Rescue, Ambulance, Van, Helicopter, Boat). This file drives three things: Browse's Emergency department/kind grouping, Config.TrunkGear's AutoVehicles resolution, and the trunk-gear index.

    To add a department: add each of its models to data/emergency.json with the real job name as dept; add friendly labels for it to Groups.DEPT_ORDER/DEPT_NAME/DEPT_CODE in shared/groups.lua (cosmetic — Browse falls back to the raw key if you skip this); and, if it should hand out trunk gear, add its kit to Config.TrunkGear.DeptGear (and, if CrossDept = false, to DeptJobs) in config.lua.

  • data/fleet_state.json (git-ignored, not shipped) — a copy of the fleet registry tool's vehicles_found.json output, dropped in by registry-refresh.sh at server start on this server. Optional: without it, every vehicle in Browse shows as vanilla (no pack, price, or photo metadata) instead of erroring.


Performance notes

dps-fleet runs no CreateThread loops. The only thread in the whole resource is a one-shot startup task that reads data/fleet_state.json and data/emergency.json, ensures the database tables exist, and grants aces — then it ends. Everything else is event- or callback-driven: the panel opens on request, ox_target registers its options once when it starts (not polled), and model-native reads (top speed, handling) happen once per selection — debounced while you scroll — and the model is released right after. Photo URLs from jg-vehiclestudio are fetched once per server run and cached. Measured with the panel closed: 0.00 ms; open: ≤ 0.10 ms (resmon).


Upgrading from dps-EVM / dps-carmenu

Short version: your data is kept, your commands still work. Full steps in docs/UPGRADING.md.

  • Database tables custom_liveries, vehicle_mods, vehicle_presets, and player_livery_memory are unchanged — dps-fleet reads and writes them under the same names. One table is new: fleet_siren_assignments.
  • /carmenu and /evm still work, as aliases. F7 is unchanged.
  • Remove ensure dps-EVM and ensure dps-carmenu from server.cfg, add ensure dps-fleet. Bench (don't delete) the old resource folders.

Credits

  • Original EVM (Emergency Vehicle Menu / dps-EVM) and original dps-carmenu — both by DaemonAlex. dps-fleet is their merge.
  • Luxart Vehicle Control (LVC), by Lt.Caine and TrevorBarns — GPL-3. dps-fleet copies no LVC code: the Sirens section and its fleet_siren_assignments table are entirely dps-fleet's own; the only LVC-side change is a small, credited hook inside LVC's own files that lets it read the tone list dps-fleet assigns. LVC's license stays with LVC.
  • Vehiclegear, originally by Lapertaja (CC BY-NC-SA 4.0) — the trunk-gear feature is DaemonAlex's fork of Vehiclegear, folded into dps-fleet. The original license text is kept at docs/licenses/vehiclegear.txt for attribution.
  • JG Vehicle Studio — the source of Browse's vehicle photos, when installed.

License

MIT — see LICENSE. Third-party pieces keep their own license; see Credits above.

Recent changes

  • 5 December 2026, v3.2.0. Browse shows every car again. vehicles.lua uses the stock Qbox categories (motorcycles, sedans, super, planes and more), which fleet did not know, so about 476 cars sat in no group and could only be found by typing. Fleet now puts each stock category in its group, and any category it still does not know shows in Other under its own name. Not yet seen in game.
  • 3 December 2026, v3.1.0. The panel is in the DPS Look and scales with the screen. Its fonts and icons ship inside the resource, so nothing loads from the internet. Settings that nothing read were removed from config.lua: EnableGradeRestrictions, DisableZoneRestrictions, ManualJobSystem, JobDefaults and all but one of Constants. If your own config.lua still has them, they do no harm. Five guides written for the older Emergency Vehicle Menu were removed.
  • 2 December 2026, v3.1.0. The DPS Enhanced edition. Renamed to dps_fleet. Keys through dps_core. Photos from the panel's own folder, with no paid script needed. Not yet seen in game on Enhanced, and the panel is not yet redrawn to the DPS Look.
  • 12 November 2026. README: what it is for, how it works alone and with paid scripts, other DPS scripts.
  • 31 October 2026. Departments now match the jobs DelPerroSands runs: the Roxwood police, sheriff, fire and medical departments are removed, and the hospital department is lsmc. data/emergency.json, shared/groups.lua and the trunk gear list were updated together. If your server has other departments, add them in those three places.

Author

Made by DaemonAlex for DelPerroSands.

Other DPS Enhanced scripts

The rest of the DPS Enhanced pack is at github.com/DPS-Enhanced.

About

DPS Fleet: the vehicle browser and workshop on one panel, for Qbox on FiveM for GTAV Enhanced.

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages