isPlayerBeingArrested
IS_PLAYER_BEING_ARRESTED0x388A47C51ABDAC8EThe 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.
isPlayerBeingArrested(player: Player, atArresting: boolean): booleanisPlayerBeingArrested(player: Player, atArresting: boolean): booleanUsage
JavaScript
const result = isPlayerBeingArrested(player, atArresting);Lua
local result = isPlayerBeingArrested(player, atArresting)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
player | Player | number | integer |
atArresting | BOOL | boolean | boolean |
Returns
BOOL JavaScript boolean, Lua booleanNotes
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