Native referenceRedM

_GET_OBJECT_FRAGMENT_COUNT

0x58DE624FA7FB0E7F OBJECT
FUNCTION SIGNATURE
int _GET_OBJECT_FRAGMENT_COUNT(Object object);
Property Value
Native Name _GET_OBJECT_FRAGMENT_COUNT
Hash 0x58DE624FA7FB0E7F
Return Type int
Build 1207
Parameters object (Object)

Description: Returns the number of breakable fragments (indexed sections) defined for the specified object. These fragments can be triggered individually using natives that target object fracture indices. eg: a box of bottles can have multiple fragments that can be broken individually.

Usage

Lua (Direct):

local result = GetObjectFragmentCount(object)

Lua (Hash):

local result = Citizen.InvokeNative(0x58DE624FA7FB0E7F, object)
Back to OBJECT