Xeforine Posted April 28, 2012 Posted April 28, 2012 Like title topic says Anyone know how to remove the default speedbar and healthbar when playing the default race gamemode?
0 Jaysds1 Posted April 28, 2012 Posted April 28, 2012 These are the only things you can do on your MTA Client: Console_Commands_and_CVars
0 Xeforine Posted April 28, 2012 Author 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
0 Jaysds1 Posted April 28, 2012 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
0 Xeforine Posted April 28, 2012 Author 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
0 Jaysds1 Posted April 28, 2012 Posted April 28, 2012 try this: addEventHandler ( "onClientResourceStart", resourceRoot,function() showPlayerHudComponent ("all", false ) end) and this: addEventHandler("onClientResourceStart",resourceRoot,function() showPlayerHudComponent("radar", false ) end)
0 Xeforine Posted April 28, 2012 Author 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')
Question
Xeforine
Like title topic says
Anyone know how to remove the default speedbar and healthbar when playing the default race gamemode?
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