FiveM Docs / Native Reference
API Set:
  • all
  • server
  • client
Language:
  • raw
  • lua
  • c#
  • js
Namespace: CFXAPI set: servereditImprove

GET_PLAYER_TIME_IN_PURSUIT

0x7ADE63E1
// GetPlayerTimeInPursuit
int GET_PLAYER_TIME_IN_PURSUIT(char* playerSrc, BOOL lastPursuit);
Parameters:
  • playerSrc:

    The target player

  • lastPursuit:

    False = CurrentPursuit, True = LastPursuit

Returns:

Returns -1, if the player is not wanted or wasn't in pursuit before, depending on the lastPursuit parameter Returns 0, if lastPursuit == False and the player has a wanted level, but the pursuit has not started yet Otherwise, will return the milliseconds of the pursuit.

Gets the amount of time player has spent evading the cops.
Counter starts and increments only when cops are chasing the player.
If the player is evading, the timer will pause.
GET_PLAYER_CAMERA_ROTATION(char* playerSrc)
GET_PLAYER_ENDPOINT(char* playerSrc)
GET_PLAYER_FAKE_WANTED_LEVEL(char* playerSrc)
GET_PLAYER_FROM_INDEX(int index)
GET_PLAYER_FROM_SERVER_ID(int serverId)
GET_PLAYER_FROM_STATE_BAG_NAME(char* bagName)
GET_PLAYER_GUID(char* playerSrc)
GET_PLAYER_IDENTIFIER(char* playerSrc, int identifier)
GET_PLAYER_IDENTIFIER_BY_TYPE(char* playerSrc, char* identifierType)
GET_PLAYER_INVINCIBLE(char* playerSrc)
GET_PLAYER_INVINCIBLE_2(Player player)
GET_PLAYER_LAST_MSG(char* playerSrc)
GET_PLAYER_MAX_ARMOUR(char* playerSrc)
GET_PLAYER_MAX_HEALTH(char* playerSrc)
GET_PLAYER_MAX_STAMINA(Player playerId)
GET_PLAYER_MELEE_WEAPON_DAMAGE_MODIFIER(Player playerId)
GET_PLAYER_MELEE_WEAPON_DEFENSE_MODIFIER(Player playerId)
GET_PLAYER_NAME(char* playerSrc)
GET_PLAYER_PED(char* playerSrc)
GET_PLAYER_PING(char* playerSrc)
GET_PLAYER_ROUTING_BUCKET(char* playerSrc)
GET_PLAYER_SERVER_ID(Player player)
GET_PLAYER_STAMINA(Player playerId)
GET_PLAYER_TEAM(char* playerSrc)
GET_PLAYER_TIME_IN_PURSUIT(char* playerSrc, BOOL lastPursuit)
GET_PLAYER_TOKEN(char* playerSrc, int index)
GET_PLAYER_VEHICLE_DAMAGE_MODIFIER(Player playerId)
GET_PLAYER_VEHICLE_DEFENSE_MODIFIER(Player playerId)
GET_PLAYER_WANTED_CENTRE_POSITION(char* playerSrc)
GET_PLAYER_WANTED_LEVEL(char* playerSrc)
GET_PLAYER_WEAPON_DAMAGE_MODIFIER(Player playerId)
GET_PLAYER_WEAPON_DEFENSE_MODIFIER(Player playerId)
GET_PLAYER_WEAPON_DEFENSE_MODIFIER_2(Player playerId)
GET_RANDOM_VEHICLE_DENSITY_MULTIPLIER()
GET_REGISTERED_COMMANDS()