Jump to content

Hide Hud


Sil3nT

Recommended Posts

And its on client side and looks like this?

function show ()

showPlayerHudComponent(all,false)

end

addEventHandler("onClientResourceStart",getResourceRootElement(getThisResource)),(show)

Edited by Guest
Link to comment
And yeah, btw.

I test that custom HUD on my private server and its replacing the orginal one, but on my hosted Server it isnt. Why that?

Ands host server is same as Private server!

Easy because

"onPlayerJoin" 

is server side and you use the

showPlayerHudComponent 

like Client side so here is the Correct code:

function hudChanger () 
showPlayerHudComponent( source, "all", false ) 
end 
addEventHandler ( "onPlayerJoin", getRootElement(), hudChanger ) 

The final Code is Server-side

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