Vehicle
MSK.GetClosestVehicle
local vehicle, distance = MSK.GetClosestVehicle(coords)
if DoesEntityExist(vehicle) and distance <= 2.5 then
-- Do something with this vehicle
end
-- As an Export:
local player, distance = exports.msk_core:GetClosestVehicle(coords)MSK.GetClosestVehicles
local vehicles = MSK.GetClosestVehicles(GetEntityCoords(PlayerPedId()), 25.0)
-- As an Export:
local player, distance = exports.msk_core:GetClosestVehicles(coords, maxDistance)MSK.GetVehicleInDirection
MSK.IsVehicleEmpty
MSK.GetVehicleLabel
Last updated