ATTACH_ENTITIES_TO_ROPE
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
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 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | ropeId | int |
| 2 | entity1 | Entity |
| 3 | entity2 | Entity |
| 4 | ent1X | float |
| 5 | ent1Y | float |
| 6 | ent1Z | float |
| 7 | ent2X | float |
| 8 | ent2Y | float |
| 9 | ent2Z | float |
| 10 | length | float |
| 11 | alwaysZero1 | int |
| 12 | alwaysZero2 | int |
| 13 | boneName1 | const char* |
| 14 | boneName2 | const char* |
| 15 | p14 | BOOL |
| 16 | boneId1 | int |
| 17 | boneId2 | int |
| 18 | alwaysZero3 | int |
| 19 | alwaysZero4 | int |
| 20 | p19 | BOOL |
| 21 | p20 | BOOL |
Facts
| 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.
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
)// 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
);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
);Related PHYSICS natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.