
stasiek_selldrugsv2 Call The Cops By tRolex
Plugin Usage Guide
Enhanced Drug Dealing System for FiveM ESX
🔧 Installation
- Download the script
- Place the folder in your
resources
directory - Add to
server.cfg
:ensure stasiek_selldrugsv2
- Restart your server
⚠️ IMPORTANT SETUP NOTES
// In es_extended/config.lua ensure these are enabled: Config.EnableWantedLevel = true Config.EnableDispatch = true
ESX Error Fix: Add these to es_extended/client/functions.lua
if animations fail:
// Animation functions fix ESX.PlayAnim = function(dict, anim, speed, time, flag) ESX.Streaming.RequestAnimDict(dict, function() TaskPlayAnim(PlayerPedId(), dict, anim, speed, speed, time, flag, 1, false, false, false) end) end ESX.PlayAnimOnPed = function(ped, dict, anim, speed, time, flag) ESX.Streaming.RequestAnimDict(dict, function() TaskPlayAnim(ped, dict, anim, speed, speed, time, flag, 1, false, false, false) end) end ESX.Game.MakeEntityFaceEntity = function(entity1, entity2) local p1 = GetEntityCoords(entity1, true) local p2 = GetEntityCoords(entity2, true) local dx = p2.x - p1.x local dy = p2.y - p1.y local heading = GetHeadingFromVector_2d(dx, dy) SetEntityHeading(entity1, heading) end
🎮 Player Commands
- Start Dealing:
/dealer
- Automatically sells a random drug from your inventory
- NPCs approach you to negotiate
- Key Interaction:
- Press
E
near an NPC to complete the sale
- Press
⚙️ Configuration
Edit config.lua
to customize:
1. Drug Prices & Types
drugs = { ['marijuana'] = 1500, // Weed ['meth'] = 3400, // Meth ['opium_pooch'] = 3100, // Opium ['coke_pooch'] = 3700 // Cocaine }
2. Police Response
requiredCops = 2, // Minimum cops online to sell policeCallChance = 0.3, // 30% chance NPCs call cops wantedLevel = 2 // Stars gained when reported
3. Money Type
account = 'black_money' // Options: 'black_money' or 'money'
🚨 Rejection Outcomes
NPCs may react in 3 ways:
- Accept Deal: You get paid (💰 + black money)
- Reject and Fight: NPC attacks you (👊)
- Call Police: Every 3rd rejection alerts cops (👮)
📝 Pro Tips
✅ Best Locations: Urban areas with NPC traffic
⚠️ Risk: Higher drug values attract more police attention
💡 Balance: Edit drugWeights
in server.lua
to adjust sale probabilities
❓ Support
For issues or customization requests, visit:
informatik.tech/contact
Available Versions
-
Version 1.0.0
Released on August 18, 2025NPCs may react in 3 ways:Download (21.47 KB)
Accept Deal: You get paid (💰 + black money)
Reject and Fight: NPC attacks you (👊)
Call Police: Every 3rd rejection alerts cops (👮)