{"hash":"0x58DE624FA7FB0E7F","ns":"OBJECT","name":"_GET_OBJECT_FRAGMENT_COUNT","slug":"_GET_OBJECT_FRAGMENT_COUNT","official":false,"named":true,"luaName":"GetObjectFragmentCount","game":"rdr3","apiset":"client","returnType":"int","params":[{"name":"object","type":"Object"}],"summary":"Returns the number of breakable fragments/indexed sections defined for the specified object.","descriptions":[{"source":"alloc8or","format":"text","body":"Returns the number of breakable fragments/indexed sections defined for the specified object.\nObjects without fracture data typically return 0. The returned count corresponds to the valid index range used by _DAMAGE_OBJECT_FRAGMENT_BY_INDEX."},{"source":"vorp","format":"text","body":"Returns the number of breakable fragments (indexed sections) defined for the specified object.\nThese 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."}],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","sources":["alloc8or","vorp"],"doc":2,"url":"https://natives.borderlinerp.com/natives/OBJECT/_GET_OBJECT_FRAGMENT_COUNT","markdownUrl":"https://natives.borderlinerp.com/natives/OBJECT/_GET_OBJECT_FRAGMENT_COUNT.md","snippets":{"lua":"local retval = GetObjectFragmentCount(object)","luaInvoke":"local retval = Citizen.InvokeNative(0x58DE624FA7FB0E7F, object, Citizen.ResultAsInteger())","js":"const retval = GetObjectFragmentCount(object);","jsInvoke":"const retval = Citizen.invokeNative('0x58DE624FA7FB0E7F', object, Citizen.returnResultAnyway(), Citizen.resultAsInteger());","csharp":"int retval = Function.Call<int>((Hash)0x58DE624FA7FB0E7F, object);","notes":["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."]}}