hank Posted March 15, 2012 Share Posted March 15, 2012 How to make invisible/disable the game money? The $ 0000000 in the right corner. Link to comment
Moderators IIYAMA Posted March 15, 2012 Moderators Share Posted March 15, 2012 showPlayerHudComponent ("money", false) Link to comment
hank Posted March 15, 2012 Author Share Posted March 15, 2012 Thank you.. Now desabilitar wanted caracters like # FFFF11 name. Link to comment
Castillo Posted March 15, 2012 Share 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!" ) ) Link to comment
hank Posted March 15, 2012 Author Share Posted March 15, 2012 Thanks again. One more question, how to disable the command / nick. Link to comment
drk Posted March 15, 2012 Share Posted March 15, 2012 I think it's impossible because it's a built-in mta:sa function ( idk ) Link to comment
Castillo Posted March 15, 2012 Share Posted March 15, 2012 You can cancel the event handler: onPlayerChangeNick Link to comment
drk Posted March 15, 2012 Share 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? Link to comment
Castillo Posted March 15, 2012 Share Posted March 15, 2012 The nick will change, but only after you join the server again. Link to comment
hank Posted March 16, 2012 Author Share Posted March 16, 2012 Beauty, thanks to all. OnOlayerChangeNick used and it worked (locked command). Link to comment
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