PlayerClient

getTimeSinceLastArrest

GET_TIME_SINCE_LAST_ARREST0x5063F92F07C2A316

The GTA V native GET_TIME_SINCE_LAST_ARREST of the PLAYER namespace, as LS:MP client scripts call it: the global function getTimeSinceLastArrest, in JavaScript and in Lua.

SignatureJavaScript
getTimeSinceLastArrest(): number
SignatureLua
getTimeSinceLastArrest(): integer

Usage

JavaScript
const result = getTimeSinceLastArrest();
Lua
local result = getTimeSinceLastArrest()

Parameters

None.

Returns

int JavaScript number, Lua integer

Notes

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 was arrested in (ms) milliseconds.

example

var time = Function.call<int>(Hash.GET_TIME_SINCE_LAST_ARREST();

UI.DrawSubtitle(time.ToString());

if player has not been arrested, the int returned will be -1.

Reference

Namespace
Player PLAYER
In the game
int GET_TIME_SINCE_LAST_ARREST()
Hash
0x5063F92F07C2A316

Open in the interactive natives reference