Sign in to follow this  


Recommended Posts

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


please any help?

Share this post

Link to post

where the text?

the text  =  /changepw to change your accoutn password?

  • Like 1

Share this post

Link to post

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 by TorNix~|nR

Share this post

Link to post
outputConsole("[TOPBAR] "..text:gsub("#%x%x%x%x%x%x","")) --this is the one


  • Thanks 1

Share this post

Link to post

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.