diff --git a/[esx_addons]/esx_lscustom/client/main.lua b/[esx_addons]/esx_lscustom/client/main.lua index 498a6b3a..237837c6 100644 --- a/[esx_addons]/esx_lscustom/client/main.lua +++ b/[esx_addons]/esx_lscustom/client/main.lua @@ -382,12 +382,13 @@ CreateThread(function() local playerPed = PlayerPedId() if IsPedInAnyVehicle(playerPed, false) then - local coords = GetEntityCoords(PlayerPedId()) + local coords = GetEntityCoords(playerPed) local currentZone, zone, lastZone if (ESX.PlayerData.job and ESX.PlayerData.job.name == 'mechanic') or not Config.IsMechanicJobOnly then for k,v in pairs(Config.Zones) do - if #(coords - v.Pos) < v.Size.x and not lsMenuIsShowed then + local zonePos = vector3(v.Pos.x, v.Pos.y, v.Pos.z) + if #(coords - zonePos) < v.Size.x and not lsMenuIsShowed then isInLSMarker = true ESX.ShowHelpNotification(v.Hint) break