creds
AllMoDS
offthewall
BluntStuffy
Step 1download this gsc put in raw\ui and replace the 1 that's there //back up old 1 if you like
[/center]
on line 69 you will see this
CHOICE_BIND( 33, "^3your button name here", "openScriptMenu AllMoDs_menu allmodsgscnotify", ; )
replace this
^3your button name here
the ^3 is for color of text
step 2add this to mod.csv
menufile,ui/options_shoot_pc.menu
step 3setting up the GSc to be notified of the button being pressed
you set with new button you set on the main menu in game // just click it in game on mane menu and push a button dont use already used buttons when you make your mod every player will need to set what ever buttons they want
will notified a gsc the same no matter what is picked
in gsc use this setup to pick up the new button being pressed and what you want in it and it can be looped
whatever()
{
self endon("disconnect");
for(;;)
{
self waittill("menuresponse",menu,response);
{
if(response == "allmodsgscnotify")
{
iprintlnbold("test new button "); // remove after testing
your code her
}
}
wait 0.05;
}
}
thats it all dun build your mod set button on main menu go in game test your new button out
if used cred all above in creds