_ATTACH_ENTITIES_TO_ROPE_2
Attaches entity1 and entity2 to the rope ropeId at the given offsets, optionally on the bones boneName1 and boneName2.
Signature
void _ATTACH_ENTITIES_TO_ROPE_2(int ropeId, Entity entity1, Entity entity2, float ent1X, float ent1Y, float ent1Z, float ent2X, float ent2Y, float ent2Z, const char* boneName1, const char* boneName2); // 0x462FF2A432733A44 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 | boneName1 | const char* |
| 11 | boneName2 | const char* |
Facts
| Name | _ATTACH_ENTITIES_TO_ROPE_2 |
|---|---|
| Hash | 0x462FF2A432733A44 |
| 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(0x462FF2A432733A44, -- _ATTACH_ENTITIES_TO_ROPE_2
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
"text", -- const char* boneName1
"text" -- const char* boneName2
)// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
Citizen.invokeNative("0x462FF2A432733A44", // _ATTACH_ENTITIES_TO_ROPE_2
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
"text", // const char* boneName1
"text" // const char* boneName2
);Function.Call((Hash)0x462FF2A432733A44, // _ATTACH_ENTITIES_TO_ROPE_2
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
"text", // const char* boneName1
"text" // const char* boneName2
);Related PHYSICS natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.