Jump to content

[Help] Game money


hank

Recommended Posts

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

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