PLayer Loot Drop

Hi, i want to make a script When player Dead, Her Loot Drop, any one can help me?

If you find anything let me know man im looking for the same thing. Also if I find anything ill fill you in

ok, so i think we should work on this code:
for i=1, #inventory.items, 1 do

        if xPlayer.inventory[i].count > 0 then

            local item = xPlayer.inventory[i]

            TriggerServerEvent("esx:removeInventoryItem", item.name, item.count)

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