JCKSDocs
JCKS JobsV1Referenz

Drugs settings

Options of data/config.drugs.lua and the server only drug values in JCKS Jobs 1.0.0.

Gameplay is described on Drugs.

Shared (data/config.drugs.lua)

Key Type Default What it changes
Config.Drugs.enabled boolean true Drugs module
Config.Drugs.care table watering_can, fertilizer, liquid_fertilizer Water and fertiliser each care item adds
Config.Drugs.zones table grapeseed Grow zones with center, radius, growMultiplier, optional blip
Config.Drugs.seeds table weed_seed, coca_seed Per seed: label, stages (models), offset, zones (empty = anywhere), growMinutes, products ({ min, max }), seedBack (chance, min, max), time
Config.Drugs.tables table weed_table, workbench, coke_table Per table: label, model, item, recipes with ingredients, outputs, time, failChance, optional blueprint and jobs
Config.Drugs.use table joint, cocaine, weed_bag Per item: anim, seconds, cooldown, effects
Config.Drugs.selling.enabled boolean true Corner selling
Config.Drugs.selling.command string 'selldrugs' Toggles selling mode
Config.Drugs.selling.minPolice number 0 Police on duty needed
Config.Drugs.selling.sellChance number 70 Percent a sale succeeds
Config.Drugs.selling.robChance number 10 Percent the NPC grabs the drugs and runs
Config.Drugs.selling.policeAlertChance number 20 Percent of a police call
Config.Drugs.selling.amount range { 1, 4 } Items per sale
Config.Drugs.selling.account string 'cash' Payout account
Config.Drugs.selling.zones table grove, vespucci center, radius, prices per item as { min, max }
Config.Drugs.dealer.enabled boolean true Dealer NPC
Config.Drugs.dealer.ped string 'g_m_y_mexgoon_02' Dealer model
Config.Drugs.dealer.coords vector Sandy Shores area Dealer position and heading
Config.Drugs.dealer.items table seeds, care items, papers, bags, acetone, tables Item and price
Config.Drugs.dealer.account string 'cash' Account the player pays from

Server only (data/config.server.lua)

Key Type Default What it changes
Config.Drugs.plantLimit number 10 Plants per player at once
Config.Drugs.plantDistance number 1.5 Minimum meters between two plants
Config.Drugs.growMinutes number 30 Default growth time
Config.Drugs.waterDecay number 1.0 Percent per minute
Config.Drugs.fertilizerDecay number 0.7 Percent per minute
Config.Drugs.threshold number 10 Below this water or fertiliser the plant loses health
Config.Drugs.healthDecay range { 5, 9 } Health lost per minute while starving
Config.Drugs.destroyItem string '' Item needed to burn a plant, '' = none
Config.Drugs.policeDestroyReward number 250 Paid to police for destroying a plant
Config.Drugs.policeJobs table { police = true, sheriff = true } Jobs that destroy plants for a reward
Config.Drugs.workbenches boolean true Crafting benches
Config.Drugs.fixedTables list one weed_table Fixed processing spots, no item needed