Menan AK47
MENAN AK47DOCS
DiscordStore
Navigation
Menu
Welcome
FAQ
ak47_lib
ak47_target
ak47_ambulancejob
ak47_banking
ak47_business
ak47_carboosting
ak47_cardealer
ak47_clothingshop
ak47_crafting
ak47_crime
ak47_crutch
ak47_deliveryjob
ak47_drugdealerv2
ak47_drugmanagerv3
ak47_drugmissions
ak47_ecommerce
ak47_farming
ak47_fishing
ak47_fraudsystem
ak47_fuelstations
ak47_gangs
ak47_garage
Events
Exports
Client
Server
Commands
ak47_garbagejob
ak47_hookahloungev2
ak47_housing
ak47_hud
ak47_iclothingv3
ak47_idcardv2
ak47_inventory
ak47_jobgarage
ak47_khusbites
ak47_khusland
ak47_leafnlatte
ak47_mafiasupply
ak47_mechanic
ak47_moneywash
ak47_multicharacter
ak47_npcmed
ak47_outfitbag
ak47_playershop
ak47_policejob
ak47_prospecting
ak47_radio
ak47_rentalcar
ak47_safezone
ak47_sitchair
ak47_smokingv2
ak47_supermarket
ak47_switch
ak47_territories
ak47_vehiclekeys
ak47_vipshop
Loaf
DocsMulti FrameworkClient

Client

Client-side exports for ak47_garage.

GetGarages

Returns a list of all registered garages and their configuration settings.

local garages = exports['ak47_garage']:GetGarages()
Parameter Type Required Description
None N/A No Takes no parameters
  • Returns: table - Array of garage objects with settings, fees, and types.

GetCurrentGarage

Returns information about the garage zone the player is currently inside.

local current = exports['ak47_garage']:GetCurrentGarage()
Parameter Type Required Description
None N/A No Takes no parameters
  • Returns: table - Table containing name, garage, and anyGarage.

IsInsideGarage

Checks if the player is currently standing inside any garage polyzone.

local isInside = exports['ak47_garage']:IsInsideGarage()
Parameter Type Required Description
None N/A No Takes no parameters
  • Returns: boolean - true if inside a garage boundary, false otherwise.

GetInsideGarageId

Retrieves the identifier of the garage zone the player is inside.

local gid = exports['ak47_garage']:GetInsideGarageId()
Parameter Type Required Description
None N/A No Takes no parameters
  • Returns: string \| nil - Garage identifier if inside a zone, nil otherwise.

GetGarageData

Retrieves the internal configuration data for a specific garage ID.

local data = exports['ak47_garage']:GetGarageData(gid)
Parameter Type Required Description
gid string Yes Unique garage identifier
  • Returns: table \| nil - Garage object or nil if not found.

OpenGarage

Opens the 3D showroom and NUI garage menu for a garage.

local success = exports['ak47_garage']:OpenGarage(gid)
Parameter Type Required Description
gid string No Optional garage ID. Defaults to current zone.
  • Returns: boolean - true if opened successfully, false otherwise.

CloseGarage

Closes the garage menu UI and destroys preview showroom camera and vehicle.

local closed = exports['ak47_garage']:CloseGarage()
Parameter Type Required Description
None N/A No Takes no parameters
  • Returns: boolean - true if closed, false otherwise.

IsGarageOpenUI

Checks if the garage NUI menu and showroom camera are currently open.

local isOpen = exports['ak47_garage']:IsGarageOpenUI()
Parameter Type Required Description
None N/A No Takes no parameters
  • Returns: boolean - true if UI is open, false otherwise.

SpawnVehicle

Spawns a vehicle from the garage by license plate.

exports['ak47_garage']:SpawnVehicle(plate, targetGid)
Parameter Type Required Description
plate string Yes Vehicle license plate
targetGid string No Optional garage ID. Defaults to current zone.
  • Returns: void

ParkCurrentVehicle

Parks the vehicle the player is currently driving into the garage.

local success = exports['ak47_garage']:ParkCurrentVehicle(gid)
Parameter Type Required Description
gid string No Optional garage ID. Defaults to current zone.
  • Returns: boolean - true if initiated, false otherwise.

StartTabletAnim

Plays the tablet animation and attaches tablet prop to player ped.

exports['ak47_garage']:StartTabletAnim()
Parameter Type Required Description
None N/A No Takes no parameters
  • Returns: void

StopTabletAnim

Stops tablet animation and removes attached tablet prop from player ped.

exports['ak47_garage']:StopTabletAnim()
Parameter Type Required Description
None N/A No Takes no parameters
  • Returns: void

PayRealFee

Deducts real parking fee if parking charges are enabled for garage.

local paid = exports['ak47_garage']:PayRealFee(gid, plate)
Parameter Type Required Description
gid string Yes Garage identifier
plate string Yes Vehicle license plate
  • Returns: boolean - true if paid or free, false if insufficient funds.

TakeVehiclePhoto

Spawns vehicle in photo studio, captures screenshot, and uploads to FiveManage.

exports['ak47_garage']:TakeVehiclePhoto(plate)
Parameter Type Required Description
plate string Yes Vehicle license plate
  • Returns: void

GetPhotoPreset

Returns camera preset configuration for a vehicle model based on dimensions.

local presetName, presetConfig = exports['ak47_garage']:GetPhotoPreset(modelHash)
Parameter Type Required Description
modelHash number | string Yes Vehicle model hash or name
  • Returns: string, table - Preset name and camera config table (CamCoords, CamRotation, Fov).

GetVehicleType

Resolves the garage classification category for a vehicle model.

local vType = exports['ak47_garage']:GetVehicleType(model)
Parameter Type Required Description
model number | string Yes Vehicle model hash or name
  • Returns: string - Vehicle category (automobile, bike, boat, heli, plane, submarine, trailer).

IsVehicleCompatible

Checks if a vehicle model is allowed in a specific garage category.

local isCompatible = exports['ak47_garage']:IsVehicleCompatible(model, garageType)
Parameter Type Required Description
model number | string Yes Vehicle model hash or name
garageType string Yes Target garage type (car, boat, heli, plane)
  • Returns: boolean - true if compatible, false otherwise.

GetVehicleRealStats

Calculates performance metrics, handling physics, and rarity for a vehicle model.

local stats = exports['ak47_garage']:GetVehicleRealStats(modelHash, vehicleEntity)
Parameter Type Required Description
modelHash number | string Yes Vehicle model hash or name
vehicleEntity number No Optional active vehicle entity handle
  • Returns: table - Statistics object (topSpeed, acceleration, handling, braking, driveType, power, weight, rarity).

GetVehicleRarity

Calculates vehicle rarity tier based on performance factors.

local tier = exports['ak47_garage']:GetVehicleRarity(maxSpeed, accel, handling, braking)
Parameter Type Required Description
maxSpeed number Yes Top speed in km/h
accel number Yes Acceleration value
handling number Yes Handling rating (0-100)
braking number Yes Braking rating (0-100)
  • Returns: string - Rarity tier (COMMON, UNCOMMON, RARE, EPIC).
Previous
Server
Next
Server
On this page
GetGaragesGetCurrentGarageIsInsideGarageGetInsideGarageIdGetGarageDataOpenGarageCloseGarageIsGarageOpenUISpawnVehicleParkCurrentVehicleStartTabletAnimStopTabletAnimPayRealFeeTakeVehiclePhotoGetPhotoPresetGetVehicleTypeIsVehicleCompatibleGetVehicleRealStatsGetVehicleRarity