Items in floor

Sin título

If I throw something on the floor then I can’t pick it up

Can you give any more information? Which resource and so on.

I don’t know what the problem is, I think it must be the inventory I’m using
esx_inventory_hud

Then you would want to search for the event that drops the item and spawns the object, let it spawn on a higher z coord or use the native to properly place it on the ground.

which file is that in?

Would be in one of your client scripts if I’m not wrong.

RegisterNUICallback(
“DropItem”,
function(data, cb)
if IsPedSittingInAnyVehicle(playerPed) then
return
end

    if type(data.number) == "number" and math.floor(data.number) == data.number then
        TriggerServerEvent("esx:removeInventoryItem", data.item.type, data.item.name, data.number)
    end

    Wait(250)
    loadPlayerInventory()

    cb("ok")
end

this is the inventori client

Yeah, this isn’t a function thats built into esx_inventoryhud.

Which ESX version are you using, 1.2 or 1.1 (weight or limit)?

1 Like

i am using final v1 =/

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