_ROPE_SET_LENGTH_CHANGE_RATE
Sets the rate used by START_ROPE_WINDING and START_ROPE_UNWINDING_FRONT to change the rope's forced length.
Hash
0x1FC92BDBA1106BD2Runtime name
RopeSetLengthChangeRateNamespacePHYSICS
SideClient
NameCommunity guess
Docs
Since build1207
Also known as
_ROPE_FORCE_LENGHTSignature
void _ROPE_SET_LENGTH_CHANGE_RATE(int ropeId, float lengthChangeRate);Parameters
| Name | Type | Description |
|---|---|---|
ropeId | int | — |
lengthChangeRate | float | — |
Returns void
Description
Sets the rate used by START_ROPE_WINDING and START_ROPE_UNWINDING_FRONT to change the rope's forced length.
ROPE_FORCE_LENGTH directly writes the forced length instead.
Usage
RopeSetLengthChangeRate(ropeId, lengthChangeRate)
-- always works, by hash
Citizen.InvokeNative(0x1FC92BDBA1106BD2, ropeId, lengthChangeRate)JavaScript and C#
RopeSetLengthChangeRate(ropeId, lengthChangeRate);
// by hash
Citizen.invokeNative('0x1FC92BDBA1106BD2', ropeId, lengthChangeRate + 0.0000001);Function.Call((Hash)0x1FC92BDBA1106BD2, ropeId, lengthChangeRate);- 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. - 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.