Fix - ESX Shops - Typos

This commit is contained in:
Mycroft
2022-03-06 12:15:09 +00:00
parent d1590b5a39
commit f73abd3d87
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -88,7 +88,7 @@ CreateThread(function()
local Sleep = 1500
if currentAction then
sleep = 0
Sleep = 0
ESX.ShowHelpNotification(currentActionMsg)
if IsControlJustReleased(0, 38) and currentAction == 'shop_menu' then
@@ -98,14 +98,14 @@ CreateThread(function()
end
local playerCoords = GetEntityCoords(PlayerPedId())
local isInMarker, letSleep, currentZone = false, false
local isInMarker, currentZone = false
for k,v in pairs(Config.Zones) do
for i = 1, #v.Pos, 1 do
local distance = #(playerCoords - v.Pos[i])
if distance < Config.DrawDistance then
sleep = 0
Sleep = 0
if v.ShowMarker then
DrawMarker(Config.MarkerType, v.Pos[i], 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, Config.MarkerSize.x, Config.MarkerSize.y, Config.MarkerSize.z, Config.MarkerColor.r, Config.MarkerColor.g, Config.MarkerColor.b, 100, false, true, 2, false, nil, nil, false)
end
+1 -1
View File
@@ -45,7 +45,7 @@ AddEventHandler('esx_shops:buyItem', function(itemName, amount, zone)
if xPlayer.canCarryItem(itemName, amount) then
xPlayer.removeMoney(price)
xPlayer.addInventoryItem(itemName, amount)
xPlayer.showNotification(_U('bought', amount, itemLabel, ESX.Math.GroupDigits(price)))
xPlayer.showNotification(_U('bought', amount, label, ESX.Math.GroupDigits(price)))
else
xPlayer.showNotification(_U('player_cannot_hold'))
end