Skip to content

Commit

Permalink
Merge pull request #92 from NRTnarathip/patch-3
Browse files Browse the repository at this point in the history
Fix Error esx_lcustom vector3 - type table
  • Loading branch information
Mycroft-Studios committed Feb 16, 2022
2 parents 96e8574 + f81cdcd commit d85f32b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions [esx_addons]/esx_lscustom/client/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d85f32b

Please sign in to comment.