Player.GetXFire
From GMod Wiki
| Gamemode Function: Player.GetXFire | |
|---|---|
| Player.GetXFire is a function that is defined in the Sandbox Gamemode and its derivatives. | |
| Function | |
| Syntax | Player:GetXFire( ) |
| Description: | |
| Gets the player's XFire name defined in client ConVar cl_xfire | |
| Returns: | String |
| In Object: | Player |
| Realm: |
|
| BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Player.GetXFire]Player.GetXFire [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
| Description | Prints the XFire name of the player 1 |
|---|---|
| Used on | |
| Code | pl=player.GetByID(1) print(tostring(pl:GetXFire()) |
| Output | Number 1 Player's XFire name |
Additional Notes
- Can only be used in Sandbox gamemode as it's defined there (or if you derive from it)