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!" ) )
Creating your own chat box won't be so easy, you'll need to learn Lua scripting.
https://wiki.multitheftauto.com/wiki/Scr ... troduction
https://wiki.multitheftauto.com/wiki/Int ... ng_the_GUI
http://www.lua.org/pil/index.html
http://lua-users.org/wiki/TutorialDirectory