DarkRP Admin Panel

Hello fellas.

Is there any way I can change so that only Super Admins or higher ranked players can access the “Admin” tab in the F4 menu for DarkRP? Since a rank on my server is based on the Admin rank because I want players in that rank to access “Admin restricted” jobs. Currently, that ranked players can access the Admin tab and modify the settings and that’s not good because I don’t want that particular rank to be able to access that tab and modify it.

Any help is appreciated!
Thanks in Advance!

Best Regards.
Sven.

There is so much commands that rely on ply:IsAdmin(), so, AFAIK that can’t be fixed in a simple way

as far i can see, go to line 544 in darkrp/gamemode/player.lua and change lines 105-107


function meta:HasPriv(priv)
	return (FAdmin and FAdmin.Access.PlayerHasPrivilege(self, priv)) or self:IsAdmin()
end

to


function meta:HasPriv(priv)
	if priv=="rp_commands" then return self:IsSuperAdmin() end
	return (FAdmin and FAdmin.Access.PlayerHasPrivilege(self, priv)) or self:IsAdmin()
end

that will restrict rp_commands for superadmins

I see, I’ll change that! Thank you for your help!