# CFX::GET_HOST_ID

- **Hash:** `0x5F70F5A3`
- **Namespace:** CFX
- **Runtime name (Lua/JS):** `GetHostId`
- **Side:** server (Cfx runtime native)
- **Name status:** official
- **Documentation:** named only
- **URL:** https://natives.borderlinerp.com/natives/CFX/GET_HOST_ID

## Signature

```c
char* GET_HOST_ID();
```

## Returns

`char*`

## Usage

### Lua

```lua
local retval = GetHostId()

-- always available, by hash
local retval = Citizen.InvokeNative(0x5f70f5a3, Citizen.ResultAsString())
```

### JavaScript

```js
const retval = GetHostId();

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

### C#

```csharp
string retval = Function.Call<string>((Hash)0x5f70f5a3);
```

*Sources: Cfx.re native reference.*
