ROPE_FORCE_LENGTH
Forces a rope to a certain length.
Hash
0xD009F759A723DB1BRuntime name
RopeForceLengthNamespacePHYSICS
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0xD009F759A723DB1BSignature
void ROPE_FORCE_LENGTH(int ropeId, float length);Parameters
| Name | Type | Description |
|---|---|---|
ropeId | int | — |
length | float | — |
Returns void
Description
Forces a rope to a certain length.
Usage
RopeForceLength(ropeId, length)
-- always works, by hash
Citizen.InvokeNative(0xD009F759A723DB1B, ropeId, length)JavaScript and C#
RopeForceLength(ropeId, length);
// by hash
Citizen.invokeNative('0xD009F759A723DB1B', ropeId, length + 0.0000001);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. Write10.0orvalue + 0.0. The generated JS wrappers add0.0000001to non-zero floats for the same reason.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.