π οΈconfig_drugselling.lua
-- βββββββ βββββββ βββββββ ββββ ββββββββββββββββββ
-- ββββββββββββββββββββββββββββββ βββββββββββββββββββ
-- βββ βββ βββββββββββββββββ βββββββββ ββββββββ
-- βββ βββ βββββββββββββββββββββββββββ ββββββββ
-- ββββββββββββββββββββ ββββββ βββββββββββββββββ βββ
-- βββββββ βββββββ βββ ββββββ ββββββββββββββββ βββ
Config.DrawLine = false -- Draws a pink line to the Drug Sale PED. Useful for Debug, potentially useful in a Live Environment.
Config.MinCops = 0 -- The minimum number of cops online before any selling is allowed
Config.ControlPercentage = {
-- I've built a system that allows gangs to take a cut of all the drug sales in a zone they control
-- This is a percentage that each gang can set for themselves
-- Other players will see the cut that is being taken via the UI in the bottom right when selling drugs
enabled = true, -- If true, the control percentage wiil be applied to the drug sales (For turfs that have already been created the default percentage is 0)
onlyRivalGangs = false, -- If true, the control percentage will only be applied to rival gangs. The gang that owns the zone won't pay the tax to themselves
maxCut = 30, -- This is the maximum percentage that a gang can take from the drug sales in a zone they control
civilians = true, -- If true, the control percentage will apply to civilians as well
useDirtyCash = false, -- If true, the money will be added as Dirty Cash to the Gang Fund
}
Config.DrugSaleInterface = {
-- This determines how the drug sale will look when the player is selling drugs
useTarget = false, -- If this is set to fase, will use DrawText
distance = 2.5,
}
Config.CivilianSales = {
-- You can disable civilian sales via Config.Slinging.onlyGangMembers and Config.LocalDrugSelling.onlyGangMembers
hurtGangRep = true, -- If true, selling drugs in a gang zone without being in a gang will hurt the gang that controls the zone
decreaseAmount = 1, -- The amount of loyalty to decrease per sale in the zone
}
Config.UseDirtyCash = {
-- Incorporates Dirty Cash into the Gang System Drug Sales
-- In v2.4.0, this Config was updated to only work for Drug Sales. There are separate configurations for the Gang Fund and Rivalries
enabled = true,
item = "black_money",
}
Config.DrugSellingPeds = {
useGamePool = false, -- Do you want to use the Game Pool when creating peds for players to sell drugs to? This is more optimized
blacklistedModels = { -- These models will never be used for Drug Sales
-- To add more models, visit: https://docs.fivem.net/docs/game-references/ped-models/
-- This is only used if you use Game Pool, don't worry about changing anything if you are using the Custom Pool set above
"cs_beverly"
},
customPool = {
-- To add more models, visit: https://docs.fivem.net/docs/game-references/ped-models/
-- [Ped Model] = Weight (higher weight = higher chance of being selected)
-- Example: If you have 3 peds with weights 10, 20, 30 (total 60),
-- the first has 10/60 = 16.67% chance, second has 20/60 = 33.33% chance, third has 30/60 = 50% chance
["a_m_y_hipster_01"] = 30, -- 30% chance (30/100)
["a_m_y_skater_01"] = 25,
["a_f_y_hipster_01"] = 20,
["a_m_y_downtown_01"] = 15,
["a_f_y_clubcust_01"] = 10,
},
policeCallModels = { -- These models will notify the police EVERY time the player sellls to one
-- To add more models, visit: https://docs.fivem.net/docs/game-references/ped-models/
-- By default, I added all of the Police peds and any peds with cameras attached to their body (This is for roleplay and immersion)
"cs_beverly", -- Camera on Body
"a_f_y_tourist_01", -- Camera on Body
"cs_casey", -- Security Guard
"csb_cop", -- Cop
"csb_mweather", -- Security Guard
"csb_prolsec", -- Security Guard
"csb_ramp_marine", -- Military
"csb_trafficwarden", -- Traffic Cop
"mp_m_fibsec_01", -- FIB
"mp_m_securoguard_01", -- Security Guard
"mp_s_m_armoured_01", -- Security Guard
"s_f_y_cop_01", -- Cop
"s_f_y_ranger_01", -- Cop
"s_f_y_sheriff_01", -- Cop
"s_m_m_armoured_01", -- Security Guard
"s_m_m_armoured_02", -- Security Guard
"s_m_m_chemsec_01", -- Security Guard
"s_m_m_ciasec_01", -- Security Guard
"s_m_m_fibsec_01", -- FIB
"s_m_m_prisguard_01", -- Prison Guard
"s_m_m_security_01", -- Security Guard
"s_m_y_blackops_01", -- Military
"s_m_y_blackops_02", -- Military
"s_m_y_blackops_03", -- Military
"s_m_y_cop_01", -- Cop
"s_m_y_hwaycop_01", -- Cop
"s_m_y_marine_01", -- Military
"s_m_y_marine_02", -- Military
"s_m_y_marine_03", -- Military
"s_m_y_ranger_01", -- Cop
"s_m_y_sheriff_01", -- Cop
"s_m_y_swat_01", -- SWAT
"ig_beverly", -- Camera on Body
"ig_casey", -- Security Guard
}
}
Config.UseZoneModifier = true -- Do you want to increase the price of the drug sale if the player's gang is in control of the turf that is being sold on
Config.ZoneModifier = 15 -- Think of this as a percentage (e.g. 15 = 15% or -15 = -15%). See the above comment for more information
Config.OnlySlingOutside = true -- If true, only allow players to sell drugs when outside
Config.Slinging = {
enabled = true, -- If true, players can sell drugs via the /corner command
onlyGangMembers = true, -- If true, only allow players to use the corner command if they have a gang affiliation
cooldown = 30, -- If you stop selling, this is how long you must wait before you can sell again
maxRange = 60.0, -- I wouldn't recommend bringing this above 60.0
spawnCooldown = 15, -- This is how long it takes for more peds to spawn after a sale takes place
anim = {
dict = "mp_common",
name = "givetake1_a",
flag = 16,
props = {
{ model = "prop_paper_bag_small", bone = 28422, offset = { 0.0, -0.05, 0.02, -90.0, 0.0, 0.0 } },
},
},
drugs = {
--[[
Min: minimum cash per item,
Max: maximum cash per item,
Cap: maximum amount of items per sale,
]]
--- PUT YOUR DRUGS HERE ---
["coke_baggy"] = { Min = 110, Max = 130, Cap = 2 },
}
}
Config.HeatCount = {
[0] = { -- 0 represents how many stars are shown on the heat map
minCopCount = 0, -- The minimum number of cops online AND on duty to trigger this multiplier
maxCopCount = 0, -- The maximum number of cops online AND on duty to trigger this multiplier
multiplier = -50, -- This is a PERCENTAGE. So if the player is selling on a turf with 2 cops online, the price will be REDUCED by 50%
},
[1] = {
minCopCount = 1,
maxCopCount = 3,
multiplier = -15,
},
[2] = {
minCopCount = 4,
maxCopCount = 7,
multiplier = 0,
},
[3] = {
minCopCount = 8,
maxCopCount = 10,
multiplier = 7,
},
[4] = {
minCopCount = 11,
maxCopCount = 15,
multiplier = 10,
},
[5] = {
minCopCount = 16,
maxCopCount = 99,
multiplier = 30,
}
}
Config.HotZone = { -- If true, every X minutes, a new zone will become the Hot Zone
enabled = false, -- Do you want to enable hot zones?
loop = 1, -- How often should the hot zone change? (In minutes)
bonus = 15, -- 15% bonus
}
Config.LocalDrugSelling = {
enabled = true,
maxDrugs = 1,
onlyGangMembers = true, -- If true, only allow players to sell drugs to locals if they have a gang affiliation
drugs = {
-- PUT YOUR DRUGS HERE ---
["coke_baggy"] = { Min = 110, Max = 130, Cap = 2, Chance = 30, },
}
}
Config.DrugCategories = {
low = {
-- PUT YOUR DRUGS HERE ---
-- "coke_baggy",
},
medium = {
-- PUT YOUR DRUGS HERE ---
-- "coke_baggy",
},
high = {
-- PUT YOUR DRUGS HERE ---
"coke_baggy",
}
-- You can add more categories here if you want to
}
Config.LationDrugs = {
enabled = false,
defaultPurity = 10,
}Last updated