Autoload Scripts Tutorial

  • Hello Guest! Welcome to ConsoleCrunch, to help support our site check out the premium upgrades HERE! to get exclusive access to our hidden content.
  • Unable to load portions of the website...
    If you use an ad blocker addon, you should disable it because it interferes with several elements of the site and blocks more than just adverts.
  • Read Rules Before Posting Post Virus Scans with every program.

SwizzyPlays

Active Poster
CC Dev Team
Active Member
Sep 16, 2015
350
268
123
Hello guys here is a quick tut on how to make "Mod Settings" or auto loads for your menu! A couple days ago I couldn't figure out how to do but I eventually figured it out!

AUTO LOADS SCO'S TUTORIAL
This is a simple auto loader that you could perfect if you wanted! I am not that good at coding lol so this was useful to me!

How to set the autoload function
void godmodescript(void)
{
if (GET_NUMBER_OF_INSTANCES_OF_STREAMED_SCRIPT("godmode_uclip") == 0)
{
REQUEST_SCRIPT("godmode_uclip");
//name of sco. Example used here: godmode_uclip
while (!HAS_SCRIPT_LOADED("godmode_uclip"))
WAIT(0);

START_NEW_SCRIPT("godmode_uclip", 1024);
MARK_SCRIPT_AS_NO_LONGER_NEEDED("godmode_uclip");
}
}

Where to call the function(main)
void main(void)
{

protections_load();
godmodescript();
//Where the function is called, I have other set as above & below!
NETWORK_GHOST();
loadmod();
menu_core_startup();
draw_startup();
disablemenuinpause();

while(true)
{
WAIT(0);

if (!IS_STRING_NULL(load_script) && !script_loaded)
load_script_prioritized();

// Core menu function (Catch button press. Set menu).
if (IS_STRING_NULL(load_script))
menu_core();

// Draw background/header/text.
drawWindow();
//drawwindow2();

// Draw button input.
drawFrontend();

drawHeader();
//drawHeader2();
//drawFoot();
//drawFoot2();
menu_draw();

DESTROY_MOBILE_PHONE();

TERMINATE_ALL_SCRIPTS_WITH_THIS_NAME("disablemenu");
HIDE_HELP_TEXT_THIS_FRAME();
HIDE_HUD_AND_RADAR_THIS_FRAME();
}
}



Hope this helped someone! One thing that this does cause is that everytime you open your menu up the sco's reload. Other than that its good!
 
  • Like
Reactions: Devilsdesign
General chit-chat
Help Users
  • @ QM|T_JinX:
    tc brother if there is somthing just text
  • @ ANGUS0023233:
    Been awhile
  • @ QM|T_JinX:
    sup bro
  • @ ANGUS0023233:
    Do you got BF6 jinx?
  • @ QM|T_JinX:
    no i dont
  • @ QM|T_JinX:
    kept Diein to that f%cking game haha
  • @ QM|T_JinX:
    not sure if i type that correct haha i died alot on that game in beta
  • @ ANGUS0023233:
    Ah you tried playing the Battlefield 6 alpha labs beta. I only played the Alpha Beta then Open beta then the game itself since i enjoyed it all lot
  • @ QM|T_JinX:
    it a good lookin game for sure but im not as good anymore in that game haha
    so it seems hahah
  • @ lurch6661:
    high
  • @ QM|T_JinX:
    high
  • @ QM|T_JinX:
    bro im not on messager ok if im online on there ppl start to message me dont feel like going on and on on text
  • @ lurch6661:
    ok bro
  • @ QM|T_JinX:
    nothing agains you you know that right just dont feel like answer all those text the hole time
  • @ lurch6661:
    i understand trust m e lol
  • @ QM|T_JinX:
    by the way i unlocked the gold camo on bo7 looks pretty cool hahah
  • @ lurch6661:
    lol
  • @ ANGUS0023233:
    Jinx do you got PSN ?
  • @ QM|T_JinX:
    yea i do
  • @ QM|T_JinX:
    my gf is coming over i check you guys later on tc guys
  • @ lurch6661:
    ok bro tc
  • @ ANGUS0023233:
    Wow bunch of my links and such are gone i’ll have to look into it and try to fix it or update it anyways take care lurch and jinx
  • @ QM|T_JinX:
    t bro good to see you back on here catch you guys later
  • Chat Bot:
    QM|T_JinX has joined the room.
      Chat Bot: QM|T_JinX has joined the room.