Jump to content

ATM/BANK MENU


-Spliff-
 Share

Recommended Posts

Easy: Go Into your dialog folder and find bank.hpp. Once you found bank.hpp open it and replace all with my script below

class Life_atm_management
{
    idd = 2700;
    name= "life_atm_menu";
    movingEnable = 0;
    enableSimulation = 1;
    
    class ControlsBackground
    {
        
    };
    class Controls
    {
        class Background
        {
            type = 0;
            idc = -1;
            x = safeZoneX + safeZoneW * 0.401875;
            y = safeZoneY + safeZoneH * 0.21555556;
            w = safeZoneW * 0.2075;
            h = safeZoneH * 0.54666667;
            style = 0;
            text = "";
            colorBackground[] = {0.102,0.102,0.102,1};
            colorText[] = {0.5686,0.3843,0.8039,1};
            font = "PuristaMedium";
            sizeEx = (((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1);
            
        };
        class Title
        {
            type = 0;
            idc = -1;
            x = safeZoneX + safeZoneW * 0.40125;
            y = safeZoneY + safeZoneH * 0.2;
            w = safeZoneW * 0.209375;
            h = safeZoneH * 0.02666667;
            style = 0+2;
            text = "Bank Mangement";
            colorBackground[] = {1,0,0,1};
            colorText[] = {1,1,1,1};
            font = "PuristaMedium";
            sizeEx = (((((safezoneW / safezoneH) min 1.2) / 1.2) / 23) * 1);
            
        };
        class Money
        {
            type = 13;
            idc = 2701;
            x = safeZoneX + safeZoneW * 0.4275;
            y = safeZoneY + safeZoneH * 0.24555556;
            w = safeZoneW * 0.15375;
            h = safeZoneH * 0.08;
            style = 0;
            text = "";
            size = (((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1);
            colorBackground[] = {1,1,1,0};
            class Attributes
            {
                
            };
            
        };
        class depoorwithdrawamount
        {
            type = 2;
            idc = 2702;
            x = safeZoneX + safeZoneW * 0.429375;
            y = safeZoneY + safeZoneH * 0.34888889;
            w = safeZoneW * 0.148125;
            h = safeZoneH * 0.02888889;
            style = 0;
            text = "";
            autocomplete = "";
            colorBackground[] = {0,0,0,1};
            colorDisabled[] = {0.2,0.2,0.2,1};
            colorSelection[] = {1,0,0,1};
            colorText[] = {1,1,1,1};
            font = "PuristaMedium";
            sizeEx = (((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1);
            
        };
        class Deposit
        {
            type = 1;
            idc = -1;
            x = safeZoneX + safeZoneW * 0.465;
            y = safeZoneY + safeZoneH * 0.40555556;
            w = safeZoneW * 0.0775;
            h = safeZoneH * 0.03222223;
            style = 2+0;
            onButtonClick = "[] call life_fnc_bankDeposit";
            text = "DEPOSIT";
            borderSize = 0;
            colorBackground[] = {0,0,0,1};
            colorBackgroundActive[] = {1,0,0,1};
            colorBackgroundDisabled[] = {0.2,0.2,0.2,1};
            colorBorder[] = {0,0,0,0};
            colorDisabled[] = {0.2,0.2,0.2,1};
            colorFocused[] = {0.2,0.2,0.2,1};
            colorShadow[] = {0,0,0,0};
            colorText[] = {1,1,1,1};
            font = "PuristaMedium";
            offsetPressedX = 0.01;
            offsetPressedY = 0.01;
            offsetX = 0.01;
            offsetY = 0.01;
            sizeEx = (((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1);
            soundClick[] = {"\A3\ui_f\data\sound\RscButton\soundClick",0.09,1.0};
            soundEnter[] = {"\A3\ui_f\data\sound\RscButton\soundEnter",0.09,1.0};
            soundEscape[] = {"\A3\ui_f\data\sound\RscButton\soundEscape",0.09,1.0};
            soundPush[] = {"\A3\ui_f\data\sound\RscButton\soundPush",0.09,1.0};
            
        };
        class Withdraw
        {
            type = 1;
            idc = -1;
            x = safeZoneX + safeZoneW * 0.465;
            y = safeZoneY + safeZoneH * 0.45444445;
            w = safeZoneW * 0.0775;
            h = safeZoneH * 0.03222223;
            style = 2+0;
            onButtonClick = "[] call life_fnc_bankWithdraw";
            text = "Withdraw";
            borderSize = 0;
            colorBackground[] = {0,0,0,1};
            colorBackgroundActive[] = {1,0,0,1};
            colorBackgroundDisabled[] = {0.2,0.2,0.2,1};
            colorBorder[] = {0,0,0,0};
            colorDisabled[] = {0.2,0.2,0.2,1};
            colorFocused[] = {0.2,0.2,0.2,1};
            colorShadow[] = {0,0,0,0};
            colorText[] = {1,1,1,1};
            font = "PuristaMedium";
            offsetPressedX = 0.01;
            offsetPressedY = 0.01;
            offsetX = 0.01;
            offsetY = 0.01;
            sizeEx = (((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1);
            soundClick[] = {"\A3\ui_f\data\sound\RscButton\soundClick",0.09,1.0};
            soundEnter[] = {"\A3\ui_f\data\sound\RscButton\soundEnter",0.09,1.0};
            soundEscape[] = {"\A3\ui_f\data\sound\RscButton\soundEscape",0.09,1.0};
            soundPush[] = {"\A3\ui_f\data\sound\RscButton\soundPush",0.09,1.0};
            
        };
        class transferplayerselect
        {
            type = 4;
            idc = 2703;
            x = safeZoneX + safeZoneW * 0.42;
            y = safeZoneY + safeZoneH * 0.52333334;
            w = safeZoneW * 0.16625;
            h = safeZoneH * 0.02333334;
            style = 16;
            arrowEmpty = "\A3\ui_f\data\GUI\RscCommon\RscCombo\arrow_combo_ca.paa";
            arrowFull = "\A3\ui_f\data\GUI\RscCommon\RscCombo\arrow_combo_active_ca.paa";
            colorBackground[] = {0,0,0,1};
            colorDisabled[] = {0.2,0.2,0.2,1};
            colorSelect[] = {1,1,1,1};
            colorSelectBackground[] = {1,1,1,1};
            colorText[] = {1,1,1,1};
            font = "PuristaMedium";
            maxHistoryDelay = 0;
            sizeEx = (((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1);
            soundCollapse[] = {"\A3\ui_f\data\sound\RscCombo\soundCollapse",0.1,1.0};
            soundExpand[] = {"\A3\ui_f\data\sound\RscCombo\soundExpand",0.1,1.0};
            soundSelect[] = {"\A3\ui_f\data\sound\RscCombo\soundSelect",0.1,1.0};
            wholeHeight = 0.3;
            class ComboScrollBar
            {
                color[] = {1,1,1,1};
                thumb = "\A3\ui_f\data\gui\cfg\scrollbar\thumb_ca.paa";
                arrowFull = "\A3\ui_f\data\gui\cfg\scrollbar\arrowFull_ca.paa";
                arrowEmpty = "\A3\ui_f\data\gui\cfg\scrollbar\arrowEmpty_ca.paa";
                border = "\A3\ui_f\data\gui\cfg\scrollbar\border_ca.paa";
                
            };
            
        };
        class Transfer
        {
            type = 1;
            idc = -1;
            x = safeZoneX + safeZoneW * 0.465;
            y = safeZoneY + safeZoneH * 0.57666667;
            w = safeZoneW * 0.0775;
            h = safeZoneH * 0.03222223;
            style = 2+0;
            onButtonClick = "[] call life_fnc_bankTransfer";
            text = "TRANSFER";
            borderSize = 0;
            colorBackground[] = {0,0,0,1};
            colorBackgroundActive[] = {1,0,0,1};
            colorBackgroundDisabled[] = {0.2,0.2,0.2,1};
            colorBorder[] = {0,0,0,0};
            colorDisabled[] = {0.2,0.2,0.2,1};
            colorFocused[] = {0.2,0.2,0.2,1};
            colorShadow[] = {0,0,0,0};
            colorText[] = {1,1,1,1};
            font = "PuristaMedium";
            offsetPressedX = 0.01;
            offsetPressedY = 0.01;
            offsetX = 0.01;
            offsetY = 0.01;
            sizeEx = (((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1);
            soundClick[] = {"\A3\ui_f\data\sound\RscButton\soundClick",0.09,1.0};
            soundEnter[] = {"\A3\ui_f\data\sound\RscButton\soundEnter",0.09,1.0};
            soundEscape[] = {"\A3\ui_f\data\sound\RscButton\soundEscape",0.09,1.0};
            soundPush[] = {"\A3\ui_f\data\sound\RscButton\soundPush",0.09,1.0};
            
        };
        class withdrawgang
        {
            type = 1;
            idc = -1;
            x = safeZoneX + safeZoneW * 0.4075;
            y = safeZoneY + safeZoneH * 0.70111112;
            w = safeZoneW * 0.1925;
            h = safeZoneH * 0.02666667;
            style = 0+2;
            text = "WITHDRAW GANG";
            borderSize = 0;
            colorBackground[] = {0,0,0,1};
            colorBackgroundActive[] = {1,0,0,1};
            colorBackgroundDisabled[] = {0.2,0.2,0.2,1};
            colorBorder[] = {0,0,0,0};
            colorDisabled[] = {0.2,0.2,0.2,1};
            colorFocused[] = {0.2,0.2,0.2,1};
            colorShadow[] = {0,0,0,0};
            colorText[] = {1,1,1,1};
            font = "PuristaMedium";
            offsetPressedX = 0.01;
            offsetPressedY = 0.01;
            offsetX = 0.01;
            offsetY = 0.01;
            sizeEx = (((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1);
            soundClick[] = {"\A3\ui_f\data\sound\RscButton\soundClick",0.09,1.0};
            soundEnter[] = {"\A3\ui_f\data\sound\RscButton\soundEnter",0.09,1.0};
            soundEscape[] = {"\A3\ui_f\data\sound\RscButton\soundEscape",0.09,1.0};
            soundPush[] = {"\A3\ui_f\data\sound\RscButton\soundPush",0.09,1.0};
            
        };
        class depogang
        {
            type = 1;
            idc = -1;
            x = safeZoneX + safeZoneW * 0.4075;
            y = safeZoneY + safeZoneH * 0.65222223;
            w = safeZoneW * 0.1925;
            h = safeZoneH * 0.02666667;
            style = 0+2;
            onButtonClick = "[] call life_fnc_gangDeposit";
            text = "DEPOSIT GANG";
            borderSize = 0;
            colorBackground[] = {0,0,0,1};
            colorBackgroundActive[] = {1,0,0,1};
            colorBackgroundDisabled[] = {0.2,0.2,0.2,1};
            colorBorder[] = {0,0,0,0};
            colorDisabled[] = {0.2,0.2,0.2,1};
            colorFocused[] = {0.2,0.2,0.2,1};
            colorShadow[] = {0,0,0,0};
            colorText[] = {1,1,1,1};
            font = "PuristaMedium";
            offsetPressedX = 0.01;
            offsetPressedY = 0.01;
            offsetX = 0.01;
            offsetY = 0.01;
            sizeEx = (((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1);
            soundClick[] = {"\A3\ui_f\data\sound\RscButton\soundClick",0.09,1.0};
            soundEnter[] = {"\A3\ui_f\data\sound\RscButton\soundEnter",0.09,1.0};
            soundEscape[] = {"\A3\ui_f\data\sound\RscButton\soundEscape",0.09,1.0};
            soundPush[] = {"\A3\ui_f\data\sound\RscButton\soundPush",0.09,1.0};
            
        };
        class withdrawgang
        {
            type = 1;
            idc = -1;
            x = safeZoneX + safeZoneW * 0.4075;
            y = safeZoneY + safeZoneH * 0.69222223;
            w = safeZoneW * 0.1925;
            h = safeZoneH * 0.02666667;
            style = 0+2;
            onButtonClick = "[] call life_fnc_gangWithdraw";
            text = "WITHDRAW GANG";
            borderSize = 0;
            colorBackground[] = {0,0,0,1};
            colorBackgroundActive[] = {1,0,0,1};
            colorBackgroundDisabled[] = {0.2,0.2,0.2,1};
            colorBorder[] = {0,0,0,0};
            colorDisabled[] = {0.2,0.2,0.2,1};
            colorFocused[] = {0.2,0.2,0.2,1};
            colorShadow[] = {0,0,0,0};
            colorText[] = {1,1,1,1};
            font = "PuristaMedium";
            offsetPressedX = 0.01;
            offsetPressedY = 0.01;
            offsetX = 0.01;
            offsetY = 0.01;
            sizeEx = (((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1);
            soundClick[] = {"\A3\ui_f\data\sound\RscButton\soundClick",0.09,1.0};
            soundEnter[] = {"\A3\ui_f\data\sound\RscButton\soundEnter",0.09,1.0};
            soundEscape[] = {"\A3\ui_f\data\sound\RscButton\soundEscape",0.09,1.0};
            soundPush[] = {"\A3\ui_f\data\sound\RscButton\soundPush",0.09,1.0};
            
        };
        
    };
    
};

 

Preview:

 

 

 

1376969551_ArmA3Screenshot2022_01.13-21_34_39_80.png

Edited by -Spliff-
  • Like 1
Link to comment
Share on other sites

  • 1 month later...

Getting:
"File mpmissions\__CUR_MP.Altis\dialog\bank.hpp, line 308: /Life_atm_management/Controls.withdrawgang: Member already defined"

When loading mission file
(can enter game normal, no server kick)

I tried deleting the line/replacing things - the error goes away when i delete the line but gang deposit/withdraw not working.

 

Link to comment
Share on other sites

P.S,  i think the reason the gang deposit/withdraw is not working is because on the code it says to call for fnc_gangWithdraw or fnc_gangDeposit,  but there are no such files in the \dialog\function

Unlike the normal Deposit/Withdraw call

But im not sure, i could be completely wrong as to why

Edited by chriscraized
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.