Fix Error: esx_dmvschool arithmetic operator

change vector3 - var type table
to vector3 - vector3
and Config.DrawDistance it never using
just add implement the "config DrawDistance"
This commit is contained in:
NRTnarathip
2022-02-18 20:34:16 +07:00
committed by GitHub
parent 084dc23e50
commit 6601d80c4f
+2 -2
View File
@@ -338,9 +338,9 @@ CreateThread(function()
end
local Pos = vector3(Config.CheckPoints[nextCheckPoint].Pos.x,Config.CheckPoints[nextCheckPoint].Pos.y,Config.CheckPoints[nextCheckPoint].Pos.z)
local distance = #(coords - Config.CheckPoints[nextCheckPoint].Pos)
local distance = #(coords - Pos)
if distance <= 100.0 then
if distance <= Config.DrawDistance then
DrawMarker(1, Config.CheckPoints[nextCheckPoint].Pos.x, Config.CheckPoints[nextCheckPoint].Pos.y, Config.CheckPoints[nextCheckPoint].Pos.z, 0.0, 0.0, 0.0, 0, 0.0, 0.0, 1.5, 1.5, 1.5, 102, 204, 102, 100, false, true, 2, false, false, false, false)
end