mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-29 17:28:53 +00:00
Fix - ESX Shops - Typos
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user