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
684 B
Plaintext
26 lines
684 B
Plaintext
#include "script_component.hpp"
|
|
|
|
if (isNil QGVAR(OrgClass)) then { [] call FUNC(initOrgClass); };
|
|
|
|
[QGVAR(initOrg), {
|
|
GVAR(OrgClass) call ["init", []];
|
|
}] call CFUNC(addEventHandler);
|
|
|
|
[QGVAR(responseInitOrg), {
|
|
params [["_data", createHashMap, [createHashMap]]];
|
|
|
|
GVAR(OrgClass) call ["sync", [_data, true]];
|
|
}] call CFUNC(addEventHandler);
|
|
|
|
[QGVAR(responseSyncOrg), {
|
|
params [["_data", createHashMap, [createHashMap]], ["_jip", false, [false]]];
|
|
|
|
GVAR(OrgClass) call ["sync", [_data, _jip]];
|
|
}] call CFUNC(addEventHandler);
|
|
|
|
[{
|
|
EGVAR(actor,ActorClass) get "isLoaded";
|
|
}, {
|
|
[QGVAR(initOrg), []] call CFUNC(localEvent);
|
|
}] call CFUNC(waitUntilAndExecute);
|