View Single Post
08-29-21, 06:42 AM   #3
Googles
A Murloc Raider
 
Googles's Avatar
AddOn Compiler - Click to view compilations
Join Date: Mar 2007
Posts: 6
Originally Posted by briskman3000 View Post
In your addon file, you would need to create a function that has that script inside of it, and then trigger than function to run on player login.

Something similar to this should work

Lua Code:
  1. local setnameplateframe = CreateFrame("Frame", setnameplateframe)
  2.  
  3. local function setnameplatesize(self, event, ...)
  4.      C_NamePlate.SetNamePlateFriendlySize(60, 60)
  5. end
  6.  
  7. setnameplateframe:RegisterEvent("PLAYER_LOGIN")
  8. setnameplateframe:SetScript("OnEvent", setnameplatesize)

I have not tested this code and can not guarantee that it works.
Worked perfectly thanks a lot!
__________________
  Reply With Quote