feat(esx_shops): Reasons For account changes

This commit is contained in:
Mycroft
2022-09-10 00:58:33 +01:00
parent ebaad4fa06
commit 265da61e9e
+1 -1
View File
@@ -43,7 +43,7 @@ AddEventHandler('esx_shops:buyItem', function(itemName, amount, zone)
if xPlayer.getMoney() >= price then
-- can the player carry the said amount of x item?
if xPlayer.canCarryItem(itemName, amount) then
xPlayer.removeMoney(price)
xPlayer.removeMoney(price, label .. " Purchase")
xPlayer.addInventoryItem(itemName, amount)
xPlayer.showNotification(_U('bought', amount, label, ESX.Math.GroupDigits(price)))
else