Garry's Mod Wiki

player.GetHumans

  table player.GetHumans()

Description

Returns a table of all human ( non bot/AI ) players.

Unlike player.GetAll, this does not include bots.

Returns

1 table
A table of all human ( non bot/AI ) players.