Hallo,
ich habe ein Problem mit ex_extended und zwar wenn ich jemand ein Item geben möchte kommt folgender Fehler:
Code
SCRIPT ERROR: @es_extended/server/main.lua:469: attempt to call a nil value (field 'canCarryItem&apos
Hier einmal der Code:
Code
if pickup.type == 'item_standart' then
if xPlayer.canCarryItem(pickup.name, pickup.count) then
xPlayer.addInventoryItem(pickup.name, pickup.count)
success = true
else
xPlayer.showNotification(_U('threw_cannot_pickup'))
end
elseif pickup.type == 'item_money' then
ESX.Pickups[id] = nil
TriggerClientEvent('esx:removePickup', -1, id)
xPlayer.addMoney(pickup.count)
elseif pickup.type == 'item_account' then
ESX.Pickups[id] = nil
TriggerClientEvent('esx:removePickup', -1, id)
xPlayer.addAccountMoney(pickup.name, pickup.count)
end
end)
Alles anzeigen
Und hier die Zeile :
Ich hatte aus Extended das Weight System rausgenommen, ich weis nicht ob es daran liegt..... Vielen Dank im voraus.