# CFX::REGISTER_RAW_NUI_CALLBACK

- **Hash:** `0xA8AE9C2F`
- **Namespace:** CFX
- **Runtime name (Lua/JS):** `RegisterRawNuiCallback`
- **Side:** client (Cfx runtime native)
- **Name status:** official
- **Documentation:** named only
- **URL:** https://natives.borderlinerp.com/natives/CFX/REGISTER_RAW_NUI_CALLBACK

## Signature

```c
void REGISTER_RAW_NUI_CALLBACK(char* callbackType, func callback);
```

## Parameters

- `callbackType` (`char*`)
- `callback` (`func`)

## Returns

`void`

## Usage

### Lua

```lua
RegisterRawNuiCallback(callbackType, callback)

-- always available, by hash
Citizen.InvokeNative(0xa8ae9c2f, callbackType, callback)
```

### JavaScript

```js
RegisterRawNuiCallback(callbackType, callback);

// by hash
Citizen.invokeNative('0xa8ae9c2f', callbackType, callback);
```

### C#

```csharp
Function.Call((Hash)0xa8ae9c2f, callbackType, callback);
```

## See also

- [CFX::UNREGISTER_RAW_NUI_CALLBACK](https://natives.borderlinerp.com/natives/CFX/UNREGISTER_RAW_NUI_CALLBACK.md) — Will unregister and cleanup a registered NUI callback handler.

*Sources: Cfx.re native reference.*
