Gun Rack
Overview

Medit8z Gun Rack

Medit8z Gun Rack is a vehicle-mounted 5-slot weapon stash for police and BCSO patrol vehicles, plate-locked and fully persistent across restarts. Every install, open, and uninstall is server-authoritative, and civilians can only access an installed rack via a one-shot gunrack_key that is consumed on use — built specifically for stolen-patrol and weapon-recovery RP.

What it does

  • Job-locked install / uninstall — only configured jobs (defaults: police, bcso) can place or remove racks.
  • Per-plate stashes — each rack is a unique Ox Inventory stash bound to the vehicle plate, registered in the gunracks table and re-registered on every restart.
  • Civilian one-shot key — the gunrack_key item opens the rack once and is then consumed, enabling realistic theft / recovery loops.
  • Empty-to-remove safety — uninstall is rejected if the stash isn't empty, so weapons can't be lost to misclicks.
  • Vehicle class filter — by default only emergency-class vehicles (class 18) accept racks; lightbar utility props are excluded by name prefix.
  • Auto-migrating database — the gunracks table is created inline on first start. No SQL import needed.

Dependencies

ResourcePurpose
qbx_corePlayer framework, on-duty / job checks
ox_inventoryItem registration, plate-bound stashes
ox_libProgress bar, notifications, dialogs
oxmysqlPlate-to-rack persistence

A working MySQL or MariaDB instance is required.

Get started

  • Installation — drop the folder, merge two items, copy icons, ensure.
  • Configuration — job allowlist, vehicle class, stash size, install distance.
  • Gameplay — officer install flow, civilian key flow, uninstall safety.
  • Troubleshooting — common install / open / removal issues.

Direct support is in Discord (opens in a new tab). Verified bugs are fixed within 7 days. Lifetime updates included.