View Single Post
03/17/23, 06:48 PM   #6
nilo
Join Date: Feb 2022
Posts: 15
Originally Posted by Baertram View Post
Basically you need to do EVENT_MANAGER:RegisterForEvent("myAddonName", EVENT_GROUP_MEMBER_ROLE_CHANGED, yourCallbackFunctionForThatEvent) within your EVENT_ADD_ON_LOADED callback function, without any zo_callLater!
This will register yourCallbackFunctionForThatEvent for that event, whenever it fires (should fire each time a group member changes his role).
I tried doing this, rn it's like this, I'm in group with tank role lets say, I reloadui, the texture on screen is the tank one as it should but if I change role it updates the texture to the one as if my role is roleId = LFG_ROLE_INVALID

Originally Posted by Baertram View Post
btw: You got a typo in your event name!
EVENT_GROUP_MEMBER_ROLE_CHANGED

without S after ROLE
and thank you so much for this

Last edited by nilo : 03/20/23 at 10:47 AM.
  Reply With Quote