_GET_NUM_COMPONENTS_IN_PED
Returns how many components are applied to ped.
Signature
int _GET_NUM_COMPONENTS_IN_PED(Ped ped); // 0x90403E8107B60E81 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | ped | Ped |
Facts
| Name | _GET_NUM_COMPONENTS_IN_PED |
|---|---|
| Hash | 0x90403E8107B60E81 |
| Namespace | |
| Returns | int |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local result = Citizen.InvokeNative(0x90403E8107B60E81, -- _GET_NUM_COMPONENTS_IN_PED
PlayerPedId(), -- Ped ped
Citizen.ResultAsInteger()
)
print(result)const result = Citizen.invokeNative("0x90403E8107B60E81", // _GET_NUM_COMPONENTS_IN_PED
PlayerPedId(), // Ped ped
Citizen.resultAsInteger()
);
console.log(result)int result = Function.Call<int>((Hash)0x90403E8107B60E81, // _GET_NUM_COMPONENTS_IN_PED
API.PlayerPedId() // Ped ped
);Related PED natives
- _GET_NUM_COMPONENT_CATEGORIES_IN_PED
- _GET_NUM_FREE_SLOTS_IN_PED_POOL
- _GET_IS_PED_IN_DISPUTE_WITH_PED
- _GET_PED_WHO_HOGITIED_THIS_PED
- _GET_NUM_RESERVED_AMBIENT_PEDS_DESIRED
- _GET_NUM_RESERVED_AMBIENT_PEDS_READY
- _GET_NUM_RESERVED_HEALTH
- _GET_NUM_RESERVED_STAMINA
- GET_NUM_META_PED_OUTFITS
- GET_VEHICLE_PED_IS_IN
- _GET_CARRIER_AS_PED
- _GET_FIRST_ENTITY_PED_IS_CARRYING
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.