# CFX::GET_HASH_KEY

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

## Signature

```c
Hash GET_HASH_KEY(char* model);
```

## Parameters

- `model` (`char*`)

## Returns

`Hash`

## Description

*Source: Cfx.re native reference*

This native converts the passed string to a hash.

## Usage

### Lua

```lua
local retval = GetHashKey(model)

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

### JavaScript

```js
const retval = GetHashKey(model);

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

### C#

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

*Sources: Cfx.re native reference.*
