The Lab
PHYSICS native

_ATTACH_ENTITIES_TO_ROPE_2

returns void11 paramsbuild 1207

Attaches entity1 and entity2 to the rope ropeId at the given offsets, optionally on the bones boneName1 and boneName2.

Signature

C
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 b1207

Parameters

#NameType
1ropeIdint
2entity1Entity
3entity2Entity
4ent1Xfloat
5ent1Yfloat
6ent1Zfloat
7ent2Xfloat
8ent2Yfloat
9ent2Zfloat
10boneName1const char*
11boneName2const char*

Facts

Facts about _ATTACH_ENTITIES_TO_ROPE_2
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.

Lua
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
)
JavaScript
// 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
);
C#
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
);
All PHYSICS natives

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