Jump to content

outputConsole


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
	--playSoundFrontEnd(11)

test.png

please any help?

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