⚙️ Config
Configuration page for mx0_drugs
⚙️ Config
Config = {}
Config.VersionCheck = true
Config.IsDeadFunction = function()
return exports['ars_ambulancejob']:isDead() -- return IsEntityDead(PlayerPedId())
end
Config.allowCameraMovement = false
Config.CCTVCameras = {
["meth"] = {
target = vec3(1002.8530, -3193.8777, -38.993), -- miesto, kde hráč aktivuje kameru
camera = {
coords = vec3(1197.561, -3256.824, 8.852), -- pozícia kamery
rotation = vec3(-40.0, 0.0, 50.0), -- rotácia kamery
fov = 60.0
},
propModel = `prop_cctv_cam_01b`, -- model kamery (voliteľné)
propHeading = -90.0 -- otočenie propu
},
["drugbase_cctv"] = {
target = vec3(1100.0, 2100.0, 35.0),
camera = {
coords = vec3(1095.0, 2095.0, 39.0),
rotation = vec3(-20.0, 0.0, 120.0),
fov = 50.0
},
propModel = `prop_cctv_cam_06a`,
propHeading = 120.0
}
}
-- 🌿 Drug Spawning...
Config.drugRadius = 8.0
Config.drugCount = 100
Config.collectRadius = 1.0
Config.processRadius = 1.0
Config.minDistanceBetweenPlants = 3.0
Config.AllowDigWhenArmed = false
Config.AllowDigWhenDead = false
-- 🌍 Selling location
Config.sellLocation = vector3(-357.3661, -1543.0811, 26.7256)
Config.sellHeading = 289.3640
Config.NpcModel = GetHashKey("a_m_m_business_01")
Config.MoneyItem = 'black_money'
-- 🌍 Blackmarket
Config.blackmarketLocation = vector3(2221.7817, 5614.7393, 54.9017)
Config.blackmarketHeading = 103.3813
-- 🌿 SELL V2
Config.useTarget = true -- currently no effect either way; A target resource is required
Config.sellingOnByDefault = false -- If true(experimental), the player will be put into "selling mode" on spawn
Config.inventoryResource = 'ox_inventory' -- Supported resources: 'ESX'(experimental), 'qb-inventory', 'ox_inventory'
Config.targetResource = 'ox_target' -- Supported resources: 'qb-target', 'ox_target'
Config.policeCallClientFunction = function ()
local data = exports['cd_dispatch']:GetPlayerInfo()
TriggerServerEvent('cd_dispatch:AddNotification', {
job_table = {'police', 'sheriff', 'sahp' },
coords = data.coords,
title = '10-14 - Prodej Drog',
message = 'Pohlaví: '..data.sex..' Bylo Spozorováno Při Prodeji Drog na Ulici: '..data.street,
flash = 0,
unique_id = data.unique_id,
sound = 1,
blip = {
sprite = 469,
scale = 0.9,
colour = 25,
flashes = false,
text = '10-14 - Prodej Drog',
time = 5,
radius = 100,
}
})
end
Config.forbiddenModels = {
-- Human peds
`mp_m_freemode_01`,
`mp_f_freemode_01`,
`csb_cop`,
`ig_trafficwarden`,
`s_f_y_cop_01`,
`s_m_m_snowcop_01`,
`s_m_y_cop_01`,
`s_m_y_hwaycop_01`,
`mp_m_shopkeep_01`,
`mp_m_fibsec_01`,
`mp_s_m_armoured_01`,
`mp_m_securoguard_01`,
`s_m_y_swat_01`,
`s_m_y_sheriff_01`,
`s_m_m_paramedic_01`,
`s_m_m_paramedic_01`,
-- Animal peds
`a_c_boar`,
`a_c_cat_01`,
`a_c_chickenhawk`,
`a_c_chimp`,
`a_c_chop`,
`a_c_cormorant`,
`a_c_cow`,
`a_c_coyote`,
`a_c_crow`,
`a_c_deer`,
`a_c_dolphin`,
`a_c_fish`,
`a_c_hen`,
`a_c_humpback`,
`a_c_husky`,
`a_c_killerwhale`,
`a_c_mtlion`,
`a_c_pig`,
`a_c_pigeon`,
`a_c_poodle`,
`a_c_pug`,
`a_c_rabbit_01`,
`a_c_rat`,
`a_c_retriever`,
`a_c_rhesus`,
`a_c_rottweiler`,
`a_c_seagull`,
`a_c_sharkhammer`,
`a_c_sharktiger`,
`a_c_shepherd`,
`a_c_stingray`,
`a_c_westy`,
}
This configuration script is for the mx0_drugs
script, which manages various settings related to drug operations within a Lua-based gaming environment. It includes configurations for CCTV cameras, drug spawning, selling locations, black market interactions, and police notification systems. It also specifies forbidden character models and sets parameters for in-game interactions and notifications.
Last updated