Fix it
Code:
local myFrame = CreateFrame("Frame")
myFrame:HookScript("OnEvent",
function()
C_NamePlate.SetNamePlateFriendlySize(50,100)
end
);
myFrame:RegisterEvent("PLAYER_LOGIN")
But they periodically stop working (return to their original state), what should I do?