Troubleshooting
Troubleshooting
Customers don't spawn
Three things to check, in order:
- You're inside a zone — Walk into a saved drug zone and toggle
/venderdrogas. Outside zones, no spawns happen (unlessConfig.RestrictToZones = false). - You carry a drug item — Customers approach dealers who hold at least one item matching
config/drugs.lua. An empty-handed dealer triggers no spawns. - Spawn rate is sane — Open
config/customers.luaand confirmConfig.SpawnIntervalMsisn't set to an absurdly high value.
"El UI personalizado no aparece" / freecam HUD invisible
If the freecam creator opens but the HUD card doesn't show, you may be on an older build where body { display: none } in the zonecreator CSS was hiding sibling overlays. Updated versions ship with the body always laid out and a body.active class that toggles the dark backdrop only when the leaflet creator is open. Update the resource if you're on an old build.
Customers walk up but immediately call cops
This is the snitch behavior firing. Open config/customers.lua and lower the snitch weight:
Config.Behaviors = {
friendly = { weight = 80 },
robber = { weight = 15 },
snitch = { weight = 5 }, -- was 15
}
Weights are relative, not percentages.
Trap-phone app doesn't appear in lb-phone
lb-phone must boot before suty-drugsell. Check your server.cfg ensure order. After fixing, restart both resources (refresh; restart lb-phone; restart suty-drugsell).
Dispatch alerts aren't reaching cops
Open config/police.lua and confirm:
Config.SnitchUseDispatch = trueConfig.DispatchResourcematches your actual dispatch script (ps-dispatch,pma-dispatch,qb-dispatch)- The dispatch resource is started
If you don't use a dispatch script, set Config.SnitchUseDispatch = false — alerts will fall back to direct TriggerClientEvent to on-duty cops.
"Item 'weed_bag' is not configured in ox_inventory"
The item value in config/drugs.lua references an inventory item that doesn't exist. Either:
- Add the missing item to
ox_inventory/data/items.lua, or - Change the
itemfield indrugs.luato an existing item name
OP-Crime/OP-Gangs turf integration not working
Config.AdditionalScripts.op_Gangs must be true AND the op-gangs resource must be started before suty-drugsell. The integration hooks into op-gangs' turf events at script load.
Still stuck?
Open a ticket on Discord with:
- Your
Config.Frameworkvalue - Whether the issue is in the creator UI, dealing flow, or trap-phone app
- F8 console output (client) or server console errors
