RedM Natives

_IS_META_PED_USING_COMPONENT

checks if a ped is using a component category Old name: _IS_META_PED_USING_COMPONENT

Hash0xFB4891BD7578CDC1
Runtime nameIsMetaPedUsingComponent
NamespacePED
SideClient
NameCommunity guess
Docs
Since build1207
Also known as_IS_META_PED_USING_COMPONENT_CATEGORY

Signature

BOOL _IS_META_PED_USING_COMPONENT(Ped ped, Hash component);

Parameters

NameTypeDescription
pedPed—
componentHash—

Returns BOOL

Description

VORPCORE RDR3natives

checks if a ped is using a component category
see component category hashes here https://raw.githubusercontent.com/femga/rdr3_discoveries/refs/heads/master/clothes/cloth_hash_names.lua
Old name: _IS_META_PED_USING_COMPONENT

femga rdr3_discoveries · research notes

    //0xFB4891BD7578CDC1   -- _IS_PED_COMPONENT_EQUIPPED(ped_id,category_id)
Citizen.InvokeNative(0xFB4891BD7578CDC1 ,PlayerPedId(), 0x9925C067)  -- for example, check if hat is on.
    -------------------------------------------------------------------

Usage

Lua
local retval = IsMetaPedUsingComponent(ped, component)

-- always works, by hash
local retval = Citizen.InvokeNative(0xFB4891BD7578CDC1, ped, component, Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const retval = IsMetaPedUsingComponent(ped, component);

// by hash
const retval = Citizen.invokeNative('0xFB4891BD7578CDC1', ped, component, Citizen.returnResultAnyway());
C#
bool retval = Function.Call<bool>((Hash)0xFB4891BD7578CDC1, ped, component);
  • Hash parameters: the named function also accepts a string and hashes it for you; Citizen.InvokeNative needs the number — pass joaat("name") or a backtick literal like `name`.
  • The name is a community guess and may change. If the named call is missing in your client build, use InvokeNative with the hash — it always works.

Sources

alloc8or RDR3 NativeDB · VORPCORE RDR3natives · femga rdr3_discoveries

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