[Release] [ESX] [Drugs]

Question can you make a Version that required after on press adding a animation to force the player. Because at this current time there is a exploit on esx servers.

It’s pretty easy to do. Many scripts you can follow as an example. Ambulance for example with the revive.

This plugin has a huge bug.

– Key Controls
Citizen.CreateThread(function()
while true do
Citizen.Wait(0)
if CurrentAction ~= nil then
SetTextComponentFormat(‘STRING’)
AddTextComponentString(CurrentActionMsg)
DisplayHelpTextFromStringLabel(0, 0, 1, -1)
if IsControlJustReleased(0, 38) then
TaskStartScenarioInPlace(GetPlayerPed(-1), “world_human_gardener_plant”, 0, 1)
if CurrentAction == ‘coke_harvest’ then
TriggerServerEvent(‘esx_drugs:startHarvestCoke’)
end
if CurrentAction == ‘coke_treatment’ then
TriggerServerEvent(‘esx_drugs:startTransformCoke’)
end
if CurrentAction == ‘coke_resell’ then
TriggerServerEvent(‘esx_drugs:startSellCoke’)
end
if CurrentAction == ‘meth_harvest’ then
TriggerServerEvent(‘esx_drugs:startHarvestMeth’)
end
if CurrentAction == ‘meth_treatment’ then
TriggerServerEvent(‘esx_drugs:startTransformMeth’)
end
if CurrentAction == ‘meth_resell’ then
TriggerServerEvent(‘esx_drugs:startSellMeth’)
end
if CurrentAction == ‘weed_harvest’ then
TriggerServerEvent(‘esx_drugs:startHarvestWeed’)
end
if CurrentAction == ‘weed_treatment’ then
TriggerServerEvent(‘esx_drugs:startTransformWeed’)
end
if CurrentAction == ‘weed_resell’ then
TriggerServerEvent(‘esx_drugs:startSellWeed’)
end
CurrentAction = nil
end
end
end
end)

1 Like

How can i Show the Coords ingame?

Can I change color and ID in config lua to change it? which can I icons can I change with?

Anyone have the esx discord invite?

Please give to me to

yes please send them to me

please give me them and how to use it

Appreciate it, been looking for this <3

Hi, How do I activate the job?

@Sorrora - to all users
Is possible job list on illegal serviçes?

Anyone have a guide how to do this in-game? :stuck_out_tongue:

I saw it in vrp
I wonder if it’s possible in the esx
a job list - but illegal services

help
I can not activate any dugs function

onfig.RequiredCopsCoke = 0
Config.RequiredCopsMeth = 0
Config.RequiredCopsWeed = 0
Config.RequiredCopsOpium = 0

main server

ESX = nil
local CopsConnected = 0
local PlayersHarvestingCoke = {}
local PlayersTransformingCoke = {}
local PlayersSellingCoke = {}
local PlayersHarvestingMeth = {}
local PlayersTransformingMeth = {}
local PlayersSellingMeth = {}
local PlayersHarvestingWeed = {}
local PlayersTransformingWeed = {}
local PlayersSellingWeed = {}
local PlayersHarvestingOpium = {}
local PlayersTransformingOpium = {}
local PlayersSellingOpium = {}

So we need help. I can not seem to sell the weed. Harvest and process went fine. I have literally tp to the exact coordinates but with no luck. I am not set as a cop either. Any help would be greatly appreciated.

Try find another place and change the coords to the new place and try then? :slight_smile:

We did. However we had no luck with that either.

add this under the zone cords, as another config, and change the zone coords to match the map blip coords

Config.Map = {
{name=“Coke Farm”, color=6, scale=0.8, id=403, x=2448.9228515625, y=-1836.8076171875, z=51.953701019287},
{name=“Coke Treatment”, color=6, scale=0.8, id=403, x=-458.13967895508, y=-2278.6174316406, z=7.5158290863037},
{name=“Coke Sales”, color=6, scale=0.8, id=403, x=-1756.1984863281, y=427.31674194336, z=126.68292999268},
{name=“Meth Farm”, color=6, scale=0.8, id=403, x=1525.298828125, y=1710.0217285156, z=109.00956726074},
{name=“Meth Treatment”, color=6, scale=0.8, id=403, x=-1147.4151611328, y=4940.0087890625, z=221.00686645508},
{name=“Meth Sales”, color=6, scale=0.8, id=403, x=-63.592178344727, y=-1224.0709228516, z=27.768648147583},
{name=“Opium Farm”, color=6, scale=0.8, id=403, x=1972.784790039, y=3819.3999023438, z=33.428722381592},
{name=“Opium Treatment”, color=6, scale=0.8, id=403, x=-7.26499023438, y=519.51328125, z=173.575107192994},
{name=“Opium Sales”, color=6, scale=0.8, id=403, x=2331.0881347656, y=2570.2250976562, z=46.681819915772},
{name=“Weed Farm”, color=2, scale=0.8, id=140, x=2217.125, y=5577.5942382813, z=52.961572647095},
{name=“Weed Treatment”, color=2, scale=0.8, id=140, x=29.061386108398, y=3666.0380859375, z=39.77326965332},
{name=“Weed Sales”, color=2, scale=0.8, id=140, x=-54.249694824219, y=-1443.3666992188, z=31.068626403809}
}

took me a while to figure this out on my own, but once I did everything worked, and I feel helpful so there you go