_IS_META_PED_USING_COMPONENT
checks if a ped is using a component category Old name: _IS_META_PED_USING_COMPONENT
Hash
0xFB4891BD7578CDC1Runtime name
IsMetaPedUsingComponentNamespacePED
SideClient
NameCommunity guess
Docs
Since build1207
Also known as
_IS_META_PED_USING_COMPONENT_CATEGORYSignature
BOOL _IS_META_PED_USING_COMPONENT(Ped ped, Hash component);Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | — |
component | Hash | — |
Returns BOOL
Description
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
local retval = IsMetaPedUsingComponent(ped, component)
-- always works, by hash
local retval = Citizen.InvokeNative(0xFB4891BD7578CDC1, ped, component, Citizen.ReturnResultAnyway())JavaScript and C#
const retval = IsMetaPedUsingComponent(ped, component);
// by hash
const retval = Citizen.invokeNative('0xFB4891BD7578CDC1', ped, component, Citizen.returnResultAnyway());bool retval = Function.Call<bool>((Hash)0xFB4891BD7578CDC1, ped, component);- Hash parameters: the named function also accepts a string and hashes it for you;
Citizen.InvokeNativeneeds the number — passjoaat("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
InvokeNativewith 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.