ObjectClient

doorSystemGetAutomaticDistance

DOOR_SYSTEM_GET_AUTOMATIC_DISTANCE0xE851471AEFC3374F

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

SignatureJavaScript
doorSystemGetAutomaticDistance(doorHash: Hash): number
SignatureLua
doorSystemGetAutomaticDistance(doorHash: Hash): number

Usage

JavaScript
const value = doorSystemGetAutomaticDistance(doorHash);
Lua
local value = doorSystemGetAutomaticDistance(doorHash)

Parameters

ParameterTypeJavaScriptLua
doorHashHashnumberinteger

Returns

float JavaScript number, Lua number

Reference

Namespace
Object OBJECT
In the game
float DOOR_SYSTEM_GET_AUTOMATIC_DISTANCE(Hash doorHash)
Hash
0xE851471AEFC3374F
Introduced
Game build 1868 legacy numbering
Formerly
_DOOR_SYSTEM_GET_AUTOMATIC_DISTANCE

Open in the interactive natives reference