Developers
๐ค Server Exports
exports['kartik-drugs']:GetReputation(citizenId) -- number
exports['kartik-drugs']:AddReputation(citizenId, amount) -- new value
exports['kartik-drugs']:GetEquipment() -- placed equipment
exports['kartik-drugs']:GetTolerance(citizenId) -- 0-100
exports['kartik-drugs']:GetThcLevel(citizenId) -- THC in the system (drug tests use this)๐ก Server Events
Fired every time a player sells weed (street sale, delivery, party, wholesale, runner):
AddEventHandler('kartik-weed:server:drugSold', function(source, item, amount, price)
-- your code
end)๐ Built-in Integrations
| Resource | What it does |
|---|---|
| kartik-gangs | Every sale counts for turf influence, gang tiers, wars and the Corner Hustle contract. The Weed Runner contract asks for packed_weed. |
| kartik-evidence | Cannabis residue evidence and the forensic bench report. |
| Stress (qb/qbx HUDs) | Being high relieves stress through Config.High.StressEvent. |
๐๏ธ Database
Tables are created automatically on start: weed_users, weed_strains, weed_runners, weed_dispensaries, weed_stashes, plus a new upgrades column on weed_lockups.