Client Addons

Client Garage Usage Guide

The client garage addon provides player vehicle storage UI, vehicle store/retrieve actions, selected nearby vehicle service requests, vehicle context building, and the virtual garage view.

Client Garage Usage Guide

The client garage addon provides player vehicle storage UI, vehicle store/retrieve actions, selected nearby vehicle service requests, vehicle context building, and the virtual garage view.

Open Garage UI

call forge_client_garage_fnc_openUI;

The garage UI opens RscGarage, loads ui/_site/index.html, and routes browser events through forge_client_garage_fnc_handleUIEvents.

Open Virtual Garage

call forge_client_garage_fnc_openVG;

The virtual garage uses mission-configured FORGE_CfgGarages locations to set the spawn/preview position, opens the BIS garage interface, and restricts the available vehicle lists from the virtual garage repository.

Client Services

ServicePurpose
GarageRepositoryPlayer garage view state.
VGRepositoryVirtual garage unlock view state.
GarageHelperServiceVehicle names, hit points, and payload helpers.
GarageContextServiceNearby/current vehicle context.
GaragePayloadServiceBrowser hydrate payload construction.
GarageActionServiceStore/retrieve request handling and selected nearby vehicle refuel/repair request forwarding.
GarageUIBridgeBrowser ready, hydrate, and sync delivery.

Browser Events

EventClient behavior
garage::readyMark browser ready and send garage::hydrate.
garage::refreshSend current garage payload as garage::sync.
garage::vehicle::retrieve::requestForward retrieve request through the action service.
garage::vehicle::store::requestForward store request through the action service.
garage::vehicle::refuel::requestForward selected nearby vehicle refuel request to the server economy service.
garage::vehicle::repair::requestForward selected nearby vehicle repair request to the server economy service.
garage::closeDispose bridge screen state and close the display.

Browser Response Events

EventPurpose
garage::hydrateInitial vehicle and session payload.
garage::syncRefreshed vehicle payload.
garage::service::successBrowser notice for accepted refuel/repair requests.
garage::service::failureBrowser notice for rejected refuel/repair requests.

Server action responses are handled by the action service and notification flow.

Vehicle Service

The selected vehicle detail panel includes refuel and repair actions for nearby world vehicles. Stored records must be retrieved first because server economy services operate on live vehicle objects, not stored garage records.

Refuel requests use the server economy RefuelService event. Repair requests use the server economy RepairService event. Both services are billed by the server economy addon through organization funds.

Mission Setup

Garage interactions are normally surfaced through the actor menu when nearby objects have garage variables such as:

_object setVariable ["isGarage", true, true];
_object setVariable ["garageType", "cars", true];

Virtual garage access also requires configured garage locations in mission config so the preview/spawn position can be resolved.

Authoritative State

The client gathers vehicle context and sends store/retrieve requests. Stored vehicle state, validation, spawning, removal, and persistence are owned by the server garage addon and extension.

Copyright © 2026