G.Player

From GMod Wiki

Jump to: navigation, search
Function
Syntax Player( Integer userID )
Where is this used?
Description:
Returns the player object for index+1
Returns: Player
Part of Library: Global Functions
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=G.Player]G.Player [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]


Examples

DescriptionPrints the Player with the userID of 2 in the server. Note that Player(2) == Entity(1)
Used onNewerShared.png
Code
print(Player(2))
OutputPlayer [1][Playername]


Additional Notes

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox