- remove locales module

This commit is contained in:
Mustachedom committed 2026-08-18 00:02:04 -07:00
1 parent d6cffd01bc
commit 07530a8662
25 files changed
+84 -724

No files matched your search

+10 -10
View File
@@ -24,23 +24,23 @@ Shops.FinalizeCheckOut = function(shopName, item, itemLabel, price, amount)
local generatedID = lib.string.random('Aa1A', 8) -- Generate a random ID if not provided
local buildMenu = {
{
title = locale('Shops.PayByCash', tostring(mathStuff)),
description = locale('Shops.AreYouSure', itemLabel),
icon = locale('Shops.CashIcon'),
title = lib.locale('Shops.PayByCash', tostring(mathStuff)),
description = lib.locale('Shops.AreYouSure', itemLabel),
icon = lib.locale('Shops.CashIcon'),
onSelect = function(_, __, ___)
TriggerServerEvent('community_bridge:Server:completeCheckout', shopName, item, amount, "money")
end
},
{
title = locale('Shops.PayByCard', tostring(mathStuff)),
description = locale('Shops.AreYouSure', itemLabel),
icon = locale('Shops.CardIcon'),
title = lib.locale('Shops.PayByCard', tostring(mathStuff)),
description = lib.locale('Shops.AreYouSure', itemLabel),
icon = lib.locale('Shops.CardIcon'),
onSelect = function(_, __, ___)
TriggerServerEvent('community_bridge:Server:completeCheckout', shopName, item, amount, "bank")
end
}
}
Menu.Open({ id = generatedID, title = locale("Shops.Input"), options = buildMenu }, false)
Menu.Open({ id = generatedID, title = lib.locale("Shops.Input"), options = buildMenu }, false)
end
---This is an internal functions that is used to open the amount select menu. Please do not use this function directly.
@@ -57,7 +57,7 @@ Shops.AmountSelect = function(shopName, item, itemLabel, price)
table.insert(numberOptions, {label = tostring(i), value = i})
end
local _input = Input.Open(shopName, {
{type = 'select', label = locale("Shops.PurchaseAmount"), options = numberOptions},
{type = 'select', label = lib.locale("Shops.PurchaseAmount"), options = numberOptions},
})
if _input and _input[1] then
@@ -78,8 +78,8 @@ Shops.OpenShop = function(shopName, shopData)
local getItemName = Inventory.GetItemInfo(v.name).label
table.insert(buildMenu, {
title = getItemName,
description = locale('Shops.CurrencySymbol', tostring(v.price)),
icon = locale('Shops.ShopIcon'),
description = lib.locale('Shops.CurrencySymbol', tostring(v.price)),
icon = lib.locale('Shops.ShopIcon'),
onSelect = function(selected, secondary, args)
Shops.AmountSelect(shopName, v.name, getItemName, v.price)
end