[FREE] Emergency Vehicle Modification System for QBCore/QBX via OX_LIB UI

I spent several days looking for a simple/straightforward Extras and Livery menu for emergency vehicles. Mostly, what I found was either too complex (had too many features), the UI was too conspicuous, or cost $$$

I decided to build a simple, lightweight, EmergencyVehicleMenu that anyone could use and edit easily. I like the simplicity of using OX_lib. It always looks clean and you can make server-wide menu and notification changes easily.


Features

  • Change Vehicle Extras: Add and remove up to 20 Veh Extras
  • Custom Skins: Change up to 4 vehicle liveries.
  • Toggle doors
  • Database Integration: Save and retrieve modifications for user veh preference persistence.

Future Updates:

  • Additional SQL logic that will save preferences for each vehicle the player uses. Updates with each change.
  • QBX & ESX compatibility
  • Compatibility with other menus TBD based on feedback.

Requirements

  • QBCore/QBX Framework
  • ox_lib
  • OxMysql

Screenshot 2025-01-30 190859
Screenshot 2025-01-30 190647
Screenshot 2025-01-30 190611

Installation

  1. Download the Resource
    Clone or download this repository into your resources folder and ensure.

  2. Set Up the Database
    Run the following SQL query in your database to create the emergency_vehicle_mods table:

```sql
CREATE TABLE IF NOT EXISTS `emergency_vehicle_mods` (
    `id` INT NOT NULL AUTO_INCREMENT,
    `vehicle_model` VARCHAR(255) NOT NULL,
    `skin` VARCHAR(255) DEFAULT NULL,
    `extras` TEXT DEFAULT NULL,
    `created_at` TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
    PRIMARY KEY (`id`),
    UNIQUE KEY `vehicle_model_unique` (`vehicle_model`)
);

COMMANDS
/modveh

GitHub Link: https://github.com/DaemonAlex/EmergencyVehicleMenu
EmergencyVehicleMenu.zip (3.6 KB)
| Code is accessible | Yes |
| Lines (approximately) | 200 |
| Requirements | qbcore, ox_lib, DB |
| Support |Only Via pull-request |
| Assets are accessible | Yes |