Config
An example of the contents of config.lua
---All settings of the script are found and edited in this file.
Config = {}
---Commands and Settings
Config.Commands = {
---You can trigger the menu with a command
OpenMenu = {
active = true, -- Determines if the command is active
command = 'weedmenu', -- The command to open the menu
},
}
---Job Levels
---The level equivalent of XP values
Config.JobLevels = { 0, 1800, 4000, 6000, 9000, 12000, 20000 }
---Reputation Levels
---The reputation equivalent of XP values
Config.ReputationLevels = { 0, 1000, 2000, 3000, 4000, 5000 }
---The images folder path of your inventory script
---So that item names and images will match your inventory - images only PNG !
Config.InventoryImagesFolder = 'ox_inventory/web/images/'
---Can a player take more than one drug at the same time and get the effects
---Determines if multiple drugs can be used simultaneously
Config.UsabilityMoreThanOneDrug = false
Config.Orders = {
-- Order blip options
blip = { sprite = 501, scale = 0.7, text = 'Active Order', color = 5, }, -- Blip settings for active orders
-- Renewal period of orders | seconds
RenewalTime = 6 * 600, -- Time before orders can be renewed
-- Basic item price (multiplied by stage and count)
BaseItemPrice = 500, -- Base price for items
-- Reputation bonus (amount to be added for each level)
ReputationBonus = 1000, -- Bonus added to reputation for each level
-- Minimum payment value
MinPayment = 1000, -- Minimum amount that can be paid
---@type 'item'|'bank'
PaymentType = 'item', -- Type of payment (item or bank)
---@type string -- Your money item name
PaymentItemName = 'money', -- Name of the money item used for transactions
-- A chance to notify the police after delivery. This value is adjusted according to the player's reputation level
PoliceAlertChange = 0.90 -- Probability of notifying the police after delivery
}
---Required police job names | The total number of players with these jobs will be checked for `requiredPoliceCount`
Config.PoliceJobName = {
['police'] = true, -- Police job name
['sheriff'] = true, -- Sheriff job name
}
Last updated