Skip to content

Commit efaf3c0

Browse files
committed
Update vehicle.lua
1 parent 295ed39 commit efaf3c0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

server/functions/vehicle.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ MSK.GetClosestVehicles = function(coords, distance, vehicles)
88
end
99
exports('GetClosestVehicles', MSK.GetClosestVehicles)
1010

11-
MSK.GetVehicleWithPlate = function(plate, coords, distance)
12-
local vehicles = GetClosestEntities(false, coords, distance)
11+
MSK.GetClosestVehicleWithPlate = function(plate, coords, distance, vehicles)
12+
local vehicles = GetClosestEntities(false, coords, distance, vehicles)
1313
plate = MSK.String.Trim(plate)
1414

1515
for i=1, #vehicles do
@@ -21,7 +21,7 @@ MSK.GetVehicleWithPlate = function(plate, coords, distance)
2121
end
2222
return false
2323
end
24-
exports('GetVehicleWithPlate', MSK.GetVehicleWithPlate)
24+
exports('GetClosestVehicleWithPlate', MSK.GetClosestVehicleWithPlate)
2525

2626
MSK.GetPedVehicleSeat = function(ped, vehicle)
2727
if not ped then return end

0 commit comments

Comments
 (0)