# MISC::_CREATE_COLOR_STRING

- **Hash:** `0xBCC2CFADEA1AEA6C`
- **Namespace:** MISC
- **Runtime name (Lua/JS):** `CreateColorString`
- **Side:** client (game native)
- **Name status:** community guess (may change)
- **Documentation:** described
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/MISC/_CREATE_COLOR_STRING

## Signature

```c
const char* _CREATE_COLOR_STRING(int rgb);
```

## Parameters

- `rgb` (`int`)

## Returns

`const char*`

## Description

Returns a formatted string (0x%x)

## Usage

### Lua

```lua
local retval = CreateColorString(rgb)

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

### JavaScript

```js
const retval = CreateColorString(rgb);

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

### C#

```csharp
string retval = Function.Call<string>((Hash)0xBCC2CFADEA1AEA6C, rgb);
```

- The name is a community guess and may change. If the named call is missing in your client build, use `InvokeNative` with the hash — it always works.

*Sources: alloc8or RDR3 NativeDB.*
