Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Donate
Collapse

Plutonium

  1. Home
  2. BO2 Modding Support & Discussion
  3. Is there a way to turn off HUD in bo2 zm?

Is there a way to turn off HUD in bo2 zm?

Scheduled Pinned Locked Moved BO2 Modding Support & Discussion
bo2helpzombies
16 Posts 8 Posters 2.5k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • undefined Offline
    undefined Offline
    t38
    wrote on Apr 21, 2022, 3:28 PM last edited by
    #1

    Quite ashamed to ask for such a simple thing. It took me way too long to find nothing, so I turn to you guys for assistance. There has not been a single dvar that has worked for me so far. Any suggestions?

    undefined 1 Reply Last reply Apr 22, 2022, 2:51 AM
    0
    • undefined Offline
      undefined Offline
      JezuzLizard Plutonium Staff
      replied to t38 on Apr 22, 2022, 2:51 AM last edited by
      #2

      t38 You can do this with a GSC script.

      #include maps\mp\_utility;
      #include common_scripts\utility;
      
      main()
      {
      	level thread toggle_hud()();
      }
      
      toggle_hud()
      {
      	while ( true )
      	{
      		level waittill( "say", message, player, isHidden );
      		if ( message == "tog_hud" && isHidden )
      		{
      			if ( !is_true( player.hud_disabled ) )
      			{
      				player.hud_disabled = true;
      				player setclientuivisibilityflag( "hud_visible", 0 );
      			}
      			else 
      			{
      				player.hud_disabled = false;
      				player setclientuivisibilityflag( "hud_visible", 1 );
      
      			}
      		}
      	}
      

      Compile and place in t6/scripts and while in game bind a key to "say /tog_hud".

      undefined 1 Reply Last reply Apr 23, 2022, 1:55 PM
      2
      • undefined Offline
        undefined Offline
        t38
        replied to JezuzLizard on Apr 23, 2022, 1:55 PM last edited by
        #3

        JezuzLizard Thanks for the help dude. I just had to remove the second brackets after toggle_hud for the script to compile.

        It seems like the crosshair doesn't count as a hud element. Not a problem for me, cg_drawCrosshair 0 does the trick.🦄

        1 Reply Last reply
        0
        • undefined Offline
          undefined Offline
          NathanielKD
          wrote on Dec 5, 2022, 1:33 AM last edited by
          #4

          hello Both, Sorry to be a massive pain but I was wondering if you guys could help me with this? I'm completely new to this & have no idea where to paste this script to get the no hud, I know this is the most basic thing ever but I've never used a console or mod menu & Don't know what I'm doing at all. If either of you could help a complete beginner set this up It would be massively appreciated. Many thanks xo

          undefined 1 Reply Last reply Dec 5, 2022, 2:59 PM
          0
          • undefined Offline
            undefined Offline
            chicken emoji
            replied to NathanielKD on Dec 5, 2022, 2:59 PM last edited by
            #5

            NathanielKD You create a text document, copy paste the code and then follow this tutorial https://plutonium.pw/docs/modding/loading-mods/. also change

            level thread toggle_hud()();
            

            to

            level thread toggle_hud();
            

            before you compile the file

            undefined 2 Replies Last reply Dec 5, 2022, 3:05 PM
            2
            • undefined Offline
              undefined Offline
              NathanielKD
              replied to chicken emoji on Dec 5, 2022, 3:05 PM last edited by
              #6

              chicken emoji Thank You So Much!

              1 Reply Last reply
              0
              • undefined Offline
                undefined Offline
                NathanielKD
                replied to chicken emoji on Dec 5, 2022, 3:44 PM last edited by
                #7

                chicken emoji Sorry again, I keep getting 'Bad syntax in line 27' when I try to compile. Is it because I'm using txt? Again I'm so sorry for what is probably the most basic of things. I just want to make some cinematic footage of Mob Of The Dead.

                undefined undefined 2 Replies Last reply Dec 5, 2022, 4:11 PM
                0
                • undefined Offline
                  undefined Offline
                  chicken emoji
                  replied to NathanielKD on Dec 5, 2022, 4:11 PM last edited by
                  #8

                  NathanielKD it was missing a bracket actually

                  #include maps\mp\_utility;
                  #include common_scripts\utility;
                  
                  main()
                  {
                  	level thread toggle_hud();
                  }
                  
                  toggle_hud()
                  {
                  	while ( true )
                  	{
                  		level waittill( "say", message, player, isHidden );
                  		if ( message == "tog_hud" && isHidden )
                  		{
                  			if ( !is_true( player.hud_disabled ) )
                  			{
                  				player.hud_disabled = true;
                  				player setclientuivisibilityflag( "hud_visible", 0 );
                  			}
                  			else 
                  			{
                  				player.hud_disabled = false;
                  				player setclientuivisibilityflag( "hud_visible", 1 );
                  
                  			}
                  		}
                  	}
                  }
                  

                  this should be a working version

                  undefined 1 Reply Last reply Dec 5, 2022, 4:23 PM
                  1
                  • undefined Offline
                    undefined Offline
                    NathanielKD
                    replied to NathanielKD on Dec 5, 2022, 4:12 PM last edited by
                    #9
                    This post is deleted!
                    1 Reply Last reply
                    0
                    • undefined Offline
                      undefined Offline
                      NathanielKD
                      replied to chicken emoji on Dec 5, 2022, 4:23 PM last edited by
                      #10

                      chicken emoji YOU ARE THE G.O.A.T. !

                      Thank You!!! So Much!!! Dude, you're my hero!

                      1 Reply Last reply
                      0
                      • Green_Fox3undefined Offline
                        Green_Fox3undefined Offline
                        Green_Fox3
                        wrote on Sep 13, 2023, 4:53 PM last edited by Green_Fox3 Sep 13, 2023, 7:54 PM
                        #11

                        Hello guys, After nearly i year
                        So I installed the script correctly cuz it had an error first then I saw the fixed one
                        but I don't know which one to run it
                        cg_drawCrosshair 0
                        hud_visible 0
                        neither did work
                        I think my console doesn't work, any idea how to fix it?

                        1 Reply Last reply
                        0
                        • Xerxesundefined Offline
                          Xerxesundefined Offline
                          Xerxes Plutonium Staff
                          wrote on Sep 13, 2023, 5:31 PM last edited by Xerxes Sep 13, 2023, 8:32 PM
                          #12

                          Green_Fox3 said in Is there a way to turn off HUD in bo2 zm?:

                          but I don't know which one to run it

                          Neither, if you look at the code its using the text chat.

                          Green_Fox3 said in Is there a way to turn off HUD in bo2 zm?:

                          I think my console doesn't work, any idea how to fix it?

                          There is nothing to fix, you need to say tog_hud in the text chat in-game.

                          Green_Fox3undefined 1 Reply Last reply Sep 13, 2023, 9:01 PM
                          0
                          • Green_Fox3undefined Offline
                            Green_Fox3undefined Offline
                            Green_Fox3
                            replied to Xerxes on Sep 13, 2023, 9:01 PM last edited by
                            #13

                            Xerxes WONDERFULL, thx for the fast reply and yeah it is working now

                            1 Reply Last reply
                            0
                            • undefined Offline
                              undefined Offline
                              ASinglePeach
                              wrote on Sep 19, 2023, 9:38 PM last edited by
                              #14

                              It just does not wanna work for me unfortunately, I followed the instructions exactly, yet no luck. Is there any way to help me solve this? Thank you!

                              knockelundefined 1 Reply Last reply Jul 7, 2024, 10:25 PM
                              0
                              • knockelundefined Offline
                                knockelundefined Offline
                                knockel
                                replied to ASinglePeach on Jul 7, 2024, 10:25 PM last edited by
                                #15

                                ASinglePeach Same.

                                1 Reply Last reply
                                0
                                • knockelundefined Offline
                                  knockelundefined Offline
                                  knockel
                                  wrote on Jul 7, 2024, 10:53 PM last edited by
                                  #16

                                  image.png

                                  I have an OLED and all these Servers have horrible static UI.
                                  I just want to disable all HUD-Elements completely... sadly above script didnt work.

                                  1 Reply Last reply
                                  0

                                  • Login

                                  • Don't have an account? Register

                                  • Login or register to search.
                                  • First post
                                    Last post
                                  0
                                  • Recent
                                  • Tags
                                  • Popular
                                  • Users
                                  • Groups
                                  • Donate