Thread Tools Display Modes
Prev Previous Post   Next Post Next
03/04/23, 01:33 AM   #1
sinnereso
AddOn Author - Click to view addons
Join Date: Oct 2022
Posts: 252
Question GetFriendInfo help

im working on additional feature for my addon and having issues with the "GetFriendInfo()". Im looking to find a specific friend in friends list and check if they're online before executing code. im currently messing with this sort of thing.

Code:
local savedPlayer = xxx.savedVariables.savedPlayer
if not IsPlayerInGroup(savedPlayer) and IsFriend(savedPlayer) then
	for iD = 1, GetNumFriends() do
		if GetFriendInfo(iD) == (savedPlayer, nil, PLAYER_STATUS_ONLINE, nil) then
the formatting of these keeps messing me up.. ive tried in brackets etc. Any suggestions for something I've missed?

Last edited by sinnereso : 03/04/23 at 01:52 AM.
  Reply With Quote
 

ESOUI » Developer Discussions » Lua/XML Help » GetFriendInfo help


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off