Jump to content
Sign in to follow this  
DeathF0X

CBA Flexi Menu

Recommended Posts

Hey,

can someone post me a example of the CBA flexi menu with sub entries, i after hours of try and error i get a level 1 self interaction menu working. Yes i already read this . The explanation there is not really good.

And if possible also with item interaction, when i bind the menu to a object.

ATM im @work, when im home i will post my menu code.

I need it for my random mission generation, request and abort mission.

Phil

Share this post


Link to post
Share on other sites

My code:

if( (typeOf player == "BWA3_TL_Tropen" ) OR (  _uid in _uidArrray  )  OR (_uid  == "_SP_PLAYER_") )then{
   ["player", [0x0F], -66, ["client\menu\menu.sqf", "main"]] call CBA_ui_fnc_add;
};

_menu = [
["main", "DEV MENU", "popup"],
   [
  	 ["Teleport",{[player] call fncLib_teleport;}] , 
    ["Neutral",{[player] call fncLib_captive;}],
    ["Neue Mission",{[] call zp_requestMissionServer;}],
    ["Clean City",{["clean_village"] call zp_requestMissionServer;}],
    ["Destroy Chaches",{["chaches"] call zp_requestMissionServer;}],
    ["Kill HVT",{["hvt"] call zp_requestMissionServer;}] 
]
];

_menu

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×