RedM Natives

_DOOR_SYSTEM_SET_AUTOMATIC_STATE

_ALLOW_* - _ATTACH_*

Hash0x1BC47A9DEDC8DF5D
Runtime nameDoorSystemSetAutomaticState
NamespaceOBJECT
SideClient
NameCommunity guess
Docs
Since build1207

Signature

void _DOOR_SYSTEM_SET_AUTOMATIC_STATE(Hash doorHash, BOOL disable);

Parameters

NameTypeDescription
doorHashHash—
disableBOOL—

Returns void

Description

_ALLOW_* - _ATTACH_*

Usage

Lua
DoorSystemSetAutomaticState(doorHash, disable)

-- always works, by hash
Citizen.InvokeNative(0x1BC47A9DEDC8DF5D, doorHash, disable)
JavaScript and C#
JavaScript
DoorSystemSetAutomaticState(doorHash, disable);

// by hash
Citizen.invokeNative('0x1BC47A9DEDC8DF5D', doorHash, disable);
C#
Function.Call((Hash)0x1BC47A9DEDC8DF5D, doorHash, disable);
  • Hash parameters: the named function also accepts a string and hashes it for you; Citizen.InvokeNative needs the number — pass joaat("name") or a backtick literal like `name`.
  • The name is a community guess and may change. If the named call is missing in your client build, use InvokeNative with the hash — it always works.

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.