{"hash":"0x4CFA2B7FAE115ECB","ns":"PHYSICS","name":"_BREAK_ROPE","slug":"_BREAK_ROPE","official":false,"named":true,"luaName":"BreakRope","game":"rdr3","apiset":"client","returnType":"void","params":[{"name":"ropeId","type":"int*"},{"name":"ropeTop","type":"int*"},{"name":"ropeBottom","type":"int*"},{"name":"offsetX","type":"float"},{"name":"offsetY","type":"float"},{"name":"offsetZ","type":"float"},{"name":"p6","type":"int"}],"summary":"ropeTop returns top half of rope, ropeBottom returns bottom half of rope","descriptions":[{"source":"alloc8or","format":"text","body":"ropeTop returns top half of rope, ropeBottom returns bottom half of rope"}],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","sources":["alloc8or"],"doc":2,"url":"https://natives.borderlinerp.com/natives/PHYSICS/_BREAK_ROPE","markdownUrl":"https://natives.borderlinerp.com/natives/PHYSICS/_BREAK_ROPE.md","snippets":{"lua":"local ropeId, ropeTop, ropeBottom = BreakRope(offsetX, offsetY, offsetZ, p6)","luaInvoke":"local ropeId, ropeTop, ropeBottom = Citizen.InvokeNative(0x4CFA2B7FAE115ECB, Citizen.PointerValueInt(), Citizen.PointerValueInt(), Citizen.PointerValueInt(), offsetX, offsetY, offsetZ, p6)","js":"const [ropeId, ropeTop, ropeBottom] = BreakRope(offsetX, offsetY, offsetZ, p6);","jsInvoke":"const [ropeId, ropeTop, ropeBottom] = Citizen.invokeNative('0x4CFA2B7FAE115ECB', Citizen.pointerValueInt(), Citizen.pointerValueInt(), Citizen.pointerValueInt(), offsetX + 0.0000001, offsetY + 0.0000001, offsetZ + 0.0000001, p6);","csharp":"var ropeId = new OutputArgument();\nvar ropeTop = new OutputArgument();\nvar ropeBottom = new OutputArgument();\nFunction.Call((Hash)0x4CFA2B7FAE115ECB, ropeId, ropeTop, ropeBottom, offsetX, offsetY, offsetZ, p6);\n// ropeId.GetResult<int>()\n// ropeTop.GetResult<int>()\n// ropeBottom.GetResult<int>()","notes":["Float parameters: Lua integers (`10`, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write `10.0` or `value + 0.0`. The generated JS wrappers add `0.0000001` to 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 `InvokeNative` with the hash — it always works."]}}