Making player admin through LUA

So, I want to make it so that a player will be set to admin if the player variable ._AdminLevel > 0…

if (player._AdminLevel > 0) then
What to insert here?

Why not just add them to the users.txt file?

ply:SetUserGroup( “superadmin” )

[lua] RunConsoleCommand(“ulx”, “adduserid” , ply:SteamID(), “usergroup”)[/lua]

This is the way I do it, I’m sure there’s better ways of going about it.

Thank You McDunkable!