RedM Index logoRedM Index
NativesHashesClothesBlipsPropsItem Tool
Sign inGet started

Reference

  • Natives
  • Hashes
  • Clothes
  • Blips
  • Props

Namespace

  1. Reference
  2. Natives
  3. ATTACH_ENTITY_TO_ENTITY

ATTACH_ENTITY_TO_ENTITY

Attaches entity1 to bone (boneIndex) of entity2. boneIndex - this is different to boneID, use GET_PED_BONE_INDEX to get the index from the ID. use the index for attaching to specific bones. entity1 will be attached to entity2's centre if bone index given doesn't correspond to bone indexes for that entity type. https://github.com/femga/rdr3_discoveries/tree/master/boneNames useSoftPinning - if set to false attached entity will not detach when fixed collision - controls collision between the two entities (FALSE disables collision). isPed - pitch doesn't work when false and roll will only work on negative numbers (only peds) vertexIndex - position of vertex fixedRot - if false it ignores entity vector

ENTITYBuild 1207

Signature

lua
AttachEntityToEntity(entity1, entity2, 0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, true, true, true, true, 0, true, true, true)
-- returns void

Parameters

NameTypeDescription
Entity—
Entity—
int—
float—
float—
float—
float—
float—
float—
BOOL—
BOOL—
BOOL—
BOOL—
int—
BOOL—
BOOL—
BOOL—

Usage

lua
AttachEntityToEntity(entity1, entity2, 0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, true, true, true, true, 0, true, true, true)

Generated from the native name, hash, and parameter list. Add a real example.

Details

Hash
Joaat hash
Source
VORPCORE/RDR3natives

Source: VORPCORE/RDR3natives

On this page

  • Signature
  • Parameters
  • Usage
  • Details