# OBJECT::_IS_DOOR_REGISTERED_WITH_OWNER

- **Hash:** `0x4F89DAD4156BA145`
- **Namespace:** OBJECT
- **Runtime name (Lua/JS):** `IsDoorRegisteredWithOwner`
- **Side:** client (game native)
- **Name status:** community guess (may change)
- **Documentation:** described
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/OBJECT/_IS_DOOR_REGISTERED_WITH_OWNER

## Signature

```c
BOOL _IS_DOOR_REGISTERED_WITH_OWNER(Hash doorHash);
```

## Parameters

- `doorHash` (`Hash`)

## Returns

`BOOL`

## Description

Returns true if door is alredy registered with owner

## Usage

### Lua

```lua
local retval = IsDoorRegisteredWithOwner(doorHash)

-- always available, by hash
local retval = Citizen.InvokeNative(0x4F89DAD4156BA145, doorHash, Citizen.ReturnResultAnyway())
```

### JavaScript

```js
const retval = IsDoorRegisteredWithOwner(doorHash);

// by hash
const retval = Citizen.invokeNative('0x4F89DAD4156BA145', doorHash, Citizen.returnResultAnyway());
```

### C#

```csharp
bool retval = Function.Call<bool>((Hash)0x4F89DAD4156BA145, doorHash);
```

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