Jump to content

Removing HUD While Spectating


Robbster

Recommended Posts

He's talking about the interface of lil toady's spectator admin panel.

You can add this:

function aSpectator.CloseInterface ( ) 
    if ( isElement ( aSpectator.Actions ) ) then 
        guiSetVisible ( aSpectator.Actions, false ) 
    end 
  
    if ( isElement ( aSpectator.Players ) ) then 
        guiSetVisible ( aSpectator.Players, false ) 
    end 
  
    if ( isElement ( aSpectator.Next ) ) then 
        guiSetVisible ( aSpectator.Next, false ) 
    end 
  
    if ( isElement ( aSpectator.Prev ) ) then 
        guiSetVisible ( aSpectator.Prev, false ) 
    end 
  
    showCursor ( false ) 
end 

to: "admin/client/gui/admin_spectator.lua"

And then execute it however you want.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...