doorSystemSetSpringRemoved
DOOR_SYSTEM_SET_SPRING_REMOVED0xC485E07E4F0B7958The 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.
doorSystemSetSpringRemoved(
doorHash: Hash,
removed: boolean,
requestDoor: boolean,
forceUpdate: boolean
): voiddoorSystemSetSpringRemoved(
doorHash: Hash,
removed: boolean,
requestDoor: boolean,
forceUpdate: boolean
)Usage
JavaScript
doorSystemSetSpringRemoved(doorHash, removed, requestDoor, forceUpdate);Lua
doorSystemSetSpringRemoved(doorHash, removed, requestDoor, forceUpdate)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
doorHash | Hash | number | integer |
removed | BOOL | boolean | boolean |
requestDoor | BOOL | boolean | boolean |
forceUpdate | BOOL | boolean | boolean |
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