RedM Natives

_CREATE_COLOR_STRING

Returns a formatted string (0x%x)

Hash0xBCC2CFADEA1AEA6C
Runtime nameCreateColorString
NamespaceMISC
SideClient
NameCommunity guess
Docs
Since build1207

Signature

const char* _CREATE_COLOR_STRING(int rgb);

Parameters

NameTypeDescription
rgbint—

Returns const char*

Description

Returns a formatted string (0x%x)

Usage

Lua
local retval = CreateColorString(rgb)

-- always works, by hash
local retval = Citizen.InvokeNative(0xBCC2CFADEA1AEA6C, rgb, Citizen.ResultAsString())
JavaScript and C#
JavaScript
const retval = CreateColorString(rgb);

// by hash
const retval = Citizen.invokeNative('0xBCC2CFADEA1AEA6C', rgb, Citizen.returnResultAnyway(), Citizen.resultAsString());
C#
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

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.