ObjectClient

doorSystemSetSpringRemoved

DOOR_SYSTEM_SET_SPRING_REMOVED0xC485E07E4F0B7958

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

SignatureJavaScript
doorSystemSetSpringRemoved(
  doorHash: Hash,
  removed: boolean,
  requestDoor: boolean,
  forceUpdate: boolean
): void
SignatureLua
doorSystemSetSpringRemoved(
  doorHash: Hash,
  removed: boolean,
  requestDoor: boolean,
  forceUpdate: boolean
)

Usage

JavaScript
doorSystemSetSpringRemoved(doorHash, removed, requestDoor, forceUpdate);
Lua
doorSystemSetSpringRemoved(doorHash, removed, requestDoor, forceUpdate)

Parameters

ParameterTypeJavaScriptLua
doorHashHashnumberinteger
removedBOOLbooleanboolean
requestDoorBOOLbooleanboolean
forceUpdateBOOLbooleanboolean

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.

Includes networking check: ownership vs. or the door itself isn't networked.
forceUpdate on true invokes doorSystemSetDoorState otherwise requestDoor is unused.

Reference

Namespace
Object OBJECT
In the game
void DOOR_SYSTEM_SET_SPRING_REMOVED(Hash doorHash, BOOL removed, BOOL requestDoor, BOOL forceUpdate)
Hash
0xC485E07E4F0B7958

Open in the interactive natives reference