Fix GetClosestObject and GetClosestVehicle bugs

This commit is contained in:
Jérémie N'gadi
2017-08-08 19:43:48 +02:00
parent b2a8648326
commit e065a26e46
@@ -381,7 +381,7 @@ ESX.Game.GetClosestObject = function(filter, coords)
local objects = ESX.Game.GetObjects()
local closestDistance = -1
local closestPlayer = -1
local closestObject = -1
local filter = filter
local coords = coords
@@ -527,7 +527,7 @@ ESX.Game.GetClosestVehicle = function(coords)
local vehicles = ESX.Game.GetVehicles()
local closestDistance = -1
local closestPlayer = -1
local closestVehicle = -1
local coords = coords
if coords == nil then