Agency Docs
Standalone

Agency-Garage Exports & API

The garage system for FiveM in the Agency design.

v1.3.0Paid5 Pages

01Client Exports

ExportDescription
OpenGarage(garageId: string)Opens the garage menu for that garage id. Returns false if the id is unknown.
RegisterGarage(garageId: string, data: table)Adds a garage at runtime on this client, same fields as Config.Garages. Without access no marker or prompt is drawn. Register it on the server as well.
IsBusy()true while the garage menu or the vehicle preview is on screen, so other scripts can hide their prompts.

02Server Exports

ExportDescription
ImpoundVehicle(plate: string, price?: number, depot?: string)Moves a vehicle to the impound with a release fee. Default depot depotlsimpound, default fee Config.Impound.fee. Returns true, or false if the plate is unknown.
IsVehicleStored(plate: string)true if the vehicle is parked in a garage.
GetVehicleState(plate: string)0 = out, 1 = stored, 2 = impounded, nil if the plate is unknown.
GetVehicleGarage(plate: string)Returns the id of the garage the vehicle belongs to, or nil.
ForceStore(plate: string, garageId?: string)Parks a vehicle in a garage (default legion) and removes it from the world. Returns true or false.
GetPlayerVehicles(identifier: string)Returns every vehicle of a player from the database.
RegisterGarage(garageId: string, data: table)Adds a garage at runtime on the server. Agency-Housing uses it for house garages.

Still stuck after this page? Our support team takes it from here.