PlayerClient

isPlayerBeingArrested

IS_PLAYER_BEING_ARRESTED0x388A47C51ABDAC8E

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

SignatureJavaScript
isPlayerBeingArrested(player: Player, atArresting: boolean): boolean
SignatureLua
isPlayerBeingArrested(player: Player, atArresting: boolean): boolean

Usage

JavaScript
const result = isPlayerBeingArrested(player, atArresting);
Lua
local result = isPlayerBeingArrested(player, atArresting)

Parameters

ParameterTypeJavaScriptLua
playerPlayernumberinteger
atArrestingBOOLbooleanboolean

Returns

BOOL JavaScript boolean, Lua boolean

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

Return true while player is being arrested / busted.

If atArresting is set to 1, this function will return 1 when player is being arrested (while player is putting his hand up, but still have control)

If atArresting is set to 0, this function will return 1 only when the busted screen is shown.

Reference

Namespace
Player PLAYER
In the game
BOOL IS_PLAYER_BEING_ARRESTED(Player player, BOOL atArresting)
Hash
0x388A47C51ABDAC8E

Open in the interactive natives reference