{"hash":"0x7ADE63E1","ns":"CFX","name":"GET_PLAYER_TIME_IN_PURSUIT","slug":"GET_PLAYER_TIME_IN_PURSUIT","official":true,"named":true,"luaName":"GetPlayerTimeInPursuit","game":"cfx","apiset":"server","returnType":"int","params":[{"name":"playerSrc","type":"char*","description":"The target player"},{"name":"lastPursuit","type":"BOOL","description":"False = CurrentPursuit, True = LastPursuit"}],"returnsDescription":"Returns -1, if the player is not wanted or wasn't in pursuit before, depending on the lastPursuit parameter\r\nReturns 0, if lastPursuit == False and the player has a wanted level, but the pursuit has not started yet\r\nOtherwise, will return the milliseconds of the pursuit.","summary":"Gets the amount of time player has spent evading the cops.","descriptions":[{"source":"cfx","format":"md","body":"```\nGets the amount of time player has spent evading the cops.\nCounter starts and increments only when cops are chasing the player.\nIf the player is evading, the timer will pause.\n```"}],"examples":[],"aliases":[],"enums":[],"related":[],"sources":["cfx"],"doc":2,"url":"https://natives.borderlinerp.com/natives/CFX/GET_PLAYER_TIME_IN_PURSUIT","markdownUrl":"https://natives.borderlinerp.com/natives/CFX/GET_PLAYER_TIME_IN_PURSUIT.md","snippets":{"lua":"local retval = GetPlayerTimeInPursuit(playerSrc, lastPursuit)","luaInvoke":"local retval = Citizen.InvokeNative(0x7ade63e1, playerSrc, lastPursuit, Citizen.ResultAsInteger())","js":"const retval = GetPlayerTimeInPursuit(playerSrc, lastPursuit);","jsInvoke":"const retval = Citizen.invokeNative('0x7ade63e1', playerSrc, lastPursuit, Citizen.returnResultAnyway(), Citizen.resultAsInteger());","csharp":"int retval = Function.Call<int>((Hash)0x7ade63e1, playerSrc, lastPursuit);","notes":[]}}