# CFX::GET_ENTITY_ADDRESS

- **Hash:** `0x9A3144BC`
- **Namespace:** CFX
- **Runtime name (Lua/JS):** `GetEntityAddress`
- **Side:** client (Cfx runtime native)
- **Name status:** official
- **Documentation:** described
- **URL:** https://natives.borderlinerp.com/natives/CFX/GET_ENTITY_ADDRESS

## Signature

```c
Any* GET_ENTITY_ADDRESS(Entity entity);
```

## Parameters

- `entity` (`Entity`) — The handle of the entity to get the address of.

## Returns

`Any*` — A pointer containing the memory address of the entity.

## Description

*Source: Cfx.re native reference*

**Experimental**: This native may be altered or removed in future versions of CitizenFX without warning.

Returns the memory address of an entity.

This native is intended for singleplayer debugging, and may not be available during multiplayer.

## Usage

### Lua

```lua
local retval = GetEntityAddress(entity)

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

### JavaScript

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

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

### C#

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

*Sources: Cfx.re native reference.*
