mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-29 09:18:53 +00:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user