Jump to content

Daniel Stewart

Members
  • Content Count

    58
  • Joined

  • Last visited

Community Reputation

5 Neutral

About Daniel Stewart

  • Rank
    Advanced Member

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Daniel Stewart

    Rip

    mmm ok
  2. Daniel Stewart

    Rip

    this would be pretty nice but... BoGuu You're chucking a very large amount of data across the network and into the JIP queue. It's not a small amount if one plans to move all code server side, there is a lot. It'll certainly be less noticeable for the lower player count servers though, which is probably the majority who'll give this a pop. However, with the absolutely monumental spamming across the network, it's becoming harder to distinguish amongst all this stuff, as people enjoy chucking everything unoptimized in without thought (there is a huge room for improvement on this from a vanilla standpoint as well), and it runs worse from day one. I'd never seek to improve protection and what not on the repository regardless, it's not the purpose, that's for the end user to figure out. It's not closed source  2page : 4th from the bottom of the page is the comment that BoGuu made
  3. Daniel Stewart

    [Tutorial] Simple Morphine/Bandages

    .
  4. Daniel Stewart

    [4.4] Prison Clothes

    well the life_fnc_removeLicenses is in fn_jail you could try switch (true) do { case (_bail): { life_is_arrested = false; life_bail_paid = false; hint localize "STR_Jail_Paid"; serv_wanted_remove = [player]; player setPos (getMarkerPos "civ_spawn_1"); [getPlayerUID player] remoteExecCall ["life_fnc_wantedRemove",RSERV]; hint "Because you have paid your bail, you will recieve your clothing shortly"; player setUnitLoadout old_gear; hint localize "STR_Jail_LicenseNOTF"; [1] call life_fnc_removeLicenses; [] call life_fnc_saveGear; [5] call SOCK_fnc_updatePartial; }; case (_esc): { life_is_arrested = false; hint localize "STR_Jail_EscapeSelf"; [0,"STR_Jail_EscapeNOTF",true,[profileName]] remoteExecCall ["life_fnc_broadcast",RCLIENT]; [getPlayerUID player,profileName,"901"] remoteExecCall ["life_fnc_wantedAdd",RSERV]; hint "Because you escaped from jail, the jail guards have placed your gear in the trash"; [] call life_fnc_saveGear; [5] call SOCK_fnc_updatePartial; }; case (alive player && !_esc && !_bail): { life_is_arrested = false; hint localize "STR_Jail_Released"; [getPlayerUID player] remoteExecCall ["life_fnc_wantedRemove",RSERV]; player setPos (getMarkerPos "civ_spawn_1"); player setUnitLoadout old_gear; hint "Because you have done your time in prison, you will recieve your clothing shortly"; hint localize "STR_Jail_LicenseNOTF"; [1] call life_fnc_removeLicenses; [] call life_fnc_saveGear; [5] call SOCK_fnc_updatePartial; }; }; and remove hint localize "STR_Jail_LicenseNOTF"; [1] call life_fnc_removeLicenses; from fn_jail.sqf . so it removes the licenses if you do ur time or pay bail but if you escape it doesn't remove ur licenses. I have not tested it so yeah
  5. Daniel Stewart

    [4.4R4] UPM Notification

    well hmm I fixed it ["Information",format [localize "STR_NOTF_B_1", localize _displayName,[_price] call life_fnc_numberText]] call UPM_fnc_showNotification;];
  6. Daniel Stewart

    [NEW] How to sign and create EBO's for any addon

    @Repentz the links don't work anymore.
  7. Daniel Stewart

    [Tutorial] 5.0 ATM Menu + Deposit-All Button

    I just don't use it on my server. but here class Life_atm_management { idd = 2700; name= "life_atm_menu"; movingEnable = 0; enableSimulation = 1; class ControlsBackground { class Life_RscTitleBackground : Life_RscText { idc = -1; x = safeZoneX + safeZoneW * 0.3625; y = safeZoneY + safeZoneH * 0.38425926; w = safeZoneW * 0.29114584; h = safeZoneH * 0.02222223; colorBackground[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.3843])","(profilenamespace getvariable ['GUI_BCG_RGB_G',0.7019])","(profilenamespace getvariable ['GUI_BCG_RGB_B',0.8862])","(profilenamespace getvariable ['GUI_BCG_RGB_A',0.7])"}; }; class MainBackground : Life_RscText { idc = -1; x = safeZoneX + safeZoneW * 0.361875; y = safeZoneY + safeZoneH * 0.41; w = safeZoneW * 0.29125; h = safeZoneH * 0.18555556; colorBackground[] = {0,0,0,0.7}; }; }; class Controls { class CashTitle : Life_RscStructuredText { idc = 2701; x = safeZoneX + safeZoneW * 0.36666667; y = safeZoneY + safeZoneH * 0.4175926; w = safeZoneW * 0.17447917; h = safeZoneH * 0.04907408; text = ""; colorBackground[] = {1,1,1,0}; class Attributes { font = "RobotoCondensed"; color = "#ffffff"; align = "left"; }; }; class Title : Life_RscTitle { idc = -1; x = safeZoneX + safeZoneW * 0.3640625; y = safeZoneY + safeZoneH * 0.38240741; w = safeZoneW * 0.28697917; h = safeZoneH * 0.02222223; text = "$STR_ATM_Title"; colorBackground[] = {0,0,0,0}; }; class WithdrawButton : Life_RscButtonMenu { idc = -1; x = safeZoneX + safeZoneW * 0.365625; y = safeZoneY + safeZoneH * 0.54351852; w = safeZoneW * 0.06197917; h = safeZoneH * 0.02222223; text = "$STR_ATM_Withdraw"; colorBackground[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.3843])","(profilenamespace getvariable ['GUI_BCG_RGB_G',0.7019])","(profilenamespace getvariable ['GUI_BCG_RGB_B',0.8862])",0.5}; onButtonClick = "[] call life_fnc_bankWithdraw"; class HitZone { top = 0.0; right = 0.0; bottom = 0.0; left = 0.0; }; class ShortcutPos { top = 0.005; left = (6.25 * (((safezoneW / safezoneH) min 1.2) / 40)) - 0.0225 - 0.005; w = 0.0225; h = 0.03; }; class TextPos { top = (((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) - (((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)) / 2; right = 0.005; bottom = 0.0; left = 0.25 * (((safezoneW / safezoneH) min 1.2) / 40); }; }; class DepositButton : Life_RscButtonMenu { idc = -1; x = safeZoneX + safeZoneW * 0.4296875; y = safeZoneY + safeZoneH * 0.54351852; w = safeZoneW * 0.06197917; h = safeZoneH * 0.02222223; text = "$STR_ATM_Deposit"; colorBackground[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.3843])","(profilenamespace getvariable ['GUI_BCG_RGB_G',0.7019])","(profilenamespace getvariable ['GUI_BCG_RGB_B',0.8862])",0.5}; onButtonClick = "[] call life_fnc_bankDeposit"; class HitZone { top = 0.0; right = 0.0; bottom = 0.0; left = 0.0; }; class ShortcutPos { top = 0.005; left = (6.25 * (((safezoneW / safezoneH) min 1.2) / 40)) - 0.0225 - 0.005; w = 0.0225; h = 0.03; }; class TextPos { top = (((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) - (((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)) / 2; right = 0.005; bottom = 0.0; left = 0.25 * (((safezoneW / safezoneH) min 1.2) / 40); }; }; class moneyEdit : Life_RscEdit { idc = 2702; x = safeZoneX + safeZoneW * 0.36822917; y = safeZoneY + safeZoneH * 0.50370371; w = safeZoneW * 0.27760417; h = safeZoneH * 0.01851852; text = "1"; colorSelection[] = {1,0,0,1}; sizeEx = 0.030; }; class PlayerList : Life_RscCombo { idc = 2703; x = safeZoneX + safeZoneW * 0.36822917; y = safeZoneY + safeZoneH * 0.47777778; w = safeZoneW * 0.27760417; h = safeZoneH * 0.01666667; 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 TransferButton : Life_RscButtonMenu { idc = -1; x = safeZoneX + safeZoneW * 0.55833334; y = safeZoneY + safeZoneH * 0.54351852; w = safeZoneW * 0.06197917; h = safeZoneH * 0.02222223; text = "$STR_ATM_Transfer"; colorBackground[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.3843])","(profilenamespace getvariable ['GUI_BCG_RGB_G',0.7019])","(profilenamespace getvariable ['GUI_BCG_RGB_B',0.8862])",0.5}; onButtonClick = "[] call life_fnc_bankTransfer"; class HitZone { top = 0.0; right = 0.0; bottom = 0.0; left = 0.0; }; class ShortcutPos { top = 0.005; left = (6.25 * (((safezoneW / safezoneH) min 1.2) / 40)) - 0.0225 - 0.005; w = 0.0225; h = 0.03; }; class TextPos { top = (((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) - (((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)) / 2; right = 0.005; bottom = 0.0; left = 0.25 * (((safezoneW / safezoneH) min 1.2) / 40); }; }; class CloseButtonKey : Life_RscButtonMenu { idc = -1; x = safeZoneX + safeZoneW * 0.361875; y = safeZoneY + safeZoneH * 0.6; w = safeZoneW * 0.064375; h = safeZoneH * 0.02222223; text = "$STR_Global_Close"; onButtonClick = "closeDialog 0;"; class HitZone { top = 0.0; right = 0.0; bottom = 0.0; left = 0.0; }; class ShortcutPos { top = 0.005; left = (6.25 * (((safezoneW / safezoneH) min 1.2) / 40)) - 0.0225 - 0.005; w = 0.0225; h = 0.03; }; class TextPos { top = (((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) - (((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)) / 2; right = 0.005; bottom = 0.0; left = 0.25 * (((safezoneW / safezoneH) min 1.2) / 40); }; }; class DepositAllButton : Life_RscButtonMenu { idc = -1; x = safeZoneX + safeZoneW * 0.49375; y = safeZoneY + safeZoneH * 0.54351852; w = safeZoneW * 0.06197917; h = safeZoneH * 0.02222223; text = "$STR_ATM_Deposit_All"; colorBackground[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.3843])","(profilenamespace getvariable ['GUI_BCG_RGB_G',0.7019])","(profilenamespace getvariable ['GUI_BCG_RGB_B',0.8862])",0.5}; onButtonClick = "[] call life_fnc_bankDeposit"; class HitZone { top = 0.0; right = 0.0; bottom = 0.0; left = 0.0; }; class ShortcutPos { top = 0.005; left = (6.25 * (((safezoneW / safezoneH) min 1.2) / 40)) - 0.0225 - 0.005; w = 0.0225; h = 0.03; }; class TextPos { top = (((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) - (((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)) / 2; right = 0.005; bottom = 0.0; left = 0.25 * (((safezoneW / safezoneH) min 1.2) / 40); }; }; class GangWithdraw : Life_RscButtonMenu { idc = -1; x = safeZoneX + safeZoneW * 0.365625; y = safeZoneY + safeZoneH * 0.56888889; w = safeZoneW * 0.061875; h = safeZoneH * 0.02222223; text = "$STR_ATM_WithdrawGang"; colorBackground[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.3843])","(profilenamespace getvariable ['GUI_BCG_RGB_G',0.7019])","(profilenamespace getvariable ['GUI_BCG_RGB_B',0.8862])",0.5}; onButtonClick = "[] call life_fnc_gangWithdraw"; class HitZone { top = 0.0; right = 0.0; bottom = 0.0; left = 0.0; }; class ShortcutPos { top = 0.005; left = (6.25 * (((safezoneW / safezoneH) min 1.2) / 40)) - 0.0225 - 0.005; w = 0.0225; h = 0.03; }; class TextPos { top = (((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) - (((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)) / 2; right = 0.005; bottom = 0.0; left = 0.25 * (((safezoneW / safezoneH) min 1.2) / 40); }; }; class GangDeposit : Life_RscButtonMenu { idc = -1; x = safeZoneX + safeZoneW * 0.43; y = safeZoneY + safeZoneH * 0.56888889; w = safeZoneW * 0.061875; h = safeZoneH * 0.02222223; text = "$STR_ATM_DepositGang"; colorBackground[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.3843])","(profilenamespace getvariable ['GUI_BCG_RGB_G',0.7019])","(profilenamespace getvariable ['GUI_BCG_RGB_B',0.8862])",0.5}; onButtonClick = "[] call life_fnc_gangDeposit"; class HitZone { top = 0.0; right = 0.0; bottom = 0.0; left = 0.0; }; class ShortcutPos { top = 0.005; left = (6.25 * (((safezoneW / safezoneH) min 1.2) / 40)) - 0.0225 - 0.005; w = 0.0225; h = 0.03; }; class TextPos { top = (((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) - (((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)) / 2; right = 0.005; bottom = 0.0; left = 0.25 * (((safezoneW / safezoneH) min 1.2) / 40); }; }; }; };
  8. well, the one I posted works. But if ^ works for you good.
  9. Daniel Stewart

    [Release] Zipties | Blindfolds and Gags | 4.4r3+

    well what does ur core\functions look like and what version of altis life are you running also to make stuff easier to read please put them in code </> tab.
  10. Daniel Stewart

    [Tutorial] 5.0 ATM Menu + Deposit-All Button

    @Daniel K. all good buddy
  11. Daniel Stewart

    [Tutorial] 5.0 ATM Menu + Deposit-All Button

    U can just copy and paste the should like one. But the _value = parseNumber(ctrlText 2702); is in the _deopall under else just look at step 3 again
  12. Daniel Stewart

    [Tutorial] 5.0 ATM Menu + Deposit-All Button

    I have looked around and I found 1 tutorial on this and it was not clear what to do so I'm making this ---------------------------------------------------------------------------------------------------- Difficulty: 4 Easy Steps. Simply Copy & Paste Author: Daniel Stewart ---------------------------------------------------------------------------------------------------- Screenshot: Step 1. Copy & Paste into Alits_Life.Alits\dialog\bank.hpp class Life_atm_management { idd = 2700; name= "life_atm_menu"; movingEnable = 0; enableSimulation = 1; class ControlsBackground { class Life_RscTitleBackground : Life_RscText { idc = -1; x = safeZoneX + safeZoneW * 0.3625; y = safeZoneY + safeZoneH * 0.38425926; w = safeZoneW * 0.29114584; h = safeZoneH * 0.02222223; colorBackground[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.3843])","(profilenamespace getvariable ['GUI_BCG_RGB_G',0.7019])","(profilenamespace getvariable ['GUI_BCG_RGB_B',0.8862])","(profilenamespace getvariable ['GUI_BCG_RGB_A',0.7])"}; }; class MainBackground : Life_RscText { idc = -1; x = safeZoneX + safeZoneW * 0.361875; y = safeZoneY + safeZoneH * 0.41; w = safeZoneW * 0.29125; h = safeZoneH * 0.16333334; colorBackground[] = {0,0,0,0.7}; }; }; class Controls { class CashTitle : Life_RscStructuredText { idc = 2701; x = safeZoneX + safeZoneW * 0.36666667; y = safeZoneY + safeZoneH * 0.4175926; w = safeZoneW * 0.17447917; h = safeZoneH * 0.04907408; text = ""; colorBackground[] = {1,1,1,0}; class Attributes { font = "RobotoCondensed"; color = "#ffffff"; align = "left"; }; }; class Title : Life_RscTitle { idc = -1; x = safeZoneX + safeZoneW * 0.3640625; y = safeZoneY + safeZoneH * 0.38240741; w = safeZoneW * 0.28697917; h = safeZoneH * 0.02222223; text = "$STR_ATM_Title"; colorBackground[] = {0,0,0,0}; }; class WithdrawButton : Life_RscButtonMenu { idc = -1; x = safeZoneX + safeZoneW * 0.365625; y = safeZoneY + safeZoneH * 0.54351852; w = safeZoneW * 0.06197917; h = safeZoneH * 0.02222223; text = "$STR_ATM_Withdraw"; colorBackground[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.3843])","(profilenamespace getvariable ['GUI_BCG_RGB_G',0.7019])","(profilenamespace getvariable ['GUI_BCG_RGB_B',0.8862])",0.5}; onButtonClick = "[] call life_fnc_bankWithdraw"; class HitZone { top = 0.0; right = 0.0; bottom = 0.0; left = 0.0; }; class ShortcutPos { top = 0.005; left = (6.25 * (((safezoneW / safezoneH) min 1.2) / 40)) - 0.0225 - 0.005; w = 0.0225; h = 0.03; }; class TextPos { top = (((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) - (((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)) / 2; right = 0.005; bottom = 0.0; left = 0.25 * (((safezoneW / safezoneH) min 1.2) / 40); }; }; class DepositButton : Life_RscButtonMenu { idc = -1; x = safeZoneX + safeZoneW * 0.4296875; y = safeZoneY + safeZoneH * 0.54351852; w = safeZoneW * 0.06197917; h = safeZoneH * 0.02222223; text = "$STR_ATM_Deposit"; colorBackground[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.3843])","(profilenamespace getvariable ['GUI_BCG_RGB_G',0.7019])","(profilenamespace getvariable ['GUI_BCG_RGB_B',0.8862])",0.5}; onButtonClick = "[0] call life_fnc_bankDeposit"; class HitZone { top = 0.0; right = 0.0; bottom = 0.0; left = 0.0; }; class ShortcutPos { top = 0.005; left = (6.25 * (((safezoneW / safezoneH) min 1.2) / 40)) - 0.0225 - 0.005; w = 0.0225; h = 0.03; }; class TextPos { top = (((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) - (((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)) / 2; right = 0.005; bottom = 0.0; left = 0.25 * (((safezoneW / safezoneH) min 1.2) / 40); }; }; class moneyEdit : Life_RscEdit { idc = 2702; x = safeZoneX + safeZoneW * 0.36822917; y = safeZoneY + safeZoneH * 0.50370371; w = safeZoneW * 0.27760417; h = safeZoneH * 0.01851852; text = "1"; colorSelection[] = {1,0,0,1}; sizeEx = 0.030; }; class PlayerList : Life_RscCombo { idc = 2703; x = safeZoneX + safeZoneW * 0.36822917; y = safeZoneY + safeZoneH * 0.47777778; w = safeZoneW * 0.27760417; h = safeZoneH * 0.01666667; 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 TransferButton : Life_RscButtonMenu { idc = -1; x = safeZoneX + safeZoneW * 0.55833334; y = safeZoneY + safeZoneH * 0.54351852; w = safeZoneW * 0.06197917; h = safeZoneH * 0.02222223; text = "$STR_ATM_Transfer"; colorBackground[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.3843])","(profilenamespace getvariable ['GUI_BCG_RGB_G',0.7019])","(profilenamespace getvariable ['GUI_BCG_RGB_B',0.8862])",0.5}; onButtonClick = "[] call life_fnc_bankTransfer"; class HitZone { top = 0.0; right = 0.0; bottom = 0.0; left = 0.0; }; class ShortcutPos { top = 0.005; left = (6.25 * (((safezoneW / safezoneH) min 1.2) / 40)) - 0.0225 - 0.005; w = 0.0225; h = 0.03; }; class TextPos { top = (((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) - (((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)) / 2; right = 0.005; bottom = 0.0; left = 0.25 * (((safezoneW / safezoneH) min 1.2) / 40); }; }; class CloseButtonKey : Life_RscButtonMenu { idc = -1; x = safeZoneX + safeZoneW * 0.36197917; y = safeZoneY + safeZoneH * 0.57592593; w = safeZoneW * 0.06458334; h = safeZoneH * 0.02222223; text = "$STR_Global_Close"; onButtonClick = "closeDialog 0;"; class HitZone { top = 0.0; right = 0.0; bottom = 0.0; left = 0.0; }; class ShortcutPos { top = 0.005; left = (6.25 * (((safezoneW / safezoneH) min 1.2) / 40)) - 0.0225 - 0.005; w = 0.0225; h = 0.03; }; class TextPos { top = (((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) - (((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)) / 2; right = 0.005; bottom = 0.0; left = 0.25 * (((safezoneW / safezoneH) min 1.2) / 40); }; }; class DepositAllButton : Life_RscButtonMenu { idc = -1; x = safeZoneX + safeZoneW * 0.49375; y = safeZoneY + safeZoneH * 0.54351852; w = safeZoneW * 0.06197917; h = safeZoneH * 0.02222223; text = "$STR_ATM_Deposit_All"; colorBackground[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.3843])","(profilenamespace getvariable ['GUI_BCG_RGB_G',0.7019])","(profilenamespace getvariable ['GUI_BCG_RGB_B',0.8862])",0.5}; onButtonClick = "[1] call life_fnc_bankDeposit"; class HitZone { top = 0.0; right = 0.0; bottom = 0.0; left = 0.0; }; class ShortcutPos { top = 0.005; left = (6.25 * (((safezoneW / safezoneH) min 1.2) / 40)) - 0.0225 - 0.005; w = 0.0225; h = 0.03; }; class TextPos { top = (((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) - (((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)) / 2; right = 0.005; bottom = 0.0; left = 0.25 * (((safezoneW / safezoneH) min 1.2) / 40); }; }; }; }; Step 2. Find CONTROL(2700,2701) ctrlSetStructuredText parseText format ["<img size='1.7' image='icons\ico_bank.paa'/> $%1<br/><img size='1.6' image='icons\ico_money.paa'/> $%2",[BANK] call life_fnc_numberText,[CASH] call life_fnc_numberText]; in Altis_Life.Altis\core\shops\fn_atmMenu.sqf replace with CONTROL(2700,2701) ctrlSetStructuredText parseText format ["<t color='#ffffff'>Bank: $%1</t><br/><t color='#ffffff'>Cash: $%2</t>",[BANK] call life_fnc_numberText,[CASH] call life_fnc_numberText]; Step 3. In Altis_Life.Altis\dialog\fuction\fn_bankDeposit.sqf Under private ["_value"]; Paste _depoAll = [_this,0,0] call BIS_fnc_param; if(_depoAll == 1) then { _value = CASH; } else { _value = parseNumber(ctrlText 2702); }; it should look like this #include "..\..\script_macros.hpp" /* File: fn_bankDeposit.sqf Author: Bryan "Tonic" Boardwine Description: Figure it out. */ private ["_value"]; _depoAll = [_this,0,0] call BIS_fnc_param; if(_depoAll == 1) then { _value = CASH; } else { _value = parseNumber(ctrlText 2702); }; //Series of stupid checks if (_value > 999999) exitWith {hint localize "STR_ATM_GreaterThan";}; if (_value < 0) exitWith {}; if (!([str(_value)] call TON_fnc_isnumber)) exitWith {hint localize "STR_ATM_notnumeric"}; if (_value > CASH) exitWith {hint localize "STR_ATM_NotEnoughCash"}; CASH = CASH - _value; BANK = BANK + _value; hint format [localize "STR_ATM_DepositSuccess",[_value] call life_fnc_numberText]; [] call life_fnc_atmMenu; [6] call SOCK_fnc_updatePartial; if (LIFE_SETTINGS(getNumber,"player_moneyLog") isEqualTo 1) then { if (LIFE_SETTINGS(getNumber,"battlEye_friendlyLogging") isEqualTo 1) then { money_log = format [localize "STR_DL_ML_depositedBank_BEF",_value,[BANK] call life_fnc_numberText,[CASH] call life_fnc_numberText]; } else { money_log = format [localize "STR_DL_ML_depositedBank",profileName,(getPlayerUID player),_value,[BANK] call life_fnc_numberText,[CASH] call life_fnc_numberText]; }; publicVariableServer "money_log"; }; Step 4. In Altis_Life.Altis\stringtable.xml Paste <Key ID="STR_ATM_Deposit_All"> <Original>Deposit All</Original> </Key> Under <Key ID="STR_ATM_Deposit"> <Original>Deposit</Original> <Czech>Vklad</Czech> <Spanish>Depositar</Spanish> <Russian></Russian> <German>Einzahlen</German> <French>Déposer</French> <Italian>Deposita</Italian> <Portuguese>Depositar</Portuguese> <Polish>Deopozyt</Polish> </Key> Done !! If you would just like the Deposit-all button all you need to do is Step 3. and make a Deposit-all button and put onButtonClick = "[1] call life_fnc_bankDeposit"; on it. If you would like to make your own bank.hpp. https://github.com/kayler-renslow/arma-dialog-creator/releases Linked by @Deadlesszombie it's a great way to make dialogs. if you got any questions. ask me on discord DANIΞL#2936 I can respond much faster. Also 🎉Happy New Year 🎉
  13. Daniel Stewart

    Shop tablets

    in the default mission file there should be NPCs that are the shops just copy and paste the init code to the info stands. also, this stuff goes into Server & scripting help desk.
  14. @sc0t86 hey bud the init need to be put in the mission file by txt. you can paste this into the bottom of your mission file if you would like and the NPC will be next to Kavala market on the basketball court. class Item3278 { dataType="Group"; side="Civilian"; class Entities { items=1; class Item0 { dataType="Object"; class PositionInfo { position[]={3662.749,10.398308,13169.489}; angles[]={0,5.6808982,0}; }; side="Civilian"; flags=7; class Attributes { init="this addAction[format[""%1 ($%2)"",localize (getText(missionConfigFile >> ""Licenses"" >> ""bountyH"" >> ""displayName"")), [(getNumber(missionConfigFile >> ""Licenses"" >> ""bountyH"" >> ""price""))] call life_fnc_numberText],life_fnc_buyLicense,""bountyH"",0,false,false,"""",' !license_civ_bountyH && playerSide isEqualTo civilian ']; this addAction[""<t color = '#D660D6'>Bounty Add</t>"",life_fnc_bountyAddMenu,"""",0,FALSE,FALSE,"""",'']; this addAction[""<t color = '#E6F402'>Bounty List</t>"",life_fnc_bountyMenu,"""",0,FALSE,FALSE,"""",''];"; name="Bounty_hunter_npc"; disableSimulation=1; ignoreByDynSimulGrid=1; class Inventory { class uniform { typeName="U_Marshal"; isBackpack=0; }; class vest { typeName="V_PlateCarrier1_blk"; isBackpack=0; }; map="ItemMap"; compass="ItemCompass"; watch="ItemWatch"; goggles="G_Aviator"; headgear="H_Cap_usblack"; }; }; id=10834; type="C_Man_casual_1_F"; class CustomAttributes { class Attribute0 { property="allowDamage"; expression="_this allowdamage _value;"; class Value { class data { class type { type[]= { "BOOL" }; }; value=0; }; }; }; class Attribute1 { property="enableStamina"; expression="_this enablestamina _value;"; class Value { class data { class type { type[]= { "BOOL" }; }; value=0; }; }; }; class Attribute2 { property="speaker"; expression="_this setspeaker _value;"; class Value { class data { class type { type[]= { "STRING" }; }; value="Male01ENG"; }; }; }; class Attribute3 { property="pitch"; expression="_this setpitch _value;"; class Value { class data { class type { type[]= { "SCALAR" }; }; value=0.98000002; }; }; }; class Attribute4 { property="face"; expression="_this setface _value;"; class Value { class data { class type { type[]= { "STRING" }; }; value="WhiteHead_05"; }; }; }; nAttributes=5; }; }; }; class Attributes { }; id=10833; };
×