Player.Ping

From GMod Wiki

Jump to: navigation, search
Function
Syntax Player:Ping( )
Description:
Gets the players current ping.
Returns: nil
In Object: Player
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Player.Ping]Player.Ping [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionGet your ping
Used onNewerClient.png
Code
Msg("Your ping is: " .. LocalPlayer():Ping() .. "\n" )
OutputPrints your ping to the console
Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox