PhysicsClient

ropeDrawShadowEnabled

ROPE_DRAW_SHADOW_ENABLED0xF159A63806BB5BA8

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

SignatureJavaScript
ropeDrawShadowEnabled(ropeId: number, toggle: boolean): void
SignatureLua
ropeDrawShadowEnabled(ropeId: integer, toggle: boolean)
⚠
Known issue

The value of ropeId does not reach the game yet: LS:MP currently treats this pointer as an output, so the game receives an empty value instead of yours.

Usage

JavaScript
ropeDrawShadowEnabled(ropeId, toggle);
Lua
ropeDrawShadowEnabled(ropeId, toggle)

Parameters

ParameterTypeJavaScriptLua
ropeIdintnumberinteger
toggleBOOLbooleanboolean

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Physics PHYSICS
In the game
void ROPE_DRAW_SHADOW_ENABLED(int* ropeId, BOOL toggle)
Hash
0xF159A63806BB5BA8

Open in the interactive natives reference