Jump to content

Recommended Posts

Hello I'm making NPC follower for a mod and he's able to talk with his owner in chat by using

ThePlayer.HUD.controls.networkchatqueue:PushMessage(inst.name, "Hello", {255/255, 255/255, 255/255}, true, nil)

though the "default" profile flair doesn't show up when I use the to send a message even when I put "default" at the end of this PushMessage function which's supposed to be the area for the name of the profile flair.

Does anyone know how I can get at least the default profile flair to show or even put a custom one for my npc?

 

Thanks for reading and any help :D!

Edited by . . .
ChatQueue:PushMessage(username, message, colour, whisper, nolabel, profileflair)

self.chat_queue_data[CHAT_QUEUE_SIZE].nolabel = nolabel

local row_data = self.chat_queue_data[i]

if row_data.nolabel then
	flair:Hide()
else
	flair:Show()
	flair:SetFlair(row_data.profileflair)
	flair:SetAlpha(alpha_fade)
 end

This sums up all you need to know.

The fifth argument is nolabel, you set it to true. When the widget is refreshed, it checks if nolabel is true and if it's true, it hides the flair.

So just set it to nil or false and it should work ;)

  • Thanks 1

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
×
  • Create New...