TorNix~|nR Posted May 31, 2019 Share Posted May 31, 2019 Hello guys, I have a little problem that I want to solve I'm using topbar script with showing texts on the console I want to remove the hex colors like #ff0000, but I couldn't do it --[[ Display a DX topbar message ]]-- function dm(text, r,g,b, col, bell) -- Insert message local tick = getTickCount() if text == last_msg then return end if not col then col = false end if bell then playSoundFrontEnd(11) end table.insert(messages, {text, true, tick + display_time_ms, 170, r,g,b, col }) outputConsole("[TOPBAR] "..text) --this is the one last_msg = text setTimer(function() last_msg = "" end, 10000, 1) -- Play a message notification sound --playSoundFrontEnd(11) please any help? Link to comment
salh Posted May 31, 2019 Share Posted May 31, 2019 where the text? the text = /changepw to change your accoutn password? 1 Link to comment
TorNix~|nR Posted May 31, 2019 Author Share Posted May 31, 2019 (edited) I'm using exports of topbar (the script) exports.topbar:dm ( "Use #ff0000/changepw#ffffff to change your account password.", root, 0, 245, 82, true ) Edited May 31, 2019 by TorNix~|nR Link to comment
Moderators Patrick Posted May 31, 2019 Moderators Share Posted May 31, 2019 outputConsole("[TOPBAR] "..text:gsub("#%x%x%x%x%x%x","")) --this is the one 1 Link to comment
TorNix~|nR Posted May 31, 2019 Author Share Posted May 31, 2019 It's working, thank you so much 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