RedM Natives

_DAMAGE_OBJECT_FRAGMENT_BY_INDEX

Damages or breaks a specific predefined fragment/section of an object.

Hash0xAAACF33CBF9B990A
Runtime nameDamageObjectFragmentByIndex
NamespaceOBJECT
SideClient
NameCommunity guess
Docs
Since build1207

Signature

void _DAMAGE_OBJECT_FRAGMENT_BY_INDEX(Object object, int index);

Parameters

NameTypeDescription
objectObject—
indexint—

Returns void

Description

alloc8or RDR3 NativeDB

Damages or breaks a specific predefined fragment/section of an object.
The index selects one of the object's internal fracture sections. Different index values cause different fragments to detach or break.
Pair with _GET_OBJECT_FRAGMENT_COUNT to determine the valid index range.

VORPCORE RDR3natives

Damages or breaks a specific predefined fragment/section of an object using the provided fragment index.
Unlike generic damage systems, this native appears to directly target one of the object's internal fracture sections. The index parameter determines which part of the object is damaged or broken.
Different index values cause different fragments of the object to detach or break.

Usage

Lua
DamageObjectFragmentByIndex(object, index)

-- always works, by hash
Citizen.InvokeNative(0xAAACF33CBF9B990A, object, index)
JavaScript and C#
JavaScript
DamageObjectFragmentByIndex(object, index);

// by hash
Citizen.invokeNative('0xAAACF33CBF9B990A', object, index);
C#
Function.Call((Hash)0xAAACF33CBF9B990A, object, index);
  • 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.

Sources

alloc8or RDR3 NativeDB · VORPCORE RDR3natives

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.