Skip to content

Commit

Permalink
chore: (bpt_farmer) 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 5b95af9 commit b10c27a
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions server-data/resources/[bpt_addons]/bpt_farmer/client/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ CreateThread(function()
Wait(0)
local coords = GetEntityCoords(PlayerPedId())
if GetDistanceBetweenCoords(coords, 2233.21, 5081.3, 48.08, true) < 10.0 then
DrawText3D(2233.21, 5081.3, 48.08, _U("press_collect"), 0.4)
DrawText3D(2233.21, 5081.3, 48.08, TranslateCap("press_collect"), 0.4)
if ESX.GetPlayerData().job.name then
if GetDistanceBetweenCoords(coords, 2233.21, 5081.3, 48.08, true) < 5.0 then
if IsControlJustReleased(0, Keys["E"]) then
Expand All @@ -128,7 +128,7 @@ CreateThread(function()
Wait(0)
local coords = GetEntityCoords(PlayerPedId())
if GetDistanceBetweenCoords(coords, 1582.035156, 2167.279053, 79.307007, true) < 10.0 then
DrawText3D(1582.035156, 2167.279053, 79.307007, _U("press_collect"), 0.4)
DrawText3D(1582.035156, 2167.279053, 79.307007, TranslateCap("press_collect"), 0.4)
if ESX.GetPlayerData().job.name then
if GetDistanceBetweenCoords(coords, 1582.035156, 2167.279053, 79.307007, true) < 5.0 then
if IsControlJustReleased(0, Keys["E"]) then
Expand All @@ -148,7 +148,7 @@ CreateThread(function()
Wait(0)
local coords = GetEntityCoords(PlayerPedId())
if GetDistanceBetweenCoords(coords, 2343.850586, 4756.087891, 34.806641, true) < 10.0 then
DrawText3D(2343.850586, 4756.087891, 34.806641, _U("press_collect"), 0.4)
DrawText3D(2343.850586, 4756.087891, 34.806641, TranslateCap("press_collect"), 0.4)
if ESX.GetPlayerData().job.name then
if GetDistanceBetweenCoords(coords, 2343.850586, 4756.087891, 34.806641, true) < 5.0 then
if IsControlJustReleased(0, Keys["E"]) then
Expand All @@ -168,7 +168,7 @@ CreateThread(function()
Wait(0)
local coords = GetEntityCoords(PlayerPedId())
if GetDistanceBetweenCoords(coords, 2607.942871, 4399.490234, 40.973633, true) < 10.0 then
DrawText3D(2607.942871, 4399.490234, 40.973633, _U("press_collect"), 0.4)
DrawText3D(2607.942871, 4399.490234, 40.973633, TranslateCap("press_collect"), 0.4)
if ESX.GetPlayerData().job.name then
if GetDistanceBetweenCoords(coords, 2607.942871, 4399.490234, 40.973633, true) < 5.0 then
if IsControlJustReleased(0, Keys["E"]) then
Expand Down Expand Up @@ -206,7 +206,7 @@ end)
--potato
function collectionpotato()
TriggerServerEvent("farmer:collectionpotato")
exports["esx_notify"]:Notify("info", 3000, _U("collection_progress"))
exports["esx_notify"]:Notify("info", 3000, TranslateCap("collection_progress"))
incollect = true
Wait(6000)
incollect = false
Expand All @@ -215,7 +215,7 @@ end
-- cotton
function collectioncotton()
TriggerServerEvent("farmer:collectioncotton")
exports["esx_notify"]:Notify("info", 3000, _U("collection_progress"))
exports["esx_notify"]:Notify("info", 3000, TranslateCap("collection_progress"))
incollect = true
Wait(6000)
incollect = false
Expand All @@ -224,7 +224,7 @@ end
-- apple
function collectionapple()
TriggerServerEvent("farmer:collectionapple")
exports["esx_notify"]:Notify("info", 3000, _U("collection_progress"))
exports["esx_notify"]:Notify("info", 3000, TranslateCap("collection_progress"))
incollect = true
Wait(6000)
incollect = false
Expand All @@ -233,7 +233,7 @@ end
-- grain
function collectiongrain()
TriggerServerEvent("farmer:collectiongrain")
exports["esx_notify"]:Notify("info", 3000, _U("collection_progress"))
exports["esx_notify"]:Notify("info", 3000, TranslateCap("collection_progress"))
incollect = true
Wait(6000)
incollect = false
Expand Down

0 comments on commit b10c27a

Please sign in to comment.