Jump to content
  • 0

Default speedbar for Race Gamemode removal?


Xeforine

Question

6 answers to this question

Recommended Posts

  • 0

Actually, I'm having a hard time getting this to work.

Currently i tried this code:

function hudChanger () 
    showPlayerHudComponent ( source, "all", false )    -- Hide the radar displays for the newly joined player 
end 
-- Make our hudChanger function called when the player joins 
addEventHandler ( "onPlayerJoin", getRootElement(), hudChanger ) 

and this code

function () 
    showPlayerHudComponent ("radar", false ) 
end 
  
addEventHandler("onClientRender", getRootElement(), 

But neither seem to work.

Anyone able to help me get rid of the radar, healthbar and speedbar?

Edited by Guest
Link to comment
  • 0

try this:

addEventHandler ( "onClientResourceStart", resourceRoot,function() 
    showPlayerHudComponent ("all", false ) 
end) 

and this:

addEventHandler("onClientResourceStart",resourceRoot,function() 
    showPlayerHudComponent("radar", false ) 
end) 

Link to comment
  • 0

Didn't work, but i found out why.

You have to edit the default race_client.lua in resources\[gamemode]\[race]

And edit line 247:

showGUIComponents( 'healthbar', 'speedbar', 'timepassed') 
hideGUIComponents('timeleftbg', 'timeleft' ) 

to

hideGUIComponents('timeleftbg', 'timeleft' , 'healthbar', 'speedbar', 'timepassed') 

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