Client Exports

Use these exports to interact with the garage system from other client-side scripts.

General Exports

GetPlayerData

Returns the current player's cached data.

local PlayerData = exports['kartik-garages']:GetPlayerData()

getVehicleDisplayName

Returns the display name of a vehicle based on its hash.

local name = exports['kartik-garages']:getVehicleDisplayName(vehicleHash)

isPlayerPolice

Returns whether the player is currently on duty as police.

local isPolice = exports['kartik-garages']:isPlayerPolice()

Garage UI & Interactions

openGarageByGarageId

Opens the garage menu for a specific garage ID programmatically.

Example:

parkVehicleByGarageId

Parks the player's current vehicle into a specific garage ID. The player must be inside the vehicle.

Example:


Utility Exports

usePlate

Opens the UI to change the vehicle's plate (requires the plate item unless called as an admin).

detectCore

Helper to detect if a specific resource/core is running.

showKeybindsMenu

Shows the keybinds help NUI.

hideKeybindsMenu

Hides the keybinds help NUI.

Last updated