Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- hook.Add( "TTTScoreboardColumns", "Scoreboard Columns Test", function( pnl, typ )
- pnl:AddColumn( "CurTime", function() return math.floor(CurTime()) end )
- local label = pnl:AddColumn( "Rank", function(ply,pnl) return ply:GetUserGroup() end)
- label.Think = function( s )
- local col = s.IsHeading and Color(255,0,0) or Color( 0,0,255 ) --Red in heading, Blue in row
- s:SetTextColor( col )
- end
- end)
- hook.Add( "TTTScoreboardMenu", "Scoreboard Menu Test", function( menu )
- local sub = menu:AddSubMenu( "Player stuff" )
- sub:AddOption( "Copy SteamID", function()
- if IsValid(menu) and IsValid( menu.Player ) then
- SetClipboardText( menu.Player:SteamID() ) chat.AddText( "SteamID copied to clipboard!" )
- end
- end)
- end)
- hook.Add( "TTTScoreboardMenu", "Scoreboard Block Menu", function( menu )
- return true --No menus, we hate them >:c
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement