VatanTC 0 Posted May 6, 2020 Report Share Posted May 6, 2020 On 1/7/2020 at 4:28 AM, GraveYard said: Inside functions.sqf replace //To One Person Reveal hidden contents //To One Person TON_fnc_cell_textmsg = compileFinal " private [""_msg"",""_to""]; ctrlShow[2401,false]; _msg = ctrlText 2400; _length = count (toArray(_msg)); if (_length > 400) exitWith {hint localize ""STR_CELLMSG_LIMITEXCEEDED"";ctrlShow[2401,true];}; if (lbCurSel 3004 isEqualTo -1) exitWith {hint localize ""STR_CELLMSG_SelectPerson""; ctrlShow[2401,true];}; _to = call compile format [""%1"",(lbData[3004,(lbCurSel 3004)])]; if (isNull _to) exitWith {ctrlShow[2401,true];}; if (isNil ""_to"") exitWith {ctrlShow[2401,true];}; if (_msg isEqualTo """") exitWith {hint localize ""STR_CELLMSG_EnterMSG"";ctrlShow[2401,true];}; [_msg,name player,0] remoteExecCall [""TON_fnc_clientMessage"",_to]; [] call life_fnc_cellphone; hint format [localize ""STR_CELLMSG_ToPerson"",name _to,_msg]; ctrlShow[2401,true]; "; Replace fn_cellphone.sqf Reveal hidden contents #include "..\..\script_macros.hpp" /* File: fn_cellphone.sqf Author: Alan Description: Opens the cellphone menu? */ private ["_display","_units","_type"]; disableSerialization; waitUntil {!isNull findDisplay 2502}; _display = findDisplay 2502; _units = _display displayCtrl 3004; ctrlSetText [2400, ""]; lbClear _units; if (FETCH_CONST(life_adminlevel) < 1) then { ctrlShow[2406,false]; ctrlShow[2407,false]; }; { if (alive _x && !(_x isEqualTo player)) then { _type = switch (side _x) do { case west: {"Cop"}; case civilian: {"Civ"}; case independent: {"Med"}; }; _units lbAdd format ["%1 (%2)",_x getVariable ["realname",name _x],_type]; _units lbSetData [(lbSize _units)-1,str(_x)]; }; } forEach playableUnits; lbSetCurSel [3004,0]; Then replace phone.hpp phone.hpp 3.27 kB · 15 downloads I did all the instructions step by step. Now the player names show up but even if I choose the player, it still says "You must select a player you are sending the text to!" Quote Link to post Share on other sites
GraveYard 41 Posted May 8, 2020 Report Share Posted May 8, 2020 (edited) Inside CBX\phone\dialogs\phone.hpp Inside find class playerscombo: Life_RscCombo { idc = 2100; x = 0.496906 * safezoneW + safezoneX; y = 0.291 * safezoneH + safezoneY; w = 0.0680624 * safezoneW; h = 0.022 * safezoneH; }; And change to class playerscombo: Life_RscCombo { idc = 3004; x = 0.496906 * safezoneW + safezoneX; y = 0.291 * safezoneH + safezoneY; w = 0.0680624 * safezoneW; h = 0.022 * safezoneH; }; @VatanTC Edited May 8, 2020 by GraveYard Quote Link to post Share on other sites
VatanTC 0 Posted May 8, 2020 Report Share Posted May 8, 2020 3 hours ago, GraveYard said: Inside CBX\phone\dialogs\phone.hpp Inside find class playerscombo: Life_RscCombo { idc = 2100; x = 0.496906 * safezoneW + safezoneX; y = 0.291 * safezoneH + safezoneY; w = 0.0680624 * safezoneW; h = 0.022 * safezoneH; }; And change to class playerscombo: Life_RscCombo { idc = 3004; x = 0.496906 * safezoneW + safezoneX; y = 0.291 * safezoneH + safezoneY; w = 0.0680624 * safezoneW; h = 0.022 * safezoneH; }; @VatanTC It is already like that. It is already 3004. Quote Link to post Share on other sites
GraveYard 41 Posted May 8, 2020 Report Share Posted May 8, 2020 I'll throw it up on a test server in a few and see whats up. Quote Link to post Share on other sites
VatanTC 0 Posted May 8, 2020 Report Share Posted May 8, 2020 21 minutes ago, GraveYard said: I'll throw it up on a test server in a few and see whats up. Okay thank you, I will wait. Quote Link to post Share on other sites
Eject 0 Posted June 6, 2020 Report Share Posted June 6, 2020 Why CBXCfgRemoteExec.hpp file in the RAR archive empty?! Quote Link to post Share on other sites
Enrah 3 Posted June 19, 2020 Report Share Posted June 19, 2020 On 6/6/2020 at 5:11 PM, Eject said: Why CBXCfgRemoteExec.hpp file in the RAR archive empty?! Make sure that the CBXCfgRemoteExec.hpp is inside your Alits_Life.Altis pbo file just like hhow the screenshot below has it, must be outside the CBX folder not inside it https://gyazo.com/d2ff56cc69a73a2dff67daa858560d46 Quote Link to post Share on other sites
Enrah 3 Posted June 19, 2020 Report Share Posted June 19, 2020 @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/ Quote Link to post Share on other sites
SeCTioN 0 Posted June 22, 2020 Report Share Posted June 22, 2020 It works perfectly for us. Thank you! Quote Link to post Share on other sites
Enrah 3 Posted August 20, 2020 Report Share Posted August 20, 2020 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? Quote Link to post Share on other sites
amorelliku 0 Posted February 16 Report Share Posted February 16 Download links are broken. Quote Link to post Share on other sites
CubeX 79 Posted February 16 Author Report Share Posted February 16 3 minutes ago, amorelliku said: Download links are broken. Are you sure? I just tried them and everything works fine, might be your antivirus. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.