Installation
Installation
1. Drop the resource
Extract suty-drugsell into resources/[suty]/suty-drugsell.
2. Ensure dependencies and the resource
server.cfg:
ensure ox_lib
ensure oxmysql
ensure ox_target
ensure ox_inventory
ensure lb-phone # must boot BEFORE suty-drugsell so the trap-phone app registers
ensure suty-drugsell
lb-phone MUST start before suty-drugsell — the trap-phone app registers during the latter's boot and silently no-ops if lb-phone isn't loaded yet.
3. Database
All tables are created automatically on first start. Verify with:
SHOW TABLES LIKE 'suty_drugsell_%';
You should see at least: suty_drugsell_zones, suty_drugsell_dealers, suty_drugsell_sales.
4. Items (ox_inventory)
The drug items used by the script live in config/drugs.lua. Each entry references an item name that must exist in ox_inventory/data/items.lua. If you're using vanilla drug items (coke_small, weed_bag, etc.) you're set. For custom items, add them to ox_inventory first.
5. Grant admin permission
The zone creator command requires group.admin:
add_principal identifier.license:YOUR_LICENSE group.admin
6. Create your first zone
As admin, in-game:
/creardrugzone
The same zone creator UI as suty-zonasegura opens. Draw a polygon, name it, save.
7. Verify
Walk into the saved zone carrying a drug item that matches one in config/drugs.lua. Customer NPCs should start spawning according to the Config.SpawnIntervalMs setting.
8. (Optional) OP-Crime / OP-Gangs
If you have op-crime or op-gangs installed and want turf-based drug economics, open config/main.lua and set:
Config.AdditionalScripts = {
op_Gangs = true,
}
See OP-CRIME-INTEGRATION.md in the resource folder for the full integration matrix.
