[Release] [ESX] [Drugs]

Hello I’m trying to make it so only the weed blip shows on the map but I cant figure out how if someone could tell me how that would be great. Thanks

Someone can show me where is cocaine leaves located ingame?

Can I get some help here, I can farm all the drugs, but I cant manufacture any of them. I have way more in my inventory than I need yet I still cant process any drug.

Maye this has something to do with it. > when I farm, I can farm for infinite amount of time, it never tells me my inventory is full. Idk if that’s the way its supposed to be or if its supposed to cut me off.

Cannot press E on circles

can you send the map with the locations please ?

I’ve got the same problem as @Samuel-etto. only i don’t get a message about limit at all. I have in database limit of 50 and i’ve set it in the file as 50 (like this: ~= 50). But i dont get a limit. i can gather as much as i want.

What am i doing wrong?

I fixed my problem by setting the limit in the SQL database and leaving the files at ~=-1.

Is IT possibile to turniej on animation when I start collet drugs? Canon anyone help?

Hey! Im new in this forum and developing in fivem! I tried to collect and test esx_drugs script but it gives me this error
Error running system event handling function for resource esx_drugs: citizen:/scripting/lua/scheduler.lua:41: Failed to execute thread: server/esx_drugs_sv.lua:622: attempt to index a nil value
stack traceback:
server/esx_drugs_sv.lua:622: in upvalue ‘handler’
citizen:/scripting/lua/scheduler.lua:175: in function <citizen:/scripting/lua/scheduler.lua:174>
stack traceback:
[C]: in function ‘error’
citizen:/scripting/lua/scheduler.lua:41: in field ‘CreateThreadNow’
citizen:/scripting/lua/scheduler.lua:174: in function <citizen:/scripting/lua/scheduler.lua:138

I dont know how i can fix this, can you help?

please sent me

So as most of us know, this is method of gathering drugs is very abusable, does anyone know how to make the player stand still while he is gathering to prevent abuse?

I would like to make it so the user has to pay x amount of money as they gather, would it be possible to do this?

@Blaise123 maybe when people come to weed farm make it like in shop, they need to buy x amount of weed for x amount of money

1 Like

When i change my drug location i cant get them to work

it’s john abruzzi*

Hi everyone. I’m trying to add an extra drug to my server, something similar to moonshine. I added extra code lines in server and client lua. I chose a specific place for my drug and added it into config but everytime i import my edited version of this script to my server I can’t collect any drug(weed, meth etc.) including my new mushroom. The weird thing is that I can still see the in game marker and script is starting without any errors. Have anyone got solution for this kind of problem? If it will be necessary I can send you my code on pv.
Thanks

Anyone know how to make the drugs usable like alcohol?

Is there any way that i can put for every 1 item they harvest transform or sell they have to press E. So for example to harvest 10 weed the player would have to press E 10 times

I have added an animation to mine. You have to add that in the main.lua file for every step.

				TriggerServerEvent('esx_drugs:startHarvestCoke')
				TaskStartScenarioInPlace(playerPed, "WORLD_HUMAN_DRUG_DEALER_HARD", 0, 1)
				TriggerEvent("pNotify:SendNotification", {text = "Collecting coke", type = "success", timeout = 120000, layout = "centerLeft"})
				Citizen.Wait(5000)
				ClearPedTasksImmediately(playerPed)
2 Likes

esx_drugeffects, or, you can add then to the file, copy a the weed effects protion and change it to the other drugs.

2 Likes