The Lab
PED native

_GET_IS_PED_COMMAND_HASH_PRESENT

returns BOOL2 paramsbuild 1207

Returns true if ped currently has the hash command commandHash active.

Signature

C
BOOL _GET_IS_PED_COMMAND_HASH_PRESENT(Ped ped, Hash commandHash); // 0x68821369A2CEADD5 b1207

Parameters

#NameType
1pedPed
2commandHashHash

Facts

Facts about _GET_IS_PED_COMMAND_HASH_PRESENT
Name
_GET_IS_PED_COMMAND_HASH_PRESENT
Hash
0x68821369A2CEADD5
Namespace
Returns
BOOL
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
local result = Citizen.InvokeNative(0x68821369A2CEADD5, -- _GET_IS_PED_COMMAND_HASH_PRESENT
  PlayerPedId(), -- Ped ped
  GetHashKey("name") -- Hash commandHash
)
if result then
  -- ...
end
JavaScript
const result = Citizen.invokeNative("0x68821369A2CEADD5", // _GET_IS_PED_COMMAND_HASH_PRESENT
  PlayerPedId(), // Ped ped
  GetHashKey("name"), // Hash commandHash
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
bool result = Function.Call<bool>((Hash)0x68821369A2CEADD5, // _GET_IS_PED_COMMAND_HASH_PRESENT
  API.PlayerPedId(), // Ped ped
  (uint)API.GetHashKey("name") // Hash commandHash
);
All PED natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.