Merge pull request #136 from RandomZFx/patch-1

Patch 1
This commit is contained in:
MrNewb authored and GitHub committed 2025-08-09 12:56:10 -04:00
commit b914f0ffeb
1 file changed
+1 -1
+1 -1
View File
@@ -51,7 +51,7 @@ Shops.CompleteCheckout = function(src, shopName, item, amount, paymentType)
local mathStuff = tonumber(itemData.price) * tonumber(amount) local mathStuff = tonumber(itemData.price) * tonumber(amount)
if balance < mathStuff then return Notify.SendNotify(src, ilocale('Shops.NotEnoughMoney'), "error", 5000) end if balance < mathStuff then return Notify.SendNotify(src, ilocale('Shops.NotEnoughMoney'), "error", 5000) end
if not Framework.RemoveAccountBalance(src, paymentType, mathStuff) then return end if not Framework.RemoveAccountBalance(src, paymentType, mathStuff) then return end
Inventory.AddItem(src, itemData.name, amount) Inventory.AddItem(src, itemData.name, tonumber(amount))
local itemLabel = Inventory.GetItemInfo(itemData.name).label local itemLabel = Inventory.GetItemInfo(itemData.name).label
Notify.SendNotify(src, ilocale('Shops.PurchasedItem')..itemLabel, "success", 5000) Notify.SendNotify(src, ilocale('Shops.PurchasedItem')..itemLabel, "success", 5000)
end end