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) Do you want to improve your Lua programming skills and make less mistakes? Start with Lua Language Server! Useful functions 3x Spoiler checkPassiveTimer getScreenStartPositionFromBox getPedGender Tutorials 4x Spoiler Scaling DX Events Attach an addEventHandler on a group of elements Debugging
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!" ) ) San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
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 ) EPT Team Server Development: 0% Learning C++ | C++ is amazing
Castillo Posted March 15, 2012 Posted March 15, 2012 You can cancel the event handler: onPlayerChangeNick San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
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? EPT Team Server Development: 0% Learning C++ | C++ is amazing
Castillo Posted March 15, 2012 Posted March 15, 2012 The nick will change, but only after you join the server again. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
hank Posted March 16, 2012 Author Posted March 16, 2012 Beauty, thanks to all. OnOlayerChangeNick used and it worked (locked command).
Castillo Posted March 16, 2012 Posted March 16, 2012 You're welcome. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
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