RedM Natives

ROPE_FORCE_LENGTH

Forces a rope to a certain length.

Hash0xD009F759A723DB1B
Runtime nameRopeForceLength
NamespacePHYSICS
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0xD009F759A723DB1B

Signature

void ROPE_FORCE_LENGTH(int ropeId, float length);

Parameters

NameTypeDescription
ropeIdint—
lengthfloat—

Returns void

Description

Forces a rope to a certain length.

Usage

Lua
RopeForceLength(ropeId, length)

-- always works, by hash
Citizen.InvokeNative(0xD009F759A723DB1B, ropeId, length)
JavaScript and C#
JavaScript
RopeForceLength(ropeId, length);

// by hash
Citizen.invokeNative('0xD009F759A723DB1B', ropeId, length + 0.0000001);
C#
Function.Call((Hash)0xD009F759A723DB1B, ropeId, length);
  • 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.

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.