The Lab
PHYSICS native

_BREAK_ROPE

returns void7 paramsbuild 1207

Breaks the rope ropeId at the given offset, writing the ids of the resulting top and bottom pieces to ropeTop and ropeBottom.

Signature

C
void _BREAK_ROPE(int* ropeId, int* ropeTop, int* ropeBottom, float offsetX, float offsetY, float offsetZ, int p6); // 0x4CFA2B7FAE115ECB b1207

Parameters

#NameType
1ropeIdint* (out pointer)
2ropeTopint* (out pointer)
3ropeBottomint* (out pointer)
4offsetXfloat
5offsetYfloat
6offsetZfloat
7p6int

Facts

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

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

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