Configuration
These are self explanatory
Config.BoxModel = "v_res_filebox01" -- box prop for the handover
Config.NPCModel = "s_m_y_dealer_01" -- model for the npc that hands you your package
Config.AlertPoliceChance = 30 -- 30% chance
Config.Inventory = 'ox' -- 'qb' or 'ox' (if you dont plan on using an inventory then dont touch, and refer to docs)
Config.Target = 'ox' -- 'qb' or 'ox'
Config.ItemName = 'burnerphone' -- only for qb-inventory, refer to docs for ox inventory or no inventory usage
60 seconds, this is a fallback if no one collects their package, to reduce overload
Config.NPCDespawnTime = 60000
In seconds, 1800 seconds = 30 minutes, this updates the shop, so theres a nice and smooth rotation of items
Config.ItemUpdateTime = 1800
These are configs regarding the time
Config.StartOfNightTime = 20 -- the hour night time starts (8PM), this is up to you
Config.EndOfNightTime = 6 -- the hour night ends (6AM), this is up to you
Config.DiscountForNightTime = 0.9 -- this is a 10% discount when its night time, so if you wanted 50% off, the value would be 0.5
This is a 20% discount, so if you wanted 50% off, the value would be 0.5, hot items are explained below
Config.HotItemDiscount = 0.8
The amount of items that will be in the shop per rotation, so if its 3, 3 items will be in the shop at every rotation
Config.ItemsPerRotation = 3
Some things to know
The prices are their base price, so if its night time, and you have the discount at 10%, bandages would be $45
The hotChance value is the chance that item is discounted, therefore if sold at night, and the pistol is a hot item, the pistol would be 30% off
Config.Items = {
{ name = "weapon_pistol", label = "Pistol", price = 5000, hotChance = 10 },
{ name = "armor", label = "Body Armor", price = 1000, hotChance = 15 },
{ name = "lockpick", label = "Lockpick", price = 500, hotChance = 20 },
{ name = "radio", label = "Radio", price = 300, hotChance = 25 },
{ name = "bandage", label = "Bandage", price = 50, hotChance = 30 },
}
Last updated