Jump to content

CubeX
 Share

Recommended Posts

  • 1 month later...
On 6/19/2020 at 9:35 PM, Enrah said:

@CubeX Would you be able to help show me how to implement this market menu into the CBX phone with the button :) https://www.altisliferpg.com/topic/2211-releasetutorial-y-menu-market-display-with-item-descriptions-50-44r3/

@Ilusionz would you be able to lend a hand or someone? i have managed to add a new market button to the phone however when calling the market script - onButtonClick = "[] call CBX_fnc_marketMenu;";

It does not work?

I have also tried - onButtonClick = "[] call life_fnc_marketMenu;";

and it is still the same outcome?

Link to comment
Share on other sites

  • 5 months later...
  • 4 months later...
  • 2 weeks later...

Hi, like many noobs , :P i don't understand battleyes, can anyone give use the code to put in script.txt ?
Error :

 

Battleyes (Script restriction #2)


Script.log

22.07.2021 23:40:54: TTCO (217.79.195.37:2304) 8916d5742fcb4b504ace65135d745ae7 - #2 "neMenu\functions\fn_openPhone.sqf"

disableSerialization;
createDialog "CBX_PhoneMain";
private _display = findDisplay (2501);
p"

script.txt
 

//new2
1 "" !="this allowDamage false;" !="this enableSimulation false;" !"this addAction[localize\"STR_" !"this addAction[format [\"%1 ($%2)\",localize (getText(missionConfigFile" !=createDialog "CBX_PhoneMain"; !=private _display = findDisplay (2501);
5 addAction !"this addAction[format [\"%1 ($%2)\",localize (getText(missionConfigFile" !HC_fnc_getVehicles !life_fnc_atmMenu !life_fnc_captureHideout !life_fnc_chopShopMenu !life_fnc_clothingMenu !life_fnc_dpFinish !life_fnc_dropFishingNet !life_fnc_fedCamDisplay !life_fnc_fuelStatOpen !life_fnc_getDPMission !life_fnc_healHospital !life_fnc_packupSpikes !life_fnc_postBail !life_fnc_processAction !life_fnc_questionDealer !life_fnc_robAction !life_fnc_safeFix !life_fnc_safeOpen !life_fnc_serviceChopper !life_fnc_storeVehicle !life_fnc_vehicleShopMenu !life_fnc_virt_menu !life_fnc_weaponShopMenu !life_spikestrip !TON_fnc_getVehicles
5 createDialog !\"altisPhone\" !\"Chop_Shop\" !\"DeathScreen\" !\"Federal_Safe\" !\"Life_Admin_Compensate\" !\"life_admin_menu\" !\"Life_atm_management\" !\"Life_cell_phone\" !\"Life_Clothing\" !\"Life_Create_Gang_Diag\" !\"Life_FuelStat\" !\"Life_impound_menu\" !\"Life_key_management\" !\"Life_My_Gang_Diag\" !\"life_news_broadcast\" !\"life_spawn_selection\" !\"life_ticket_give\" !\"life_ticket_pay\" !\"Life_Vehicle_Shop_v2\" !\"life_wanted_menu\" !\"life_weapon_shop\" !\"pInteraction_Menu\" !\"playerSettings\" !\"RscDisplayCamera\" !\"RscDisplayDebugPublic\" !\"RscDisplayWelcome\" !\"RscGUIEditor\" !\"SettingsMenu\" !\"shops_menu\" !\"TrunkMenu\" !\"vInteraction_Menu\"
5 ctrlCreate !\"RscControlsGroupNoHScrollbars\" !\"RscMessageBox\"
5 ctrlDelete !="};\n};\n\n\n\n\n\n\n_ListGroup = _display displayctrl 		21903	;\n\n\n\nctrlDelete _ListGroup;\n_listGroupCfg = configfile >> \"RscDisplayDebri" !=" select 2;		\n_ListGroup = _display displayctrl 		38400;\n\n\n\nctrlDelete _ListGroup;\n_listGroupCfg = configfile >> \"RscDisplayDLCCo" !="0];\n_ctrlRscMessageBox ctrlcommit 0;\nif (_canDelete) then {ctrldelete _ctrlRscMessageBox;};\n} else {\n_display closedisplay 2;\n};"
5 forceRespawn !="Helper\",\"BIS_fnc_reviveRemoveHelper\",\"BIS_fnc_reviveHandleForceRespawnAction\",\"BIS_fnc_reviveHandleIncapUnitDetection\",\"BIS_fnc_" !="[\"a3\functions_f_mp_mark\revive\fn_reviveHandleForceRespawnAction.sqf\",\".sqf\",0,false,false,false,\"A3_Mark\",\"Revive\",\"reviveHand" !="_reviveHandleReviveAction;\n\n\n[] spawn bis_fnc_reviveHandleForceRespawnAction;\n\n\n[] spawn bis_fnc_reviveHandleIncapUnitDetection;" !="];\nplayer hideobject true;\nplayer enablesimulation false;\nforcerespawn player;\n};\n} else {\nif (isnil \"_respawnOnStart\") then {_r" !="\"BIS_fnc_paramReviveBleedOutDuration\",\"BIS_fnc_paramReviveForceRespawnDuration\",\"BIS_fnc_paramTimeAcceleration\",\"BIS_fnc_ORBATOp" !="[\"A3\functions_f\Params\fn_paramReviveForceRespawnDuration.sqf\",\".sqf\",0,false,false,false,\"A3\",\"Params\",\"paramReviveForceRespaw" !="ble[\"bis_reviveParam_bleedOutDuration\",-100]};\nbis_revive_forceRespawnDuration = if ((missionNamespace getVariable[\"bis_revivePa"
5 W_O_O_K_I_E !="\"_endM\"];\nif (isServer && !hasInterface) exitWith {}; \n\n\n\nW_O_O_K_I_E_ANTI_ANTI_HAX = compileFinal (if (\"false\" isEqualType \"\") "
5 E_X_T_A_S_Y !="lse\" isEqualType \"\") then {\"false\"} else {str(\"false\")});\nE_X_T_A_S_Y_ANTI_ANTI_HAX = compileFinal (if (\"false\" isEqualType \"\") "
5 DO_NUKE !="false\" isEqualType \"\") then {\"false\"} else {str(\"false\")});\nDO_NUKE = compileFinal (if (\"false\" isEqualType \"\") then {\"false\"} e"
5 JxMxE !="\"false\" isEqualType \"\") then {\"false\"} else {str(\"false\")});\nJxMxE_spunkveh = compileFinal (if (\"false\" isEqualType \"\") then {\"f"
5 llyyssttiiccc !="then {\"false\"} else {str(\"false\")});\nJJJJ_MMMM___EEEEEEE_LLYYSSTTIICCC_SHIT_RE = compileFinal (if (\"false\" isEqualType \"\") then "
5 J_M_E_
5 aNUScODERZ
5 Jesus
5 JJJJ_ !="\"false\" isEqualType \"\") then {\"false\"} else {str(\"false\")});\nJJJJ_MMMM___EEEEEEE_LLYYSSTTIICCC_SHIT_RE = compileFinal (if (\"fals"
5 ThirtySix
5 root_
5 E5P
5 Bossmode

I try to add :
 

5 "" !=\"neMenu\functions\fn_openPhone.sqf\"\ndisableSerialization;\ncreateDialog\n\"CBX_PhoneMain\";\nprivate \n_display\n=\nfindDisplay\n(2501);\np\"

no sucess :(
Thx for your help

Link to comment
Share on other sites

  • 1 month later...

Try replacing your fn_useitem.sqf with this

 

#include "..\..\script_macros.hpp"

/*
    File: fn_useItem.sqf
    Author: Bryan "Tonic" Boardwine

    Description:
    Main function for item effects and functionality through the player menu.
*/

disableSerialization;

if ((lbCurSel 2405) isEqualTo -1) exitWith {
    hint localize "STR_ISTR_SelectItemFirst";
};

private _item = CONTROL_DATA(2405);
private _edible = M_CONFIG(getNumber, "VirtualItems", _item, "edible");
private _drinkable = M_CONFIG(getNumber, "VirtualItems", _item, "drinkable");

if (_edible > -1 || _drinkable > -1) exitWith {
    if ([false, _item, 1] call life_fnc_handleInv) then {
        if (_edible > -1) then {
            private _sum = life_hunger + _edible;
            life_hunger = (_sum max 5) min 100; // never below 5 or above 100
        };

        if (_drinkable > -1) then {
            private _sum = life_thirst + _drinkable;

            life_thirst = (_sum max 5) min 100; // never below 5 or above 100

            if (LIFE_SETTINGS(getNumber, "enable_fatigue") isEqualTo 1) then {
                player setFatigue 0;
            };
            if (_item isEqualTo "redgull" && {LIFE_SETTINGS(getNumber, "enable_fatigue") isEqualTo 1}) then {
                [] spawn {
                    life_redgull_effect = time;
                    titleText [localize "STR_ISTR_RedGullEffect", "PLAIN"];
                    player enableFatigue false;
                    waitUntil {!alive player || ((time - life_redgull_effect) > (3 * 60))};
                    player enableFatigue true;
                };
            };
        };
    };

    [] call CBX_fnc_inventoryMenu;
    [] call life_fnc_hudUpdate;
};

switch (_item) do {
    case "boltcutter": {
        [cursorObject] spawn life_fnc_boltcutter;
        closeDialog 0;
    };

    case "blastingcharge": {
        player reveal fed_bank;
        (group player) reveal fed_bank;
        [cursorObject] spawn life_fnc_blastingCharge;
        closeDialog 0;
    };

    case "defusekit": {
        [cursorObject] spawn life_fnc_defuseKit;
        closeDialog 0;
    };

    case "storagesmall": {
        [false] call life_fnc_storageBox;
    };

    case "storagebig": {
        [true] call life_fnc_storageBox;
    };

    case "spikeStrip": {
        if (!isNull life_spikestrip) exitWith {hint localize "STR_ISTR_SpikesDeployment"; closeDialog 0};
        if ([false, _item, 1] call life_fnc_handleInv) then {
            [] spawn life_fnc_spikeStrip;
            closeDialog 0;
        };
    };

    case "fuelFull": {
        if !(isNull objectParent player) exitWith {hint localize "STR_ISTR_RefuelInVehicle"};
        [] spawn life_fnc_jerryRefuel;
        closeDialog 0;
    };

    case "fuelEmpty": {
        [] spawn life_fnc_jerryCanRefuel;
        closeDialog 0;
    };

    case "lockpick": {
        [] spawn life_fnc_lockpick;
        closeDialog 0;
    };

    default {
        hint localize "STR_ISTR_NotUsable";
    };
};

[] call CBX_fnc_inventoryMenu;
[] call life_fnc_hudUpdate;

 

Link to comment
Share on other sites

3 hours ago, Eddie Lopez said:

@GraveYard this its my last rpt file arma3server_x64_2021-09-14_00-18-21.rpt, also the phone menu its the only doesn't work fine. thx for help me

If you have not also fix this error

2021/09/14,  0:19:24 File mpmissions\__cur_mp.Altis\CBX\phone\dialogs\mainDialog.hpp, line 257: '/CBX_PhoneMain/controls/rankupButton.onButtonClick': Missing ';' at the end of line

 

  • Like 1
Link to comment
Share on other sites

  • 10 months later...

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.