{"hash":"0xFB4891BD7578CDC1","ns":"PED","name":"_IS_META_PED_USING_COMPONENT","slug":"_IS_META_PED_USING_COMPONENT","official":false,"named":true,"luaName":"IsMetaPedUsingComponent","game":"rdr3","apiset":"client","returnType":"BOOL","params":[{"name":"ped","type":"Ped"},{"name":"component","type":"Hash"}],"summary":"checks if a ped is using a component category Old name: _IS_META_PED_USING_COMPONENT","descriptions":[{"source":"vorp","format":"text","body":"checks if a ped is using a component category\nsee component category hashes here https://raw.githubusercontent.com/femga/rdr3_discoveries/refs/heads/master/clothes/cloth_hash_names.lua\nOld name: _IS_META_PED_USING_COMPONENT"},{"source":"femga","format":"pre","body":"    //0xFB4891BD7578CDC1   -- _IS_PED_COMPONENT_EQUIPPED(ped_id,category_id)\nCitizen.InvokeNative(0xFB4891BD7578CDC1 ,PlayerPedId(), 0x9925C067)  -- for example, check if hat is on.\n    -------------------------------------------------------------------"}],"examples":[],"aliases":["_IS_META_PED_USING_COMPONENT_CATEGORY"],"enums":[],"related":[],"build":"1207","sources":["alloc8or","vorp","femga"],"doc":2,"url":"https://natives.borderlinerp.com/natives/PED/_IS_META_PED_USING_COMPONENT","markdownUrl":"https://natives.borderlinerp.com/natives/PED/_IS_META_PED_USING_COMPONENT.md","snippets":{"lua":"local retval = IsMetaPedUsingComponent(ped, component)","luaInvoke":"local retval = Citizen.InvokeNative(0xFB4891BD7578CDC1, ped, component, Citizen.ReturnResultAnyway())","js":"const retval = IsMetaPedUsingComponent(ped, component);","jsInvoke":"const retval = Citizen.invokeNative('0xFB4891BD7578CDC1', ped, component, Citizen.returnResultAnyway());","csharp":"bool retval = Function.Call<bool>((Hash)0xFB4891BD7578CDC1, ped, component);","notes":["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."]}}