Xeforine Posted April 28, 2012 Share Posted April 28, 2012 Like title topic says Anyone know how to remove the default speedbar and healthbar when playing the default race gamemode? Link to comment
0 Jaysds1 Posted April 28, 2012 Share Posted April 28, 2012 These are the only things you can do on your MTA Client: Console_Commands_and_CVars Link to comment
0 Xeforine Posted April 28, 2012 Author Share Posted April 28, 2012 Oh i meant as server owner, but i think i figured something out with this https://wiki.multitheftauto.com/wiki/Sho ... dComponent Link to comment
0 Jaysds1 Posted April 28, 2012 Share Posted April 28, 2012 Oh i meant as server owner, but i think i figured something out with thishttps://wiki.multitheftauto.com/wiki/Sho ... dComponent Ya, that's correct Link to comment
0 Xeforine Posted April 28, 2012 Author Share Posted April 28, 2012 (edited) 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 April 28, 2012 by Guest Link to comment
0 Jaysds1 Posted April 28, 2012 Share Posted April 28, 2012 try this: addEventHandler ( "onClientResourceStart", resourceRoot,function() showPlayerHudComponent ("all", false ) end) and this: addEventHandler("onClientResourceStart",resourceRoot,function() showPlayerHudComponent("radar", false ) end) Link to comment
0 Xeforine Posted April 28, 2012 Author Share Posted April 28, 2012 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
Question
Xeforine
Like title topic says
Anyone know how to remove the default speedbar and healthbar when playing the default race gamemode?
Link to comment
6 answers to this question
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now