Skip to content

Commit

Permalink
Move item not exist text to locale (#329)
Browse files Browse the repository at this point in the history
* Locale fix

Fixed the replace of locale instead of english text.

* Update en.lua

* Bump

---------

Co-authored-by: zwkf <[email protected]>
  • Loading branch information
woerki and S33G authored Feb 22, 2023
1 parent f5fa466 commit c898d06
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion fxmanifest.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ fx_version 'cerulean'
game 'gta5'

description 'QB-Inventory'
version '1.2.1'
version '1.2.2'

shared_scripts {
'@qb-core/shared/locale.lua',
Expand Down
2 changes: 1 addition & 1 deletion locales/en.lua
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ local Translations = {
["nonb"] = "No one nearby!",
["noaccess"] = "Not Accessible",
["nosell"] = "You can\'t sell this item..",
["itemexist"] = "Item doesn\'t exist??",
["itemexist"] = "Item doesn\'t exist",
["notencash"] = "You don\'t have enough cash..",
["noitem"] = "You don\'t have the right items..",
["gsitem"] = "You can\'t give yourself an item?",
Expand Down
2 changes: 1 addition & 1 deletion server/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1905,7 +1905,7 @@ RegisterNetEvent('inventory:server:SetInventoryData', function(fromInventory, to
AddItem(playerId, itemInfo["name"], fromAmount, toSlot, fromItemData.info)
end
else
QBCore.Functions.Notify(src, "Item doesn't exist", "error")
QBCore.Functions.Notify(src, Lang:t("notify.itemexist"), "error")
end
elseif QBCore.Shared.SplitStr(fromInventory, "-")[1] == "trunk" then
local plate = QBCore.Shared.SplitStr(fromInventory, "-")[2]
Expand Down

0 comments on commit c898d06

Please sign in to comment.