View Single Post
03/04/23, 12:25 PM   #6
sirinsidiator
 
sirinsidiator's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 1,580
Originally Posted by sinnereso View Post
oh cool ty.. but my issue is retriving that data...i can getinfo(somebody) but the specific info like which friend and online status etc from it is confusing me.

Oh i think i get it... and for the info i dont want put _?

*EDIT*

OK got it ty.. its just for a single saved player and your corrections there worked perfectly ty so much!
You could use any variable name, but in Lua the general consent is to name the variables you don't plan to use "_", to make the code more readable.

And as others have mentioned, you do not actually need to loop over the friend data yourself, since ZOS already has a method that does it for you.
You can check the code on github.
  Reply With Quote