_BREAK_ROPE
Breaks the rope ropeId at the given offset, writing the ids of the resulting top and bottom pieces to ropeTop and ropeBottom.
Signature
void _BREAK_ROPE(int* ropeId, int* ropeTop, int* ropeBottom, float offsetX, float offsetY, float offsetZ, int p6); // 0x4CFA2B7FAE115ECB b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | ropeId | int* (out pointer) |
| 2 | ropeTop | int* (out pointer) |
| 3 | ropeBottom | int* (out pointer) |
| 4 | offsetX | float |
| 5 | offsetY | float |
| 6 | offsetZ | float |
| 7 | p6 | int |
Facts
| Name | _BREAK_ROPE |
|---|---|
| Hash | 0x4CFA2B7FAE115ECB |
| Namespace | |
| Returns | void |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local ropeId, ropeTop, ropeBottom = Citizen.InvokeNative(0x4CFA2B7FAE115ECB, -- _BREAK_ROPE
Citizen.PointerValueInt(), -- int* ropeId
Citizen.PointerValueInt(), -- int* ropeTop
Citizen.PointerValueInt(), -- int* ropeBottom
0.0, -- float offsetX
0.0, -- float offsetY
0.0, -- float offsetZ
0 -- int p6
)
print(ropeId, ropeTop, ropeBottom)// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
const [ropeId, ropeTop, ropeBottom] = Citizen.invokeNative("0x4CFA2B7FAE115ECB", // _BREAK_ROPE
Citizen.pointerValueInt(), // int* ropeId
Citizen.pointerValueInt(), // int* ropeTop
Citizen.pointerValueInt(), // int* ropeBottom
0.0, // float offsetX
0.0, // float offsetY
0.0, // float offsetZ
0 // int p6
);
console.log(ropeId, ropeTop, ropeBottom)var ropeIdArg = new OutputArgument();
var ropeTopArg = new OutputArgument();
var ropeBottomArg = new OutputArgument();
Function.Call((Hash)0x4CFA2B7FAE115ECB, // _BREAK_ROPE
ropeIdArg, // int* ropeId
ropeTopArg, // int* ropeTop
ropeBottomArg, // int* ropeBottom
0.0f, // float offsetX
0.0f, // float offsetY
0.0f, // float offsetZ
0 // int p6
);
int ropeId = ropeIdArg.GetResult<int>();
int ropeTop = ropeTopArg.GetResult<int>();
int ropeBottom = ropeBottomArg.GetResult<int>();Related PHYSICS natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.