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>
38 lines
799 B
Plaintext
38 lines
799 B
Plaintext
#include "..\script_component.hpp"
|
|
|
|
/*
|
|
* Author: IDSolutions
|
|
* Opens the player bank interaction interface.
|
|
*
|
|
* Arguments:
|
|
* None
|
|
*
|
|
* Return Value:
|
|
* None
|
|
*
|
|
* Example:
|
|
* [] call forge_client_bank_fnc_openUI;
|
|
*
|
|
* Public: No
|
|
*/
|
|
|
|
params [["_isATM", false, [false]]];
|
|
|
|
private _display = (findDisplay 46) createDisplay "RscBank";
|
|
private _ctrl = (_display displayCtrl 1002);
|
|
|
|
_ctrl ctrlAddEventHandler ["JSDialog", {
|
|
params ["_control", "_isConfirmDialog", "_message"];
|
|
|
|
[_control, _isConfirmDialog, _message] call FUNC(handleUIEvents);
|
|
}];
|
|
|
|
if (_isATM) then {
|
|
_ctrl ctrlWebBrowserAction ["LoadFile", QPATHTOF2(ui\_site\atm.html)];
|
|
} else {
|
|
_ctrl ctrlWebBrowserAction ["LoadFile", QPATHTOF2(ui\_site\bank.html)];
|
|
};
|
|
// _ctrl ctrlWebBrowserAction ["OpenDevConsole"];
|
|
|
|
true;
|