ObjectClient

doorSystemSetAutomaticRate

DOOR_SYSTEM_SET_AUTOMATIC_RATE0x03C27E13B42A0E82

The 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.

SignatureJavaScript
doorSystemSetAutomaticRate(
  doorHash: Hash,
  rate: number,
  requestDoor: boolean,
  forceUpdate: boolean
): void
SignatureLua
doorSystemSetAutomaticRate(
  doorHash: Hash,
  rate: number,
  requestDoor: boolean,
  forceUpdate: boolean
)

Usage

JavaScript
doorSystemSetAutomaticRate(doorHash, rate, requestDoor, forceUpdate);
Lua
doorSystemSetAutomaticRate(doorHash, rate, requestDoor, forceUpdate)

Parameters

ParameterTypeJavaScriptLua
doorHashHashnumberinteger
ratefloatnumbernumber
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_AUTOMATIC_RATE(Hash doorHash, float rate, BOOL requestDoor, BOOL forceUpdate)
Hash
0x03C27E13B42A0E82

Open in the interactive natives reference