mirror of
https://github.com/jimathy/jim_bridge.git
synced 2026-08-19 06:46:04 +01:00
add fallback to sellMenu if no locale system
This commit is contained in:
@@ -35,7 +35,8 @@ function sellMenu(data)
|
|||||||
isMenuHeader = not hasTable[k].hasItem,
|
isMenuHeader = not hasTable[k].hasItem,
|
||||||
icon = invImg(k),
|
icon = invImg(k),
|
||||||
header = Items[k].label..(hasTable[k].hasItem and "💰 (x"..hasTable[k].count..")" or ""),
|
header = Items[k].label..(hasTable[k].hasItem and "💰 (x"..hasTable[k].count..")" or ""),
|
||||||
txt = Loc[Config.Lan].info["sell_all"]..v.." "..Loc[Config.Lan].info["sell_each"],
|
txt = (Loc and Loc[Config.Lan]) and Loc[Config.Lan].info["sell_all"]..v.." "..Loc[Config.Lan].info["sell_each"]
|
||||||
|
or "Sell ALL at $"..v.." each",
|
||||||
onSelect = function()
|
onSelect = function()
|
||||||
sellAnim({ item = k, price = v, ped = data.ped, onBack = function() sellMenu(data) end })
|
sellAnim({ item = k, price = v, ped = data.ped, onBack = function() sellMenu(data) end })
|
||||||
end,
|
end,
|
||||||
|
|||||||
Reference in New Issue
Block a user