getTimeSinceLastDeath
GET_TIME_SINCE_LAST_DEATH0xC7034807558DDFCAThe GTA V native GET_TIME_SINCE_LAST_DEATH of the PLAYER namespace, as LS:MP client scripts call it: the global function getTimeSinceLastDeath, in JavaScript and in Lua.
getTimeSinceLastDeath(): numbergetTimeSinceLastDeath(): integerUsage
JavaScript
const result = getTimeSinceLastDeath();Lua
local result = getTimeSinceLastDeath()Parameters
None.
Returns
int JavaScript number, Lua integerNotes
From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.
Returns the time since the character died in (ms) milliseconds.
example
var time = Function.call<int>(Hash.GET_TIME_SINCE_LAST_DEATH();
UI.DrawSubtitle(time.ToString());if player has not died, the int returned will be -1.
Reference
- Namespace
- Player PLAYER
- In the game
int GET_TIME_SINCE_LAST_DEATH()- Hash
0xC7034807558DDFCA