(adsbygoogle = window.adsbygoogle || []).push({});
So I had this idea to setup mod menus from dvars. Now this is possible but you'll have to configure it to work with your menu base. I wrote up a quick psuedo code for an example how to use it. (or how you would use it).
In Your GSC:
You must login or register to view this content.
In Your Config File On USB:
set menu_conf "main,exit,0[|]submenu,main,1[|]submenu_2,main,2";
set opts_conf "main,0,SubMenu,::SubMenu[|]main,1,SubMenu 2,::SubMenu[|]submenu,0,GodMode,::doGod[|]submenu_2,0,UFO,::doUFO";
Oh and you will obviously execute the usb cfg via the following:
exec "../../../../dev_usb000/conf.cfg"
Now the idea here is you could add menus to your mod menu and only it only reads the hosts config. So you can setup the way your menu is arranged without having to switch the patch around, or hell even adjust the way other people in the menu want to set it up.
Add Menus By:
menuid, parent, menunum
and for multiple menus add the seperator "[|]"
To Add Menu Opts:
menuid, option pos, option name, option func
and for multiple opts add the seperator "[|]"