Config = {}
Config.UseLegacy = true
Config.ESXEventName = "esx:getSharedObject"
Config.ESXResourceName = "es_extended"
Config.lang = 'en' -- Your language
Config.EnableAnimation = true -- Activation of player and npcs animations
Config.SellingDistance = 3.5 -- Npcs detection distance
Config.commandName = "enableselling" -- Name of the command to activate the npcs sales mode
Config.enableKey = true -- Allows you to activate the sales mode to npcs by one key
Config.key = "F3" -- Key for activating npcs sales mode
Config.enableLegalItems = true -- Allows the sale of legal items to npcs, payable in clean or dirty money
Config.enableIllegalItems = true -- Allows illegal items to be sold to npcs, payable in clean or dirty money
Config.enableCallingNotications = true -- Allows to send a notification when npc calls the police
--[[
-- DOCUMENTATION FOR ADDING AN ITEM --
-- PLEASE READ THE INDICATIONS CAREFULLY --
isLegal: Allows you to categorize the item (true = legal item, false = illegal item)
name: Name of your item
label: Label of your item
price: Allows you to set either a random price (with math.random(min, max)) or a fixed price
percentOfChance: Percentage of chance of selling the item (0 = no chance of selling, 100 = sure sell)
percentOfChanceAlertLSPD: Percentage of chance that the npc will call the police (0 = no call, 100 = call on each refusal)
enableCallPolice: Allows you to activate alerts to the police individually by item
enableBlackMoney: Allows you to donate clean or dirty money
cancellSellText: Item purchase refusal message, customizable for each item in the translation.lua file
!! WARNING "cancellSellText" MUST ALWAYS BEGIN WITH THE NAME OF YOUR ITEM, MUST END WITH "_cancellSellText" AND MUST BE DEFINED IN THE "translation.lua" FILE !!
!! PLEASE TAKE AN EXAMPLE ON THE ITEMS ALREADY IN PLACE !!
]]--
Config.Items = {
water = {
isLegal = true,
name = "water",
label = "Water",
price = math.random(5, 35),
percentOfChance = 100,
percentOfChanceAlertLSPD = 0,
enableCallPolice = false,
enableBlackMoney = false,
cancellSellText = "water_cancellSellText"
},
weed = {
isLegal = false,
name = "water",
label = "Weed",
price = math.random(300, 350),
percentOfChance = 30,
percentOfChanceAlertLSPD = 30,
enableCallPolice = true,
enableBlackMoney = true,
cancellSellText = "weed_cancellSellText",
},
}