Implemented features: - High-performance Rust extension with Redis persistence - Actor/player management with loadout, position, and state tracking - Banking system with deposit, withdraw, and transfer operations - Physical and virtual garage/locker systems for vehicle and equipment storage - Organization management with member tracking and permissions - Client-side UI with React-like state management - Server-side event-driven architecture with CBA Events - Security: Self-transfer prevention at multiple layers - Logging system with per-module log files - ICOM module for inter-server communication Co-Authored-By: Warp <agent@warp.dev>
26 lines
689 B
Plaintext
26 lines
689 B
Plaintext
#include "script_component.hpp"
|
|
|
|
if (isNil QGVAR(BankClass)) then { [] call FUNC(initBankClass); };
|
|
|
|
[QGVAR(initBank), {
|
|
GVAR(BankClass) call ["init", []];
|
|
}] call CFUNC(addEventHandler);
|
|
|
|
[QGVAR(responseInitBank), {
|
|
params [["_data", createHashMap, [createHashMap]]];
|
|
|
|
GVAR(BankClass) call ["sync", [_data, true]];
|
|
}] call CFUNC(addEventHandler);
|
|
|
|
[QGVAR(responseSyncBank), {
|
|
params [["_data", createHashMap, [createHashMap]], ["_jip", false, [false]]];
|
|
|
|
GVAR(BankClass) call ["sync", [_data, _jip]];
|
|
}] call CFUNC(addEventHandler);
|
|
|
|
[{
|
|
EGVAR(org,OrgClass) get "isLoaded";
|
|
}, {
|
|
[QGVAR(initBank), []] call CFUNC(localEvent);
|
|
}] call CFUNC(waitUntilAndExecute);
|