doorSystemGetAutomaticDistance
DOOR_SYSTEM_GET_AUTOMATIC_DISTANCE0xE851471AEFC3374FThe 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.
doorSystemGetAutomaticDistance(doorHash: Hash): numberdoorSystemGetAutomaticDistance(doorHash: Hash): numberUsage
JavaScript
const value = doorSystemGetAutomaticDistance(doorHash);Lua
local value = doorSystemGetAutomaticDistance(doorHash)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
doorHash | Hash | number | integer |
Returns
float JavaScript number, Lua numberReference
- 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