DOOR_SYSTEM_GET_DOOR_STATE
Hash
0x160AA1B32F6139B8Runtime name
DoorSystemGetDoorStateNamespaceOBJECT
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x160AA1B32F6139B8Signature
int DOOR_SYSTEM_GET_DOOR_STATE(Hash doorHash);Parameters
| Name | Type | Description |
|---|---|---|
doorHash | Hash | — |
Returns int
Usage
local retval = DoorSystemGetDoorState(doorHash)
-- always works, by hash
local retval = Citizen.InvokeNative(0x160AA1B32F6139B8, doorHash, Citizen.ResultAsInteger())JavaScript and C#
const retval = DoorSystemGetDoorState(doorHash);
// by hash
const retval = Citizen.invokeNative('0x160AA1B32F6139B8', doorHash, Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0x160AA1B32F6139B8, doorHash);- Hash parameters: the named function also accepts a string and hashes it for you;
Citizen.InvokeNativeneeds the number — passjoaat("name")or a backtick literal like`name`.
Enums and flags
- DoorScriptState 5 values
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.