_ADD_ROPE_2
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
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 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | x | float |
| 2 | y | float |
| 3 | z | float |
| 4 | rotX | float |
| 5 | rotY | float |
| 6 | rotZ | float |
| 7 | length | float |
| 8 | ropeType | int |
| 9 | isNetworked | BOOL |
| 10 | p9 | int |
| 11 | p10 | float |
Facts
| 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.
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)// 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)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
);Related PHYSICS natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.