PhysicsClient

loadRopeData

LOAD_ROPE_DATA0xCBB203C04D1ABD27

The GTA V native LOAD_ROPE_DATA of the PHYSICS namespace, as LS:MP client scripts call it: the global function loadRopeData, in JavaScript and in Lua.

SignatureJavaScript
loadRopeData(ropeId: number, rope_preset: string): void
SignatureLua
loadRopeData(ropeId: integer, rope_preset: string)

Usage

JavaScript
loadRopeData(ropeId, rope_preset);
Lua
loadRopeData(ropeId, rope_preset)

Parameters

ParameterTypeJavaScriptLua
ropeIdintnumberinteger
rope_presetstringstringstring

Returns

Nothing. In JavaScript the call evaluates to undefined.

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

Rope presets can be found in the gamefiles. One example is "ropeFamily3", it is NOT a hash but rather a string.

Reference

Namespace
Physics PHYSICS
In the game
void LOAD_ROPE_DATA(int ropeId, const char* rope_preset)
Hash
0xCBB203C04D1ABD27

Open in the interactive natives reference