Probleme mit es_extended

1 Beiträge · 3.012 Aufrufe
15.02.2020, 16:44 #1

Hallo,


ich habe ein Problem mit ex_extended und zwar wenn ich jemand ein Item geben möchte kommt folgender Fehler:


SCRIPT ERROR: @es_extended/server/main.lua:469: attempt to call a nil value (field 'canCarryItem&apos  

Hier einmal der 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)


Und hier die Zeile :


if xPlayer.canCarryItem(pickup.name, pickup.count) then


Ich hatte aus Extended das Weight System rausgenommen, ich weis nicht ob es daran liegt..... Vielen Dank im voraus. :)

Melde dich an, um zu antworten.
© 2026 GTA-FIVEM.ORGImpressumDatenschutzNutzungsbedingungenCookiesShimo Forum