# CFX::NETWORK_GET_FIRST_ENTITY_OWNER

- **Hash:** `0x1E546224`
- **Namespace:** CFX
- **Runtime name (Lua/JS):** `NetworkGetFirstEntityOwner`
- **Side:** server (Cfx runtime native)
- **Name status:** official
- **Documentation:** described
- **URL:** https://natives.borderlinerp.com/natives/CFX/NETWORK_GET_FIRST_ENTITY_OWNER

## Signature

```c
int NETWORK_GET_FIRST_ENTITY_OWNER(Entity entity);
```

## Parameters

- `entity` (`Entity`) — The entity to get the first owner for.

## Returns

`int` — The server ID of the first entity owner.

## Description

*Source: Cfx.re native reference*

Returns the first owner ID of the specified entity.

## Usage

### Lua

```lua
local retval = NetworkGetFirstEntityOwner(entity)

-- always available, by hash
local retval = Citizen.InvokeNative(0x1e546224, entity, Citizen.ResultAsInteger())
```

### JavaScript

```js
const retval = NetworkGetFirstEntityOwner(entity);

// by hash
const retval = Citizen.invokeNative('0x1e546224', entity, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
```

### C#

```csharp
int retval = Function.Call<int>((Hash)0x1e546224, entity);
```

*Sources: Cfx.re native reference.*
