TorNix~|nR Posted May 31, 2019 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?
salh Posted May 31, 2019 Posted May 31, 2019 where the text? the text = /changepw to change your accoutn password? 1
TorNix~|nR Posted May 31, 2019 Author 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
Moderators Patrick Posted May 31, 2019 Moderators Posted May 31, 2019 outputConsole("[TOPBAR] "..text:gsub("#%x%x%x%x%x%x","")) --this is the one 1
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