_BREAK_ROPE
ropeTop returns top half of rope, ropeBottom returns bottom half of rope
Hash
0x4CFA2B7FAE115ECBRuntime name
BreakRopeNamespacePHYSICS
SideClient
NameCommunity guess
Docs
Since build1207
Signature
void _BREAK_ROPE(int* ropeId, int* ropeTop, int* ropeBottom, float offsetX, float offsetY, float offsetZ, int p6);Parameters
| Name | Type | Description |
|---|---|---|
ropeId | int* | — |
ropeTop | int* | — |
ropeBottom | int* | — |
offsetX | float | — |
offsetY | float | — |
offsetZ | float | — |
p6 | int | — |
Returns void
Description
ropeTop returns top half of rope, ropeBottom returns bottom half of rope
Usage
local ropeId, ropeTop, ropeBottom = BreakRope(offsetX, offsetY, offsetZ, p6)
-- always works, by hash
local ropeId, ropeTop, ropeBottom = Citizen.InvokeNative(0x4CFA2B7FAE115ECB, Citizen.PointerValueInt(), Citizen.PointerValueInt(), Citizen.PointerValueInt(), offsetX, offsetY, offsetZ, p6)JavaScript and C#
const [ropeId, ropeTop, ropeBottom] = BreakRope(offsetX, offsetY, offsetZ, p6);
// by hash
const [ropeId, ropeTop, ropeBottom] = Citizen.invokeNative('0x4CFA2B7FAE115ECB', Citizen.pointerValueInt(), Citizen.pointerValueInt(), Citizen.pointerValueInt(), offsetX + 0.0000001, offsetY + 0.0000001, offsetZ + 0.0000001, p6);var ropeId = new OutputArgument();
var ropeTop = new OutputArgument();
var ropeBottom = new OutputArgument();
Function.Call((Hash)0x4CFA2B7FAE115ECB, ropeId, ropeTop, ropeBottom, offsetX, offsetY, offsetZ, p6);
// ropeId.GetResult<int>()
// ropeTop.GetResult<int>()
// ropeBottom.GetResult<int>()- Float parameters: Lua integers (
10, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write10.0orvalue + 0.0. The generated JS wrappers add0.0000001to non-zero floats for the same reason. - Pointer (out) arguments are not passed in Lua/JS: their values are returned after the result, in order.
- The name is a community guess and may change. If the named call is missing in your client build, use
InvokeNativewith the hash — it always works.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.