You can access to configuration file in the "codem-vehicleshopv2/shared/config.lua ". There some must do in this file so if you don't have any idea you can check out the web for it.
Framework
Select the framework you are using on your server.
Config.Locale = 'en' -- en, fr, pt-br, pt-pt, urdu, hu
Default Profile Picture
You can set the default profile picture for employees profiles. If you put your discord bot token it will automaticly get the discord profile photo of the players.
Type your currency mark you are using on your server.
Config.Currency = "$"
PDM Fee
Each time players get a vehicle they pay a little amount of PDM Fee. You can adjust the fee amount from here.
Config.PDMFee = 1200
Custom Plate And Fee
When players try buy a custom plate they pay a custom plate fee. You can adjust this fee amount from here.
Config.CustomPlateFee = 6000
If you don't want to use custom plate feature in this resource you can set this value to false.
Config.EnableCustomPlate = true
Automatic Log Delete
Resource has an automatic log clear system after days to prevent high server log load on your server. You can adjust the log deletion after days parameter from here.
Config.DeleteLogDays = 1 -- Set this to 0 if you don't want any logs to be deleted. If you want to use it, specify a number of days and logs more than the number of days you enter will be deleted.
Comissions For Employees
You can adjust the default comission percentage that employees get when they sell a vehicle.
Config.DefaultCommission = 10
Bossmenu As An Item
If you want your players to access to bossmenu with item you can make this parameter as true.
When an employee orders a vehicle there is an estimated delivery time of the vehicles. This system made for preventing employees to quickly get vehicles from the dockside and refilling their shops stocks. However you can set the " Math.Random " value to 0,0 if you don't want to use this feauture. Or you can make an adjustments.
Config.EstDeliveryTime = function()
return math.random(1800, 3600) -- set this to math.random(0, 0) if you dont want any wait time when new vehicle is ordered
end
Salary Payment by Time
You can adjust at how often the players gets their salary in the vehicleshop. Please be aware that players salary is deducted from vehicleshop's vaults.
Config.PaySalaryInterval = 30 -- how often to recieve pay checks in minutes
Vehicleshop Ranks
You can adjust the rank properties from here. These ranks are in the vehicleshop's bossmenu.
Select you vehicle key system you are using on your server. If you are using your own vehicle key system you can adjust the export paramters in the code as well.
Config.Vehiclekey = true
Config.VehicleSystem = "qb-vehiclekeys" -- cd_garage / qs-vehiclekeys / wasabi-carlock / qb-vehiclekeys
function trim(value)
return (string.gsub(value, '^%s*(.-)%s*$', '%1'))
end
Config.GiveVehicleKey = function(plate, model, vehicle) -- you can change vehiclekeys export if you use another vehicle key system
if Config.Vehiclekey then
plate = trim(plate)
if Config.VehicleSystem == 'cd_garage' then
TriggerEvent('cd_garage:AddKeys', plate)
elseif Config.VehicleSystem == 'qs-vehiclekeys' then
model = GetDisplayNameFromVehicleModel(GetEntityModel(vehicle))
exports['qs-vehiclekeys']:GiveKeys(plate, model, true)
elseif Config.VehicleSystem == 'wasabi-carlock' then
exports.wasabi_carlock:GiveKey(plate)
elseif Config.VehicleSystem == 'qb-vehiclekeys' then
TriggerServerEvent('qb-vehiclekeys:server:AcquireVehicleKeys', plate)
end
end
end
Notifications
You can adjust the each notification paramters from here.
Config.Notifications = {
vehicle_spawned = {
message = "Vehicle is spawned outside your vehicleshop!",
type = 'success',
},
plate_exists = {
message = "This plate is already exists!",
type = 'error',
},
return_to_veh = {
message = "Return to your vehicleshop to complete delivery!",
type = 'error',
},
not_allowed = {
message = "You are not allowed to do this!",
type = 'error',
},
delivered_vehicle = {
message = "Vehicle has been sent to your laptop stocks. You can do your actions in the laptop!",
type = 'success'
},
invalid_identifier = {
message = "Invalid identifier!",
type = 'error',
},
invalid_amount = {
message = "Invalid amount!",
type = 'error',
},
cant_fire_self = {
message = "You can't fire yourself!",
type = 'error',
},
you_fired = {
message = "You've been fired",
type = 'success',
},
select_a_vehicle = {
message = "Select a vehicle to sign.",
type = 'error',
},
select_a_vehicle_first = {
message = "Select a vehicle first.",
type = 'error',
},
invalid_vehicleshop = {
message = "Invalid vehicleshop id",
type = 'error',
},
invalid_player = {
message = "Invalid Player id",
type = 'error',
},
paper_signed = {
message = "Paper signed money added to vault! Commission : "..Config.Currency.."%s",
type = 'success',
},
your_vehicle_ready = {
message = "Your vehicle order has been signed you can get your vehicle from outside of the vehicleshop!",
type = 'success',
},
not_online = {
message = "Specified player is not online!",
type = 'error',
},
request_sent = {
message = "Request successfully sent!",
type = 'success',
},
received_salary = {
message = "You received "..Config.Currency.."%s salary!",
type = 'success',
},
not_enough_company_money = {
message = "Your company doesn't have enough money in the vault to make you payment!",
type = 'error'
},
not_enough_money = {
message = "You don't have enough money",
type = 'error'
},
not_enough_stock = {
message = "Not enough stock!",
type = 'error'
},
received_salary = {
message = "You received "..Config.Currency.."%s salary!",
type = 'success',
},
cant_edit_boss = {
message = "You can't edit boss rank!",
type = 'error',
},
lowest_rank = {
message = "Player is already at the lowest rank!",
type = 'error',
},
highest_rank = {
message = "Player is already at the highest rank!",
type = 'error',
},
already_boss = {
message = "Specified player is already the boss!",
type = 'error',
},
rank_changed = {
message = "Rank successfully changed!",
type = 'success',
},
invalid_link = {
message = "Invalid link!",
type = 'error',
},
invalid_category = {
message = "Invalid category name!",
type = 'error',
},
category_already_exist = {
message = "This category is already exists!",
type = 'error',
},
category_created = {
message = "Category is successfully created!",
type = 'success',
},
stock_changed = {
message = "Stock successfully changed!",
type = 'success',
},
delivery_is_active = {
message = "Delivery of this vehicle has already started!",
type = 'error',
},
no_space = {
message = "There is no space in the vehicleshop please get your vehicle from the garage.",
type = 'error',
},
invalid_plate_length = {
message = "Invalid plate length. (Max : 8)",
type = 'error',
},
invalid_value = {
message = "Invalid value",
type = 'error',
},
deleted_category = {
message = "Category deleted",
type = 'success',
},
cant_delete_default_category = {
message = "You can't delete default category",
type = 'error',
},
ordered_vehicle = {
message = "Vehicle is ordered! Get your vehicle from Ordered Vehicles category.",
type = 'success',
}
}