MSK Scripts
TebexGithubDiscordMusiker15
  • MSK Scripts
    • Welcome
  • Common Issues
    • Keymaster
  • Miscellaneous
    • Change Notifications
  • Scripts
    • MSK Core
      • Installation
      • Functions
        • Client
          • Ace Permission
          • Commands
          • Coords
          • Player
          • Points
          • Request
          • Scaleform
          • UI
            • Input
            • Numpad
            • Progressbar
            • TextUI
          • Vehicle
        • Shared
          • String
          • Math
          • Table
          • Timeout
          • Vector
        • Server
          • Ace Permission
          • Ban System
          • Commands
          • Player
          • Scaleform
          • UI
            • Input
            • Numpad
            • Progressbar
            • TextUI
    • MSK Banking
      • Installation
        • Paycheck Transaction
      • Config
      • Exports
        • Client
        • Server
      • Events
        • Client
        • Server
      • Server Callbacks
    • MSK EngineToggle
      • Guides
      • Exports
        • Client
      • Event Handler
        • Client
        • Server
    • MSK Fuel
      • Config
      • Exports
        • Client
    • MSK Garage
      • Config
      • Exports
        • Client
    • MSK Handcuffs
      • Guides
        • General Edits for Jobs
        • Jaksam Job Creator
        • Multichar
        • ox_inventory
      • Config
      • Admin Commands
      • Exports
        • Client
        • Server
      • Events
        • Client
        • Server
      • Event Handlers
    • MSK Radio
      • Config
      • Exports
        • Client
        • Server
      • Events
        • Server
    • MSK Simcard
      • Installation
        • Config.Database
      • Config
    • MSK VehicleKeys
      • Guides
        • Installation
        • Integrations
      • Config
      • Admin Commands
      • Exports
        • Client
        • Server
    • MSK Whitelist
      • Config
      • Exports
        • Client
        • Server
    • MSK Weaponammo
Powered by GitBook
On this page
  • openGarage
  • openImpound
  • GetVehicleGarage
  1. Scripts
  2. MSK Garage
  3. Exports

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 7 months ago