doorSystemSetAutomaticRate
DOOR_SYSTEM_SET_AUTOMATIC_RATE0x03C27E13B42A0E82The GTA V native DOOR_SYSTEM_SET_AUTOMATIC_RATE of the OBJECT namespace, as LS:MP client scripts call it: the global function doorSystemSetAutomaticRate, in JavaScript and in Lua.
doorSystemSetAutomaticRate(
doorHash: Hash,
rate: number,
requestDoor: boolean,
forceUpdate: boolean
): voiddoorSystemSetAutomaticRate(
doorHash: Hash,
rate: number,
requestDoor: boolean,
forceUpdate: boolean
)Usage
JavaScript
doorSystemSetAutomaticRate(doorHash, rate, requestDoor, forceUpdate);Lua
doorSystemSetAutomaticRate(doorHash, rate, requestDoor, forceUpdate)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
doorHash | Hash | number | integer |
rate | float | number | number |
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_AUTOMATIC_RATE(Hash doorHash, float rate, BOOL requestDoor, BOOL forceUpdate)- Hash
0x03C27E13B42A0E82