Garry's Mod Wiki

GetTimeoutInfo

boolean, number GetTimeoutInfo()

Just Added

This was just added in the latest version (2020.11.20). It might only be available on the Dev Branch right now.

Description

Returns if the client is timing out, and time since last ping from the server. Similar to the server side Player:IsTimingOut

Returns

1 boolean
Is timing out?
2 number
Get time since last pinged received

Example

print(GetTimeoutInfo())
Output:
false 0.011438442269421

Page Links


Special Pages


Wikis

?

Render Time: 24ms

DB GetPage 4
Generate Html 2
SaveChanges (1) 9
Render Body 0
Render Sidebar 6