forge/arma/client/addons/store/XEH_postInitClient.sqf
Jacob Schmidt 6dda184d54 Wire store checkout flow across client and server
- Add checkout request/response bridge and workspace re-hydration in store UI
- Implement server-side checkout stores for charging bank/cash and granting locker/VA items
- Normalize catalog/cart payload categories and fix locker VA sync event naming
2026-03-12 21:44:19 -05:00

11 lines
361 B
Plaintext

#include "script_component.hpp"
if (isNil QGVAR(StoreClass)) then { call FUNC(initStoreClass); };
if (isNil QGVAR(StoreUIBridge)) then { call FUNC(initStoreUIBridge); };
[QGVAR(responseCheckout), {
params [["_payload", createHashMap, [createHashMap]]];
GVAR(StoreUIBridge) call ["handleCheckoutResponse", [_payload]];
}] call CFUNC(addEventHandler);