IS_PLAYER_BEING_ARRESTED
Return true while player is being arrested / busted.
Hash
0xC8183AE963C58374Runtime name
IsPlayerBeingArrestedNamespacePLAYER
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x388A47C51ABDAC8ESignature
BOOL IS_PLAYER_BEING_ARRESTED(Player player, BOOL atArresting);Parameters
| Name | Type | Description |
|---|---|---|
player | Player | — |
atArresting | BOOL | — |
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
local retval = IsPlayerBeingArrested(player, atArresting)
-- always works, by hash
local retval = Citizen.InvokeNative(0xC8183AE963C58374, player, atArresting, Citizen.ReturnResultAnyway())JavaScript and C#
const retval = IsPlayerBeingArrested(player, atArresting);
// by hash
const retval = Citizen.invokeNative('0xC8183AE963C58374', player, atArresting, Citizen.returnResultAnyway());bool retval = Function.Call<bool>((Hash)0xC8183AE963C58374, player, atArresting);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.