hank Posted March 15, 2012 Posted March 15, 2012 How to make invisible/disable the game money? The $ 0000000 in the right corner.
Moderators IIYAMA Posted March 15, 2012 Moderators Posted March 15, 2012 showPlayerHudComponent ("money", false)
hank Posted March 15, 2012 Author Posted March 15, 2012 Thank you.. Now desabilitar wanted caracters like # FFFF11 name.
Castillo Posted March 15, 2012 Posted March 15, 2012 You want to remove HEX colors from a string? if so use this: function removeHEXFromString ( theString ) if ( theString and type ( theString ) == "string" ) then return theString:gsub ( "#%x%x%x%x%x%x", "" ) end end Example: outputChatBox ( removeHEXFromString ( "#00FF00Hello #FF0000World!" ) )
hank Posted March 15, 2012 Author Posted March 15, 2012 Thanks again. One more question, how to disable the command / nick.
drk Posted March 15, 2012 Posted March 15, 2012 I think it's impossible because it's a built-in mta:sa function ( idk )
Castillo Posted March 15, 2012 Posted March 15, 2012 You can cancel the event handler: onPlayerChangeNick
drk Posted March 15, 2012 Posted March 15, 2012 But when you are in the server, you will can't change the nick by the MTA:SA settings canceling the event "onPlayerChangeNick", or can?
Castillo Posted March 15, 2012 Posted March 15, 2012 The nick will change, but only after you join the server again.
hank Posted March 16, 2012 Author Posted March 16, 2012 Beauty, thanks to all. OnOlayerChangeNick used and it worked (locked command).
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