Merge pull request #92 from NRTnarathip/patch-3

Fix Error esx_lcustom vector3 - type table
This commit is contained in:
Mycroft
2022-02-16 13:01:49 +00:00
committed by GitHub
+3 -2
View File
@@ -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