Skip to content
  • 0 Unread 0
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
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
17 Posts 9 Posters 6.8k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • t38undefined Offline
    t38undefined Offline
    t38
    wrote on 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?

    JezuzLizardundefined 1 Reply Last reply
    0
    • t38undefined t38

      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?

      JezuzLizardundefined Offline
      JezuzLizardundefined Offline
      JezuzLizard
      Plutonium Staff
      wrote on 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".

      t38undefined KontoLetzPlayundefined 2 Replies Last reply
      2
      • JezuzLizardundefined JezuzLizard

        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".

        t38undefined Offline
        t38undefined Offline
        t38
        wrote on 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
        • NathanielKDundefined Offline
          NathanielKDundefined Offline
          NathanielKD
          wrote on 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

          chicken emojiundefined 1 Reply Last reply
          0
          • NathanielKDundefined NathanielKD

            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

            chicken emojiundefined Offline
            chicken emojiundefined Offline
            chicken emoji
            wrote on 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

            NathanielKDundefined 2 Replies Last reply
            2
            • chicken emojiundefined chicken emoji

              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

              NathanielKDundefined Offline
              NathanielKDundefined Offline
              NathanielKD
              wrote on last edited by
              #6

              chicken emoji Thank You So Much!

              1 Reply Last reply
              0
              • chicken emojiundefined chicken emoji

                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

                NathanielKDundefined Offline
                NathanielKDundefined Offline
                NathanielKD
                wrote on 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.

                chicken emojiundefined NathanielKDundefined 2 Replies Last reply
                0
                • NathanielKDundefined NathanielKD

                  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.

                  chicken emojiundefined Offline
                  chicken emojiundefined Offline
                  chicken emoji
                  wrote on 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

                  NathanielKDundefined 1 Reply Last reply
                  1
                  • NathanielKDundefined NathanielKD

                    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.

                    NathanielKDundefined Offline
                    NathanielKDundefined Offline
                    NathanielKD
                    wrote on last edited by
                    #9
                    This post is deleted!
                    1 Reply Last reply
                    0
                    • chicken emojiundefined chicken emoji

                      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

                      NathanielKDundefined Offline
                      NathanielKDundefined Offline
                      NathanielKD
                      wrote on 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 last edited by Green_Fox3
                        #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 last edited by Xerxes
                          #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
                          0
                          • Xerxesundefined Xerxes

                            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 Offline
                            Green_Fox3undefined Offline
                            Green_Fox3
                            wrote on last edited by
                            #13

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

                            1 Reply Last reply
                            0
                            • ASinglePeachundefined Offline
                              ASinglePeachundefined Offline
                              ASinglePeach
                              wrote on 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
                              0
                              • ASinglePeachundefined ASinglePeach

                                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 Offline
                                knockelundefined Offline
                                knockel
                                wrote on last edited by
                                #15

                                ASinglePeach Same.

                                1 Reply Last reply
                                0
                                • knockelundefined Offline
                                  knockelundefined Offline
                                  knockel
                                  wrote on 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
                                  • JezuzLizardundefined JezuzLizard

                                    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".

                                    KontoLetzPlayundefined Offline
                                    KontoLetzPlayundefined Offline
                                    KontoLetzPlay
                                    wrote on last edited by
                                    #17

                                    JezuzLizard Not to annoyingly revive this long dead thread... but can I ask what "isHidden" is relating to here?

                                    I was trying to figure it out for a while now, because this function wasn't working for me at first, but I found out it's because "isHidden" was always returning as false / 0 and basically prevented any of the function to actually execute.
                                    I fixed it by removing "isHidden" but I was really curious to find out what it actually is.

                                    1 Reply Last reply
                                    1

                                    Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                    Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                    With your input, this post could be even better 💗

                                    Register Login
                                    Reply
                                    • Reply as topic
                                    Log in to reply
                                    • Oldest to Newest
                                    • Newest to Oldest
                                    • Most Votes


                                    • Login

                                    • Don't have an account? Register

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