mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-30 01:38:52 +00:00
Merge pull request #92 from NRTnarathip/patch-3
Fix Error esx_lcustom vector3 - type table
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user