This is the line i think that does it in leafLFG im trying to understand how it works....
Code:
local function GetLFGStatus()
local _, _, _, _, _, _, _, _, _, _, lfg, lfm = GetLookingForGroup()
return lfg or lfm, lfg, lfm
end
I have no idea though how that line there works haha i know it later goes into play with this line...
Code:
if GetLFGStatus() then
playerDisable = GetGroupStatus()
Leave()
Leave() is defined with the ClearLookingForGroup() ClearLookingForMore() tags.
Attempting to write something similar as we speak....