📦exports
These are the usable exports for our garage system
All exports are client sided.!!
ImpoundVehicle - client s For police, or desired jobs to be able impound the cars
RegisterCommand("impound", function(source, args, rawCommand)
exports.FinalZ_Garage:ImpoundVehicle(GetClosestVehicle(GetEntityCoords(PlayerPedId()), 2.0, 0))
end, false)
--The export has built-in animation.
isVehLocked - Get if the vehicles is locked
RegisterCommand("isLocked", function(source, args, rawCommand)
local locked = exports.FinalZ_Garage:isVehLocked(GetClosestVehicle(GetEntityCoords(PlayerPedId()), 2.0, 0))
if locked then
-- do smthng if vehicles is locked
else
-- return was false, check for the vehicle value in the export
end
end, false)
Last updated