Configuration Files

1. Adjust config.lua to your server core

  1. Adjusting the script to your server core

Config.Core = "ESX"
Config.CoreExport = function()
    return exports['es_extended']:getSharedObject()
end

  1. Adjusting the PlayerLoaded trigger from server core to the script

Config.PlayerLoaded = "esx:playerLoaded"

  1. Adjusting the PlayerLogoutServer trigger from server core to the script

Config.PlayerLogoutServer = "esx:playerDropped"

  1. Adjusting the PlayerSetJob trigger from server core to the script

Config.PlayerSetJob = "esx:setJob"

  1. Adjust the Menu to your menu script

Config.Menu = 'esx_context' -- 'esx_menu_default' / 'esx_context' / 'ox_lib'
Config.ESXMenuDefault_Align = 'right'

2. Adjust config.lua to server preferences

Several options are available for interacting with the point

LoadPricesFromDatabase: You can load vehicle prices from the database to automate the configuration process, but make sure that your database match to the function SV.getPricesFromDatabase in config.server.lua

LiveriesUseCustomNames: When using this option, it will search if a name other than NULL exists, if found, it will display the custom name, otherwise, it will set 'Livery ID' as before.

RemoveGunsTuningMods: Do you want tuning parts that add weapons to the vehicle to be automatically detected and removed from the purchase option

DefaultVehiclePrice: Default price if the vehicle is not defined in Config.Vehicles (config.vehicles.lua)

UseDiscountCodes: Do you want it to be possible to use the discount code for tuning

DiscountCodeLength: from how many characters the code will be generated

EnableDiscountsForWorkshops: This allows in the boss-menu to create discount codes for the heads of tuning workshops

DiscountCodesPercentages: Percentages available to generate codes in boss menu for player

DiscountCodesUsablesCount: Number of coupons available to generate codes in player's boss menu

AdminDiscountCodesCommand: Commands for administrators to generate and delete discount codes

UseBuildInCompanyBalance: If you don't want to use the balance built into the Management Menu, set this to false and configure config.server.lua to be compatible with your server, for example a script for banks that may have company accounts

BillMoneyToSocietyPercent: Do you want the company to receive a % from paid billing of tuning a vehicle?

BillMoneyToTunerPercent: Do you want the tuner to receive a % from paid billing of tuning a vehicle?

AddSocietyMoneyForTuningPercent: Do you want the company to receive a % from price of tuning a vehicle?

UseTuningPoints: Do you want to use the points provided by the vms_tuning resource, if you want to use export with another resource set false

Prepare tuning points accordingly

Described options available for Config.TuningPoints

jobGradesToSet - list of possible grades to be given by the boss/manager in the management menu

client_can_select_tuning - With this option activated, it is recommended to use manual installation by a mechanic, because the player will be able to drive to the tuning point, select the parts he is interested in and pay for them himself, then the nearest mechanic is searched for him to install the parts he has selected.

send_bill_to_player - This option when paying for tuning adds a "BILL" button which allows the mechanic to issue a bill to the customer and he will be the one to make the payment of a given amount

pay_from_society - Payment with company money

society_name - Company account name, e.g. 'society_mechanic'

job - Name of the job that will have access to the ability to interact with tuning points.

grades_access - The names of the grades of jobs that have access to the tuning point, you can set them in a table for several, for example {'gradename', 'gradename2'}, as a string for one grade - 'gradename' or set nil as for each player with job.

manager_grades - managers grades so that the script can identify a player as a manager and grant him additional options in the management menu

bossmenu_grades_access - boss grades so that the script can identify a player as a manager and grant him additional options in the management menu

3. Adjust config.installationparts.lua to your server preferences

UseHelpUI: For advanced part installation which can prompt the player what they need to do now

DisableAbilityToRunWithParts: Is the player to be blocked from running with parts in hand?

UseManualPartInstallation: Do you want the player to have to manually install each part separately to give the tuning process realism

UseTargetForPartInstallation: Do you want to use target system for part installation

TeleportToVehicleAfterInstallForMS: Is the player to be teleported to the vehicle for a millisecond, it will not be practically visible and the newly installed part in each player will synchronize

TeleportToVehicleAfterFullInstallation: Is the mechanic to be transported to the vehicle after the installation of all parts is completed so that all Vehicle Properties are loaded

InstallationPartsPoints: Points for workshops to find purchased parts for the installation

Use advanced installation

Last updated

Was this helpful?