The Lab
PHYSICS native

ATTACH_ENTITIES_TO_ROPE

returns void21 paramsbuild 1207

Attaches entity1 and entity2 to the two ends of the rope ropeId at the given world positions, optionally on named bones, with the rope set to length.

Signature

C
void ATTACH_ENTITIES_TO_ROPE(int ropeId, Entity entity1, Entity entity2, float ent1X, float ent1Y, float ent1Z, float ent2X, float ent2Y, float ent2Z, float length, int alwaysZero1, int alwaysZero2, const char* boneName1, const char* boneName2, BOOL p14, int boneId1, int boneId2, int alwaysZero3, int alwaysZero4, BOOL p19, BOOL p20); // 0x3D95EC8B6D940AC3 b1207

Parameters

#NameType
1ropeIdint
2entity1Entity
3entity2Entity
4ent1Xfloat
5ent1Yfloat
6ent1Zfloat
7ent2Xfloat
8ent2Yfloat
9ent2Zfloat
10lengthfloat
11alwaysZero1int
12alwaysZero2int
13boneName1const char*
14boneName2const char*
15p14BOOL
16boneId1int
17boneId2int
18alwaysZero3int
19alwaysZero4int
20p19BOOL
21p20BOOL

Facts

Facts about ATTACH_ENTITIES_TO_ROPE
Name
ATTACH_ENTITIES_TO_ROPE
Hash
0x3D95EC8B6D940AC3
Namespace
Returns
void
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
Citizen.InvokeNative(0x3D95EC8B6D940AC3, -- ATTACH_ENTITIES_TO_ROPE
  0, -- int ropeId
  PlayerPedId(), -- Entity entity1
  PlayerPedId(), -- Entity entity2
  0.0, -- float ent1X
  0.0, -- float ent1Y
  0.0, -- float ent1Z
  0.0, -- float ent2X
  0.0, -- float ent2Y
  0.0, -- float ent2Z
  0.0, -- float length
  0, -- int alwaysZero1
  0, -- int alwaysZero2
  "text", -- const char* boneName1
  "text", -- const char* boneName2
  false, -- BOOL p14
  0, -- int boneId1
  0, -- int boneId2
  0, -- int alwaysZero3
  0, -- int alwaysZero4
  false, -- BOOL p19
  false -- BOOL p20
)
JavaScript
// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
Citizen.invokeNative("0x3D95EC8B6D940AC3", // ATTACH_ENTITIES_TO_ROPE
  0, // int ropeId
  PlayerPedId(), // Entity entity1
  PlayerPedId(), // Entity entity2
  0.0, // float ent1X
  0.0, // float ent1Y
  0.0, // float ent1Z
  0.0, // float ent2X
  0.0, // float ent2Y
  0.0, // float ent2Z
  0.0, // float length
  0, // int alwaysZero1
  0, // int alwaysZero2
  "text", // const char* boneName1
  "text", // const char* boneName2
  false, // BOOL p14
  0, // int boneId1
  0, // int boneId2
  0, // int alwaysZero3
  0, // int alwaysZero4
  false, // BOOL p19
  false // BOOL p20
);
C#
Function.Call((Hash)0x3D95EC8B6D940AC3, // ATTACH_ENTITIES_TO_ROPE
  0, // int ropeId
  API.PlayerPedId(), // Entity entity1
  API.PlayerPedId(), // Entity entity2
  0.0f, // float ent1X
  0.0f, // float ent1Y
  0.0f, // float ent1Z
  0.0f, // float ent2X
  0.0f, // float ent2Y
  0.0f, // float ent2Z
  0.0f, // float length
  0, // int alwaysZero1
  0, // int alwaysZero2
  "text", // const char* boneName1
  "text", // const char* boneName2
  false, // BOOL p14
  0, // int boneId1
  0, // int boneId2
  0, // int alwaysZero3
  0, // int alwaysZero4
  false, // BOOL p19
  false // BOOL p20
);
All PHYSICS natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.