. . . Posted September 8, 2021 Share Posted September 8, 2021 (edited) 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 ! Edited September 8, 2021 by . . . Link to comment https://forums.kleientertainment.com/forums/topic/133416-solved-help-with-getting-profile-icon-to-show-up-in-chat/ Share on other sites More sharing options...
Monti18 Posted September 8, 2021 Share Posted September 8, 2021 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 1 Link to comment https://forums.kleientertainment.com/forums/topic/133416-solved-help-with-getting-profile-icon-to-show-up-in-chat/#findComment-1492474 Share on other sites More sharing options...
. . . Posted September 8, 2021 Author Share Posted September 8, 2021 Thanks a lot! I must have missed that there's another argument .. at least now my npc's chatting doesn't stand out anymore lol 1 Link to comment https://forums.kleientertainment.com/forums/topic/133416-solved-help-with-getting-profile-icon-to-show-up-in-chat/#findComment-1492517 Share on other sites More sharing options...
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