RedM Natives

IS_PLAYER_PLAYING

Checks whether the specified player has a Ped, the Ped is not dead, is not injured and is not arrested.

Hash0xBFFB35986CAAE58C
Runtime nameIsPlayerPlaying
NamespacePLAYER
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x5E9564D8246B909A

Signature

BOOL IS_PLAYER_PLAYING(Player player);

Parameters

NameTypeDescription
playerPlayer—

Returns BOOL

Description

Checks whether the specified player has a Ped, the Ped is not dead, is not injured and is not arrested.

Usage

Lua
local retval = IsPlayerPlaying(player)

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

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

Sources

alloc8or RDR3 NativeDB

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