mirror of
https://github.com/ND-Framework/ND_Core.git
synced 2026-08-17 05:56:01 +01:00
fix(client/vehicle): return vehicle entity
This commit is contained in:
@@ -335,9 +335,9 @@ lib.callback.register("ND_Vehicles:getNearbyVehicleById", function(vehId)
|
||||
local vehicles = lib.getNearbyVehicles(coords, 25.0, true)
|
||||
for i=1, #vehicles do
|
||||
local veh = vehicles[i]
|
||||
local state = Entity(veh).state
|
||||
local state = Entity(veh.vehicle).state
|
||||
if state and state.id == vehId then
|
||||
return VehToNet(veh)
|
||||
return VehToNet(veh.vehicle)
|
||||
end
|
||||
end
|
||||
end)
|
||||
|
||||
Reference in New Issue
Block a user