The Lab
PED native

_IS_META_PED_USING_COMPONENT

returns BOOL2 paramsbuild 1207

Returns true if ped is using the component component.

Signature

C
BOOL _IS_META_PED_USING_COMPONENT(Ped ped, Hash component); // 0xFB4891BD7578CDC1 b1207

Parameters

#NameType
1pedPed
2componentHash

Facts

Facts about _IS_META_PED_USING_COMPONENT
Name
_IS_META_PED_USING_COMPONENT
Hash
0xFB4891BD7578CDC1
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(0xFB4891BD7578CDC1, -- _IS_META_PED_USING_COMPONENT
  PlayerPedId(), -- Ped ped
  GetHashKey("name") -- Hash component
)
if result then
  -- ...
end
JavaScript
const result = Citizen.invokeNative("0xFB4891BD7578CDC1", // _IS_META_PED_USING_COMPONENT
  PlayerPedId(), // Ped ped
  GetHashKey("name"), // Hash component
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
bool result = Function.Call<bool>((Hash)0xFB4891BD7578CDC1, // _IS_META_PED_USING_COMPONENT
  API.PlayerPedId(), // Ped ped
  (uint)API.GetHashKey("name") // Hash component
);
All PED natives

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