Skip to content

Commit

Permalink
FixBug: taxijob vector3 - table coords
Browse files Browse the repository at this point in the history
from vector3 - table coords
to vector3 - vector3
  • Loading branch information
NRTnarathip authored Feb 18, 2022
1 parent 18eada5 commit 516e9d8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion [esx_addons]/esx_taxijob/client/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,8 @@ CreateThread(function()
local isInMarker, letSleep, currentZone = false, true

for k,v in pairs(Config.Zones) do
local distance = #(coords - v.Pos)
local zonePos = vector3(v.Pos.x, v.Pos.y, v.Pos.z)
local distance = #(coords - zonePos)

if v.Type ~= -1 and distance < Config.DrawDistance then
letSleep = false
Expand Down

0 comments on commit 516e9d8

Please sign in to comment.