The Lab
PHYSICS native

_ADD_ROPE_2

returns int11 paramsbuild 1207

Creates a rope of the given length and ropeType at the given position and rotation, with a simpler parameter list than ADD_ROPE, and returns the rope id.

Signature

C
int _ADD_ROPE_2(float x, float y, float z, float rotX, float rotY, float rotZ, float length, int ropeType, BOOL isNetworked, int p9, float p10); // 0xE9C59F6809373A99 b1207

Parameters

#NameType
1xfloat
2yfloat
3zfloat
4rotXfloat
5rotYfloat
6rotZfloat
7lengthfloat
8ropeTypeint
9isNetworkedBOOL
10p9int
11p10float

Facts

Facts about _ADD_ROPE_2
Name
_ADD_ROPE_2
Hash
0xE9C59F6809373A99
Namespace
Returns
int
Game build
1207

Examples

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

Lua
local result = Citizen.InvokeNative(0xE9C59F6809373A99, -- _ADD_ROPE_2
  0.0, -- float x
  0.0, -- float y
  0.0, -- float z
  0.0, -- float rotX
  0.0, -- float rotY
  0.0, -- float rotZ
  0.0, -- float length
  0, -- int ropeType
  false, -- BOOL isNetworked
  0, -- int p9
  0.0, -- float p10
  Citizen.ResultAsInteger()
)
print(result)
JavaScript
// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
const result = Citizen.invokeNative("0xE9C59F6809373A99", // _ADD_ROPE_2
  0.0, // float x
  0.0, // float y
  0.0, // float z
  0.0, // float rotX
  0.0, // float rotY
  0.0, // float rotZ
  0.0, // float length
  0, // int ropeType
  false, // BOOL isNetworked
  0, // int p9
  0.0, // float p10
  Citizen.resultAsInteger()
);
console.log(result)
C#
int result = Function.Call<int>((Hash)0xE9C59F6809373A99, // _ADD_ROPE_2
  0.0f, // float x
  0.0f, // float y
  0.0f, // float z
  0.0f, // float rotX
  0.0f, // float rotY
  0.0f, // float rotZ
  0.0f, // float length
  0, // int ropeType
  false, // BOOL isNetworked
  0, // int p9
  0.0f // float p10
);
All PHYSICS natives

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