Jump to content
  • 0

Default speedbar for Race Gamemode removal?


Xeforine

Question

6 answers to this question

Recommended Posts

  • 0
Posted (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 by Guest
  • 0
Posted

try this:

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

and this:

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

My in-game name: Jaysds1

Retired CMG Scripter

World Of Tanks GameMode (Open-Source): https://github.com/Jaysds1/mtasa-wot-gamemode

Online GUI-Editor (WIP): https://forum.mtasa.com/topic/47678-online-gui-editor/

 

sE5Qm.png

TiV3C.png

img.php?id=0&text=Lua%20Scripter

  • 0
Posted

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') 

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