Originally Posted by
tdsx
Code:
local players = player.GetAll()
I feel like an idiot for not thinking of that but basically what I'm trying to do is modify a menu to include all players and when you select a player it displays their money below the name. I don't know how to properly modify it. I'm new to lua and I'm working my way up the ladder.
Code:
scrubs = player.GetAll()
local hitLab = vgui.Create( "DLabel", hitFrame )
hitLab:SetPos( hitFrame:GetWide() / 2 - 87 / 2, 35 )
hitLab:SetFont( "ChatFont" )
hitLab:SetTextColor( Color( 51, 204, 255, 255 ) )
hitLab:SetText( "Place Hit On:" )
hitLab:SizeToContents()
local hitBox = vgui.Create( "DComboBox", hitFrame )
hitBox:SetPos( hitFrame:GetWide() / 2 - 50, 55 )
hitBox:SetSize( 100, 20 )
hitBox:AddChoice( scrubs )
(Yes, I snagged the menu from a hitman addon because I'm shit)