ply.getAll() a nill value

So I’m trying to code a concommand just for testing. I keep trying to get all the players to list them, but it returns as a nil value. Codes below, any help is appreciated!



concommand.Add( "players", function( ply )
	ply:PrintMessage( HUD_PRINTCONSOLE, "Information Printing Started")
	ply:PrintMessage( HUD_PRINTCONSOLE, "Total Connected Players: " .. #player.getAll() )

	for _, v in pairs( player.getAll() ) do
		time = v:TimeConnected() / 3600
		ply:PrintMessage( HUD_PRINTCONSOLE, "Name: " .. v:Name() .. ", SteamID: " .. v:SteamID() .. ", Time Connected: " .. time .. " hours, Ping: " .. v:Ping() .. "ms. 
")
	end

	ply:PrintMessage( HUD_PRINTCONSOLE, "Information Printing Done")
end)


It’s GetAll, not getAll.

Oh wow, I’m stupid, I just realized that :confused: Thanks