Configuration Files
1. Adjust config.lua to your server core
Adjusting the script to your server core
Config.Core = "ESX"
Config.CoreExport = function()
return exports['es_extended']:getSharedObject()
end
Adjusting the PlayerLoaded trigger from server core to the script
Config.PlayerLoaded = "esx:playerLoaded"
Adjusting the PlayerLogoutServer trigger from server core to the script
Config.PlayerLogoutServer = "esx:playerDropped"
2. Adjust config.lua to server preferences
If you want to use a progress-bar for the exercises you are doing, you can do so below.
You can adjust your own progress bar in the config.client.lua - CL.Progressbar
Config.UseProgressbar = true
Do you want to use target system, you can adjust other one in the config.client.lua - CL.Target
Config.UseTarget = false
Config.TargetResource = 'ox_target' -- Prepared for 'ox_target', 'qb-target'
Adjusting the display of points
Config.UseMarkers = true -- Using a marker to display points
Config.UseText3D = false -- Using a 3D Text to display points
Config.UseHelpNotify = true -- Using a ESX.ShowHelpNotification (only for esx)
Set the maximum and minimum number of item purchases per purchase
Config.MaxItemsWithoutBasket = 20
Config.MaxItemsInBasket = 100
You can block the ability to run with the package while the goods are being delivered to the store
Config.DisableRunWithBoxInHands = true
Limit of stores to be owned by one player
-- -1 = Unlimited
-- 0 = No player can buy
Config.StoresLimitPerPlayer = -1
Do you want to prevent the employment of a player who has another job, if so, you can require the employment of only the person who has a job for example - unemployed
Config.RequiredJobToBeHired = 'unemployed'
Prevent multiple purchases of products by the same person so that fiends don't scoop up product sales for their own store
Config.PurchasesTimeout = 3600 -- 3600 seconds = 1 hour
3. Adjust config.storemanage.lua to server preferences
Cost of buying the Alarm & Monitoring
Config.AlarmPrice = 100000
The cost of transporting money safely
Config.MoneyEscortPrice = 2500
Costs and insurance times for stores
Config.Insurances = {
[1] = {days = 7, price = 30000},
[2] = {days = 30, price = 150000},
[3] = {days = 90, price = 400000},
}
Times after which stores receive a warning and are removed for inactivity of employees
Config.TerminationTime = {
['critical'] = 168, -- After this time, the store will be removed for inactivity
['warning'] = 72 -- After this time, the player will receive information in the management menu after the remaining time to remove the store for inactivity
}
If a store has x% of products in stock, it will not be subject to Config.TerminationTime, it will be omitted from the liquidation time
Config.TerminationExclusionProductsPercent = 80
If a gasstation has x% of fuel in stock, it will not be subject to Config.TerminationTime, it will be omitted from the liquidation time
Config.TerminationExclusionFuelPercent = 70
For what % a player can sell his business
Config.AutomaticSellPercentageFromPrice = 40
Employee to be able to create new order to take care of business
Config.AbilityEmployeesToCreateOrders = true
What it will give to the store for the upgrade, here you can adjust the values that stores will be able to use at the concurrent upgrade level
Config.LevelsBenefits = {
['1'] = {
itemsCapacity = 300,
fuelCapacity = 2500,
moneyMarginItems = 55,
moneyMarginFuel = 55,
quantityProducts = {15, 25, 50},
quantityFuel = {30, 50, 150},
levelup = {
-- type: 'sell_products', 'sell_fuel', 'make_orders', 'required_money'
['sell_products'] = {type = 'sell_products', count = 5000},
['sell_fuel'] = {type = 'sell_fuel', count = 7500},
['make_orders'] = {type = 'make_orders', count = 120},
['required_money'] = {type = 'required_money', count = 50000},
},
},
['2'] = {
itemsCapacity = 500,
fuelCapacity = 4000,
moneyMarginItems = 75,
moneyMarginFuel = 75,
quantityProducts = {15, 25, 50, 75},
quantityFuel = {30, 50, 150, 220},
levelup = {
['sell_products'] = {type = 'sell_products', count = 10000},
['sell_fuel'] = {type = 'sell_fuel', count = 17500},
['make_orders'] = {type = 'make_orders', count = 250},
['required_money'] = {type = 'required_money', count = 100000},
},
},
['3'] = {
itemsCapacity = 750,
fuelCapacity = 7500,
moneyMarginItems = 90,
moneyMarginFuel = 90,
quantityProducts = {15, 25, 50, 75, 100},
quantityFuel = {30, 50, 150, 220, 300},
},
}
Last updated
Was this helpful?