Player/GetPlayerInfo

From Garry's Mod
Jump to: navigation, search
 Player:GetPlayerInfo( )

Contents

Description

Returns a table containing player information.

Returns

table

A table containing player information.

Examples

Example

Example output for a bot and a player.

PrintTable( Entity( 1 ):GetPlayerInfo() ) -- A player
PrintTable( Entity( 2 ):GetPlayerInfo() ) -- A bot

Output:

Player:
friendname	=	
customfiles:
		1	=	0912fb2c
		2	=	0912fb2c
		3	=	0912fb2c
		4	=	0912fb2c
fakeplayer	=	false
guid	=	STEAM_0:0:18313012
ishltv	=	false
filesdownloaded	=	0
friendid	=	36626024
name	=	Rubat
userid	=	2
Bot:
friendname	=	
customfiles:
		1	=	00000000
		2	=	00000000
		3	=	00000000
		4	=	00000000
fakeplayer	=	true
guid	=	BOT
ishltv	=	false
filesdownloaded	=	0
friendid	=	0
name	=	Bot01
userid	=	3
Personal tools
Navigation