Hi, I posted a thread a while ago about this and the script worked like I wanted it too but I want to change the chat output to chat.AddText or something like that instead of printmessage, but whenever I do that it says nothing.
function ulx.staff( calling_ply )
for k, ply in pairs( player.GetAll() ) do
if ULib.ucl.query( ply, "is_staff" ) then
local id = tostring( ply:UserID() )
local nick = ply:Nick()
local group = ply:GetUserGroup()
local group = string.gsub(" "..group, "%W%l", string.upper):sub(2)
calling_ply:PrintMessage( 3, "" .. nick .. ": " .. group )
end
end
end
local staff = ulx.command( CATEGORY_NAME, "ulx staff", ulx.staff, "!staff" )
staff:defaultAccess( ULib.ACCESS_ALL )
staff:help( "See information about currently online staff members." )