- add EventBus-backed notification and sync requests with direct RPC fallback - centralize org notification/sync dispatch and reuse notification helpers - update economy, store, garage, locker, bank, and CAD flows to emit events
Forge Server Locker
Overview
The locker addon is the server-side bridge for player item storage and owner-scoped arsenal unlock storage.
Locker hot state is owned by the extension. SQF handles client events, payload validation, synchronization, and save calls.
Dependencies
forge_server_mainforge_server_commonforge_server_extensionat runtime for locker extension callsforge_client_lockerfor response RPCs
Main Components
fnc_initLocker.sqfinitializes locker world objects.fnc_initLockerStore.sqfmanages player locker hot state.fnc_initVAStore.sqfmanages owner-scoped arsenal unlock state.
Supported Operations
- initialize player locker data
- save player and owner-scoped locker state
- override locker data from trusted server-side callers
- initialize and save owner-scoped arsenal storage
Runtime Notes
forge_server_main_fnc_saveHotState saves both LockerStore and VAStore on
disconnect and mission shutdown. Store checkout and task rewards can grant
assets into organization-owned storage through the org addon.