Closed rxbindotmp3 closed 4 years ago
Hi Could you clarify that a little, I don't understand the question.
@rxbindotmp3 means like the old ESX_Drugs where you just go to a location and hit a button to start harvesting or processing and have it keep going until you are done so someone doesn't have to walk from plant to plant, or keep hitting E to process each time.
yea
because there is no drug plugin working on my server not esx_drugs (any realeses) and not esx_illegal_drugs because the same problem happens every time when i try to collect. I can show you if you wan't to and or can help me :) It would be so appreciated.
if you want to show me, that is fine. I can either join your server, or you can take a video of it.
I'll send some pictures wait about 5 mins. Thank you so much bro!
Here, it's so sad because it works to pack & sell but not to collect. Any of them cocaine, weed, opium, meth :(
The script i use: https://github.com/ESX-Org/esx_drugs/releases V1.0.2
That has nothing to do with this script... that is the original esx_drugs script, perhaps you should contact them on their issues board instead of here.
I did now, thanks anyway 👍
what is line 53 anyway? im thinking i know how to do a quick fix considering they don't use limit anymore
Shure ill send it
local function HarvestCoke(source)
if CopsConnected < Config.RequiredCopsCoke then
TriggerClientEvent('esx:showNotification', source, _U('act_imp_police', CopsConnected, Config.RequiredCopsCoke))
return
end
SetTimeout(5000, function()
if PlayersHarvestingCoke[source] == true then
local xPlayer = ESX.GetPlayerFromId(source)
local coke = xPlayer.getInventoryItem('coke')
if coke.limit ~= -1 and coke.count >= coke.limit then
TriggerClientEvent('esx:showNotification', source, _U('inv_full_coke'))
else
xPlayer.addInventoryItem('coke', 1)
HarvestCoke(source)
end
end
end)
end
That's where the error happens.
replace line 53 with
if coke.limit == -1 and coke.count >= coke.limit then
ok tnx ill try
OH MY FUCKING GOD DUDE FUCKING THANK YOU FOR FUCK SAKE
You literally just saved my fucking server!
Do you wan't loaf_housing i bought it?
They actually don't use "limit" anymore, so that version is old and not widely used anymore. es_extended has been updated and there are a lot of scripts you don't need anymore, so you should really think about updating a lot of things.
No idea what loaf_housing is, but i can take a look at it and see if it's something I could use.
Damn, yeah i'll update sum. For example when my police search people's id the date says nil is that a quick fix?
If you wanna add me on discord, we can talk there so this doesn't keep getting comments on it. Demo#1180
shure thanks bruv!
@Demo4889 Thanks for the help in responding to the issues! @rxbindotmp3 Hope this works out for you.
Hi man awsome script! Just wondering real quick, is there a way to not pick-up the drugs? Like can i some how enable it to be a circle or could you link me that script :)