ObjectClient

setDriveArticulatedJoint

SET_DRIVE_ARTICULATED_JOINT0x911024442F4898F0

The GTA V native SET_DRIVE_ARTICULATED_JOINT of the OBJECT namespace, as LS:MP client scripts call it: the global function setDriveArticulatedJoint, in JavaScript and in Lua.

SignatureJavaScript
setDriveArticulatedJoint(object: Object, toggle: boolean, p2: number): void
SignatureLua
setDriveArticulatedJoint(object: Object, toggle: boolean, p2: integer)

Usage

JavaScript
setDriveArticulatedJoint(object, toggle, p2);
Lua
setDriveArticulatedJoint(object, toggle, p2)

Parameters

ParameterTypeJavaScriptLua
objectObjectnumberinteger
toggleBOOLbooleanboolean
p2intnumberinteger

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.

Activate the physics to: "xs_prop_arena_{flipper,wall,bollard,turntable,pit}"

Reference

Namespace
Object OBJECT
In the game
void SET_DRIVE_ARTICULATED_JOINT(Object object, BOOL toggle, int p2)
Hash
0x911024442F4898F0
Introduced
Game build 1604 legacy numbering
Formerly
_SET_ENABLE_ARENA_PROP_PHYSICS

Open in the interactive natives reference