Client

Exports - Clientside

openGarage

With this export, you can open a custom garage.

Parameters label - string - The Label of the Garage garageId - string - The ID of the Garage parkInCoords - vector3 - The Park In Coords of the Garage parkOutCoords - table <vector4> - The Park Out Coords of the Garage distance - float - The Park In Radius of the Garage warp - boolean - Teleport into the Vehicle type - table - Vehicle Categories

exports.msk_garage:openGarage({
    label = 'Garage Test',
    garageId = 'test',
    parkInCoords = vector3(237.89, -858.35, 29.67),
    parkOutCoords = {
        vector4(237.89, -858.35, 29.67, 249.16),
    },
    distance = 20.0, -- Park In Radius
    warp = false, -- Teleport into vehicle
    type = {'car', 'truck'} -- 'car', 'truck', 'airplane', ...
})

openImpound

With this export, you can open a custom impound.

Parameters label - string - The Label of the Garage parkOutCoords - table <vector4> - The Park Out Coords of the Garage warp - boolean - Teleport into the Vehicle type - table - Vehicle Categories fee - number - The Impound Fee

exports.msk_garage:openImpound({
    label = 'Garage Test',
    parkOutCoords = {
        vector4(237.89, -858.35, 29.67, 249.16),
    },
    warp = false, -- Teleport into vehicle
    type = {'car', 'truck'}, -- 'car', 'truck', 'airplane', ...
    fee = 150 -- Impound Fee
})

GetVehicleGarage

With this Export you can get in which garage the given vehice is in.

Parameters plate - string - Plate of the Vehicle

Returns garage - string - The Garage ID in which the vehicle is in coords - vector3 - The Coords of the Garage

local garage, coords = exports.msk_garage:GetVehicleGarage(plate)

Last updated