Don't remove rare items

This commit is contained in:
Jérémie N'gadi
2017-08-22 11:38:51 +02:00
parent 1c6880e626
commit f48bf5da31
+1 -1
View File
@@ -49,7 +49,7 @@ ESX.RegisterServerCallback('esx_ambulancejob:removeItemsAfterRPDeathRemoveMoney'
if Config.RemoveItemsAfterRPDeath then
for i=1, #xPlayer.inventory, 1 do
if xPlayer.inventory[i].count > 0 then
if xPlayer.inventory[i].count > 0 and not xPlayer.inventory[i].rare then
xPlayer.setInventoryItem(xPlayer.inventory[i].name, 0)
end
end