_GET_OBJECT_FRAGMENT_COUNT
Returns the number of fragments that make up the object.
Signature
int _GET_OBJECT_FRAGMENT_COUNT(Object object); // 0x58DE624FA7FB0E7F b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | object | Object |
Facts
| Name | _GET_OBJECT_FRAGMENT_COUNT |
|---|---|
| Hash | 0x58DE624FA7FB0E7F |
| 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(0x58DE624FA7FB0E7F, -- _GET_OBJECT_FRAGMENT_COUNT
0, -- Object object
Citizen.ResultAsInteger()
)
print(result)const result = Citizen.invokeNative("0x58DE624FA7FB0E7F", // _GET_OBJECT_FRAGMENT_COUNT
0, // Object object
Citizen.resultAsInteger()
);
console.log(result)int result = Function.Call<int>((Hash)0x58DE624FA7FB0E7F, // _GET_OBJECT_FRAGMENT_COUNT
0 // Object object
);Related OBJECT natives
- _GET_OBJECT_LIGHT_INTENSITY
- GET_OBJECT_FRAGMENT_DAMAGE_HEALTH
- _GET_LIGHT_INTENSITY_FROM_OBJECT
- _DAMAGE_OBJECT_FRAGMENT_BY_INDEX
- BREAK_ALL_OBJECT_FRAGMENT_BONES
- BREAK_OBJECT_FRAGMENT_CHILD
- FIX_OBJECT_FRAGMENT
- GET_CLOSEST_OBJECT_OF_TYPE
- GET_PICKUP_OBJECT
- GET_RAYFIRE_MAP_OBJECT
- GET_RAYFIRE_MAP_OBJECT_ANIM_PHASE
- GET_STATE_OF_RAYFIRE_MAP_OBJECT
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.