_IS_META_PED_USING_COMPONENT
Returns true if ped is using the component component.
Signature
BOOL _IS_META_PED_USING_COMPONENT(Ped ped, Hash component); // 0xFB4891BD7578CDC1 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | ped | Ped |
| 2 | component | Hash |
Facts
| 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.
local result = Citizen.InvokeNative(0xFB4891BD7578CDC1, -- _IS_META_PED_USING_COMPONENT
PlayerPedId(), -- Ped ped
GetHashKey("name") -- Hash component
)
if result then
-- ...
endconst result = Citizen.invokeNative("0xFB4891BD7578CDC1", // _IS_META_PED_USING_COMPONENT
PlayerPedId(), // Ped ped
GetHashKey("name"), // Hash component
Citizen.returnResultAnyway()
);
if (result) {
// ...
}bool result = Function.Call<bool>((Hash)0xFB4891BD7578CDC1, // _IS_META_PED_USING_COMPONENT
API.PlayerPedId(), // Ped ped
(uint)API.GetHashKey("name") // Hash component
);Related PED natives
- _IS_META_PED_ASSET_VALID
- _IS_META_PED_FISH
- _IS_META_PED_OUTFIT_EQUIPPED
- _IS_META_PED_OUTFIT_REQUEST_VALID
- _IS_META_PED_REQUEST_VALID
- _IS_PED_USING_ACTION_MODE_2
- _APPLY_PED_META_PED_OUTFIT
- _CREATE_META_PED_OUTFIT_PED
- _DOES_META_PED_OUTFIT_EXIST_FOR_PED_MODEL
- _DOES_META_PED_SUBOUTFIT_EXIST_FOR_PED_MODEL
- _GET_IS_PED_IN_DISPUTE_WITH_PED
- _REQUEST_META_PED_COMPONENT
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.