Skip to content

Commit

Permalink
fix(server/shops): use metadata label over item label (#1606)
Browse files Browse the repository at this point in the history
  • Loading branch information
FjamZoo committed Jan 23, 2024
1 parent 038b9fb commit 5203545
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/shops/server.lua
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ lib.callback.register('ox_inventory:buyItem', function(source, data)

if server.syncInventory then server.syncInventory(playerInv) end

local message = locale('purchased_for', count, fromItem.label, (currency == 'money' and locale('$') or math.groupdigits(price)), (currency == 'money' and math.groupdigits(price) or ' '..Items(currency).label))
local message = locale('purchased_for', count, metadata?.label or fromItem.label, (currency == 'money' and locale('$') or math.groupdigits(price)), (currency == 'money' and math.groupdigits(price) or ' '..Items(currency).label))

if server.loglevel > 0 then
if server.loglevel > 1 or fromData.price >= 500 then
Expand Down

0 comments on commit 5203545

Please sign in to comment.