Error : ESX_DRUGS WHEN PICKUP DRUGS

I have a error with esx_drugs please help me !


SCRIPT ERROR: @esx_drugs/server/main.lua:67: attempt to call a nil value (field 'canCarryItem')
> TriggerServerCallback (@es_extended/server/functions.lua:33)
> handler (@es_extended/server/common.lua:88)


Code:

ESX.RegisterServerCallback('esx_drugs:canPickUp', function(source, cb, item)
	local xPlayer = ESX.GetPlayerFromId(source)
	cb(xPlayer.canCarryItem(item, 1))
end)

Having the same issue, looking for a fix too

The problem is the weight system I would use an older version of es_extended

And an older version of esx_drugs

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.