PlayerClient

isWantedAndHasBeenSeenByCops

IS_WANTED_AND_HAS_BEEN_SEEN_BY_COPS0x7E07C78925D5FD96

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

SignatureJavaScript
isWantedAndHasBeenSeenByCops(player: Player): boolean
SignatureLua
isWantedAndHasBeenSeenByCops(player: Player): boolean

Usage

JavaScript
const result = isWantedAndHasBeenSeenByCops(player);
Lua
local result = isWantedAndHasBeenSeenByCops(player)

Parameters

ParameterTypeJavaScriptLua
playerPlayernumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

Reference

Namespace
Player PLAYER
In the game
BOOL IS_WANTED_AND_HAS_BEEN_SEEN_BY_COPS(Player player)
Hash
0x7E07C78925D5FD96
Introduced
Game build 372 legacy numbering

Open in the interactive natives reference