CUSTOMS

1. General Configuration

The general configuration section includes the framework settings, MySQL settings, and custom functions for vehicle modifications.

Customize = {
    Framework = "NewESX", -- QBCore | ESX | NewESX | OldQBCore (Write the framework you used as in the example)
    Mysql = "oxmysql", -- oxmysql | ghmattimysql | mysql-async (Write the sql script you use as in the example)
    RepairPrice = 250,

    CustomFunction = function(Vehicle, Porps)
        -- TriggerServerEvent('UpdateVehicleModifications', string.gsub(GetVehicleNumberPlateText(Vehicle), '^%s*(.-)%s*$', '%1'), exports['esc_carsave']:GetVehicleModifications(Vehicle))
    end,

    JobErrorNotify = function()
        print("profession mismatch")
    end,
    
    MoneyErrorNotify = function()
        print("No money received!")
    end,

    OpenCustoms = function()
        -- exports['script-hud']:SetHudVisibility(false)
    end,

    CloseCustoms = function()
        -- exports['script-hud']:SetHudVisibility(true)
    end
}

2. RGB and Standard Color Customization

Define the RGB and standard color options for vehicle customization.

3. Vehicle Customization Options

Define the customization options available for vehicles, including performance and cosmetic upgrades.

4. Custom Shop Locations

Define the locations for your custom vehicle shops, including blip settings and vehicle spawn positions.

5. Marker Configuration

Define the marker settings and interaction options for opening the customs menu.

6. Framework and SQL Integration Functions

Functions to integrate the script with different frameworks like ESX, NewESX, and QBCore, and to execute SQL queries.

Summary

This guide helps you configure a custom vehicle modification shop in your FiveM server by providing detailed examples for general configuration, color options, customization settings, location setup, marker configuration, and integration functions. Customize each section to fit your server's needs and integrate these configurations into your GitBook documentation for clear and comprehensive instructions for your users.

Last updated