on screen console

How can i make it so for every player on my server that are staff, have “developer 1” enabled? (A console command)
I know how to loop through the players and check if he is a ulx rank, but not sure about the developer 1 part.

for k,v in pairs(player.GetAll()) do

if v:GetUserGroup() == “superadmin” then
–return the function
end

end

You should probably run it on their initial spawn, check if the player is the rank inside it, then just run http://wiki.garrysmod.com/page/Player/ConCommand on them with the command.

Thanks will try when im home



for k,v in pairs(player.GetAll()) do

if v:GetUserGroup() == "superadmin" then
v:ConCommand( "developer", 1 )
end




for k,v in pairs(player.GetAll()) do

if v:GetUserGroup() == "superadmin" then
v:ConCommand( "developer 1" )
end


One of those should work.

Thanks guys :slight_smile: I will try now :smiley:

If you want an actual onscreen only for the server-based stuff, considering this is what it sounds like ( Would explain the admin restriction, normal players can access the client console anyways), take a look at EPOE. GitHub - Metastruct/EPOE: Garry's Mod (GMod) Enhanced Perception Of Errors (EPOE)