Configuration
To configure the script to your liking, have a look into config.lua. All the values are described within that file.
Config = {
Drugs = { -- drug items, with price (math.random will randomize the price within bounds each restart)
['weed'] = math.random(30, 50),
['coke'] = 100,
},
UseTarget = false, -- use target or press e to interact? (target requires ox_target)
Currency = 'black_money', -- black_money | money | bank (currency to use for drug selling)
MinPoliceDuty = 1, -- minimum amount of police on duty to sell drugs (0 for off)
EnablePreferredDrug = true, -- enable the preferred drug system, each zone will have a preferred drug that will be worth more (multiplied by Config.PreferMultiplier)
PreferMultiplier = 1.5, -- how much the preferred drug is worth (multiplier). the prefered drug will ALWAYS be demanded by NPCs in the area the drug is preferred in
-- zone config
ZoneVary = 10, -- price varys this much from zone to zone (percentage)
RandomZoneAmount = 6, -- amount of zones to choose randomly each restart !!!!!!! dont put more then there are in drugZones !!!!!!!
-- npc config
NPCVary = 10, -- price varys this much from NPC to NPC (percentage) [zoneVary is calculated before NPCVary, overall price variation will be zoneVary * NPCVary]
NPCScamChance = 15, -- chance of the NPC scamming the player (percentage)
NPCDemand = { min = 1, max = 4 }, -- how many different drugs the NPC will ask for (maximum is 4)
NPCDemandPerDrug = { min = 2, max = 6 }, -- how many of each drug the NPC wants
OnlyAskForExisting = true, -- only ask for drugs that the player has
-- Dispatch Config
DispatchJob = 'police', -- job that will recieve the dispatch
DispatchLength = 5, -- how long the dispatch will last (minutes)
DispatchChance = 10, -- chance of a dispatch being called (percentage)
DispatchBlip = { -- blip config
sprite = 51,
scale = 0.8,
colour = 1,
radius = 100.0,
},
DispatchCode = '10-90', -- dispatch code
DispatchMessage = 'A drug sale was witnessed at %s.', -- dispatch message (%s is street name, you can remove it if you dont want it)
DispatchTitle = 'Drug Sale Witnessed', -- dispatch title
DrugZones = {
['Paleto'] = {
points = {
vector2(1848.7827, 5310.4058),
vector2(1843.3604, 6774.2876),
vector2(-1113.4277, 6860.8237),
vector2(-1110.9688, 5333.9487),
},
},
['West Coast'] = {
points = {
vector2(-3174.5532, 5210.8198),
vector2(-1240.1395, 5260.1289),
vector2(-2359.1841, -272.2017),
vector2(-4101.8833, -266.6245),
},
},
['Sandy Shores'] = {
points = {
vector2(-206.6890, 2465.5615),
vector2(-204.2183, 4236.3828),
vector2(2820.4526, 4322.9243),
vector2(2799.3198, 2977.0669),
},
},
['Top Los Santos'] = {
points = {
vector2(1556.1580, 1249.8805),
vector2(-1912.5115, 811.3069),
vector2(-1928.6602, -209.2399),
vector2(1536.7441, -193.5090),
},
},
['Mid Los Santos'] = {
points = {
vector2(-1928.6602, -209.2399),
vector2(1536.7441, -193.5090),
vector2(1510.1606, -1389.8555),
vector2(-2343.8508, -1570.9187),
},
},
['Low Los Santos'] = {
points = {
vector2(1510.1606, -1389.8555),
vector2(-2343.8508, -1570.9187),
vector2(-2333.5488, -3932.0605),
vector2(1541.1523, -4073.7664),
},
},
},
Lang = {
police_missing = 'Not enough police on duty',
cheating_kick_message = 'You cheating!?!?!?',
alrady_talked = 'You already talked to this Person',
retrieved_drugs = 'You retrieved your drugs',
not_retrievable = 'This person does not have any drugs',
help = 'Press ~INPUT_CONTEXT~ to talk to the person',
help_scammed = 'Press ~INPUT_CONTEXT~ to retrieve your drugs',
not_enough_drugs = 'You do not have enough drugs',
}
}
Last updated