Player.GetLocation

From GMod Wiki

Jump to: navigation, search
Gamemode Function: Player.GetLocation
Player.GetLocation is a function that is defined in the Sandbox Gamemode and its derivatives.
Function
Syntax Player:GetLocation( )
Description:
Gets the player's Location defined in client ConVar cl_location
Returns: String
In Object: Player
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Player.GetLocation]Player.GetLocation [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionPrints the Location of the player 1
Used onNewerShared.png
Code
 
pl=player.GetByID(1)
print(pl:GetLocation())
 
OutputNumber 1 Player's Location address


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox