Player.UserID

From GMod Wiki

Jump to: navigation, search
Function
Syntax Player:UserID( )
Description:
This function returns the User ID of a player.
Returns: Integer
In Object: Player
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Player.UserID]Player.UserID [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionThis function returns the User ID of a player
Used onNewerShared.png
Code
print(ply:UserID( ))
OutputReturns UserID in the console.


Additional Notes

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox