- Implemented requestRefuel and requestRepair functions in bridge.js to handle vehicle service requests. - Updated AppShell.js to include buttons for refueling and repairing nearby vehicles, with appropriate state management. - Added requestRefuelSelected and requestRepairSelected actions in events.js to validate and process service requests. - Enhanced economy README and usage guides to document new refuel and repair service functionalities. - Introduced server-side handling for refuel requests in FEconomyStore, ensuring organization billing and fuel management.
Forge Client Garage
Overview
The garage addon provides player vehicle storage UI, vehicle store/retrieve actions, selected nearby vehicle service requests, and virtual garage state on the client.
Dependencies
forge_client_commonforge_client_main- server garage events from
forge_server_garage - notifications for action feedback
Main Components
fnc_initRepository.sqfmanages player garage view state.fnc_initVGRepository.sqfmanages virtual garage view state.fnc_initHelperService.sqfresolves vehicle names, hit points, and payload details.fnc_initContextService.sqfgathers nearby/current vehicle context.fnc_initPayloadService.sqfbuilds browser hydrate payloads.fnc_initActionService.sqfsends store/retrieve requests, forwards selected nearby vehicle refuel/repair service requests, and handles action responses.fnc_initUIBridge.sqfpushes hydrate/sync events to the browser.fnc_openUI.sqfopensRscGarage.fnc_openVG.sqfopens the Arma garage-style virtual garage view.
Browser Events
garage::readygarage::refreshgarage::vehicle::retrieve::requestgarage::vehicle::store::requestgarage::vehicle::refuel::requestgarage::vehicle::repair::requestgarage::close
Runtime Notes
The client builds vehicle context and sends requests. The server garage addon and extension own stored vehicle state.
Refuel and repair buttons are available from the selected vehicle detail panel for nearby world vehicles. Stored records must be retrieved before they can be serviced because fuel and repair operate on live vehicle objects. Service billing is handled by the server economy addon and charges organization funds.