RedM Natives

IS_PLAYER_BEING_ARRESTED

Return true while player is being arrested / busted.

Hash0xC8183AE963C58374
Runtime nameIsPlayerBeingArrested
NamespacePLAYER
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x388A47C51ABDAC8E

Signature

BOOL IS_PLAYER_BEING_ARRESTED(Player player, BOOL atArresting);

Parameters

NameTypeDescription
playerPlayer—
atArrestingBOOL—

Returns BOOL

Description

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.

Usage

Lua
local retval = IsPlayerBeingArrested(player, atArresting)

-- always works, by hash
local retval = Citizen.InvokeNative(0xC8183AE963C58374, player, atArresting, Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const retval = IsPlayerBeingArrested(player, atArresting);

// by hash
const retval = Citizen.invokeNative('0xC8183AE963C58374', player, atArresting, Citizen.returnResultAnyway());
C#
bool retval = Function.Call<bool>((Hash)0xC8183AE963C58374, player, atArresting);

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.