Skip to content

Commit

Permalink
chore: (bpt_lumberjack) replace _U with TranslateCap
Browse files Browse the repository at this point in the history
  • Loading branch information
bitpredator committed Mar 26, 2024
1 parent 490bb2c commit 79bf860
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ CreateThread(function()

if treewood and IsPedOnFoot(player) then
if not Collection then
ESX.ShowHelpNotification(_U("wood_pickupprompt"))
ESX.ShowHelpNotification(TranslateCap("wood_pickupprompt"))
end

if IsControlJustReleased(0, Keys["E"]) and not Collection then
Expand All @@ -139,10 +139,10 @@ CreateThread(function()
Wait(200)
DeleteObject(treewood)
RemoveWeaponFromPed(player, GetHashKey("WEAPON_HATCHET"), true, true)
SetCurrentPedWeapon(player, GetHashKey("WEAPON_UNARMED"), false)
SetCurrentPedWeapon(player, GetHashKey("WEAPONTranslateCapNARMED"), false)
TriggerServerEvent("bpt_woodcutter:pickedUpWood")
else
ESX.ShowNotification(_U("wood_inventoryfull"))
ESX.ShowNotification(TranslateCap("wood_inventoryfull"))
end
Collection = false
end, "wood")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ Config = {}
Config.Locale = "en"

Config.CircleZones = {
WoodField = { coords = vector3(2409.51, 1475.23, 40.71), name = _U("blip_woodfield"), color = 69, sprite = 657 },
WoodField = { coords = vector3(2409.51, 1475.23, 40.71), name = TranslateCap("blip_woodfield"), color = 69, sprite = 657 },
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ AddEventHandler("bpt_woodcutter:pickedUpWood", function()
local xItem = xPlayer.getInventoryItem("wood")

if xItem.weight ~= -1 and (xItem.count + 1) > xItem.weight then
TriggerClientEvent("esx:showNotification", _U("wood_inventoryfull"))
TriggerClientEvent("esx:showNotification", TranslateCap("wood_inventoryfull"))
else
xPlayer.addInventoryItem(xItem.name, 3)
end
Expand Down

0 comments on commit 79bf860

Please sign in to comment.