[Release] [ESX] ESX_DRUGS (UPDATE version)

And mine database is with limit not weight

than update ur es_extended to v1final cause limit is outdated

i am having a problem is not picking it up any one of the drugs i did add it in the db

can i move these locations to the city?

1 Like

you can move it any where you want just make sure that the heading is at the right high some times the props heading is in the ground

1 Like

im having trouble importing both sql to my database

i need help

#1044 - Access denied for user 'zap725602-1'@'%' to database 'es_extended'

#1044 - Access denied for user 'zap725602-1'@'%' to database 'essentialmode'

4

Me sale este error a la hora de ponerla en la sql

I have a SQL error :
Error de SQL (1136): Column count doesn’t match value count at row 1

does this work with v1Final?

SCRIPT ERROR: @esx_drugs/server/main.lua:56: attempt to call a nil value (field ‘canCarryItem’)
I dont know what i can do

I cant harvest only process

Is this what is the reason


This is server/chemicals.lua

local playersProcessingChemicalsToHydrochloricAcid = {}

RegisterServerEvent(‘esx_illegal:pickedUpChemicals’)

AddEventHandler(‘esx_illegal:pickedUpChemicals’, function()

local xPlayer = ESX.GetPlayerFromId(source)

local xItem = xPlayer.getInventoryItem('chemicals')

if xItem.limit ~= -1 and (xItem.count + 1) > xItem.limit then

    xPlayer.showNotification(_U('Chemicals_inventoryfull'))

else

    xPlayer.addInventoryItem(xItem.name, 1)

end

end)

RegisterServerEvent(‘esx_illegal:ChemicalsConvertionMenu’)

AddEventHandler(‘esx_illegal:ChemicalsConvertionMenu’, function(itemName, amount)

local xPlayer = ESX.GetPlayerFromId(source)

local xItem = xPlayer.getInventoryItem(itemName)

local xChemicals = xPlayer.getInventoryItem('chemicals')

if xChemicals.count < amount then

    TriggerClientEvent('esx:showNotification', source, _U('Chemicals_notenough', xItem.label))

    return

end



Citizen.Wait(5000)

xPlayer.addInventoryItem(xItem.name, amount)

xPlayer.removeInventoryItem('chemicals', amount)

TriggerClientEvent('esx:showNotification', source, _U('Chemicals_made', xItem.label))

end)

When i use
ChemicalsConvertionMenu
This error will appear in the background
what is the problem?

You found the solution?

1 Like

You gotta change the xitem.limit to xItem.weight

so first go to esx_drugs/server/main.lua, go to line 58 and change xItem.Limit to xItem.Weight

then go to all of the lua files for drugs (coke, weed, heroin etc) and change xItem.Limit to xItem.Weight

BUT it seems once you do that, it breaks how many you can pick up, I have my max weight to 80 and I can only pick up 3 (The weight of weed is set to 3)

1 Like

This is b*llshit, I may have followed all the advice in these posts here but it doesn’t work for me.

try to look into this and make sure u have added/changed the parts u needed

i have the same problem, how can i fix that?

When I go to the blips to process cocaine etc theres nothing there? or theres a building there but no doors that I can enter?