Skip to main content

getTimeout

exports["RiP-Death"]:getTimeout() 

This function returns the client players remaining death-timout time

Returned Integer

If the player has a timeout it returns the remaining time [integer] in seconds. Otherwise it will return false or 0.

Example

local deathTimeout = exports["RiP-Death"]:getTimeout() 

if deathTimeout then
print("player has "..deathTimeout.." seconds left")
else
print("player has no death timeout")
end