Skip to content

Commit

Permalink
Merge pull request #5 from yiruzu/feat-custom-currency-symbol
Browse files Browse the repository at this point in the history
feat(ui/config): add customizable currency symbol
  • Loading branch information
yiruzu authored Dec 15, 2024
2 parents 95a0dae + d612797 commit 0066989
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion client/client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ RegisterNuiCallback("shop:fetchData", function(data, cb)
cb(success)
end,
initShopData = function()
cb({ locales = Locales.UI, imagePath = Config.ImagePath })
cb({ locales = Locales.UI, imagePath = Config.ImagePath, currencySymbol = Config.CurrencySymbol })
end,
payCart = function()
DebugPrint("[NUI:payCart] Payment Type:", data.type, "Cart Array:", json.encode(data.cart))
Expand Down
1 change: 1 addition & 0 deletions shared/sh_config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ return {
WeaponAsItem = true, -- Treat weapons as inventory items (only supported inventorys)
OxInventory = true, -- Uses ox_inventory exports if true
ImagePath = "item_images/", -- Use "nui://{YOUR_RESOURCE}/{IMAGE_DIRECTORY}" to use images from another resource (e.g., "nui://ox_inventory/web/images/" for ox_inventory)
CurrencySymbol = "$",

--[[ INTERACTION CONFIGURATION ]]

Expand Down
Loading

0 comments on commit 0066989

Please sign in to comment.