The Lab
MISC native

_CREATE_COLOR_STRING

returns const char*1 parambuild 1207

Returns a color string built from the packed RGB value rgb, for use in formatted text.

Signature

C
const char* _CREATE_COLOR_STRING(int rgb); // 0xBCC2CFADEA1AEA6C b1207

Parameters

#NameType
1rgbint

Facts

Facts about _CREATE_COLOR_STRING
Name
_CREATE_COLOR_STRING
Hash
0xBCC2CFADEA1AEA6C
Namespace
Returns
const char*
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
local result = Citizen.InvokeNative(0xBCC2CFADEA1AEA6C, -- _CREATE_COLOR_STRING
  0, -- int rgb
  Citizen.ResultAsString()
)
print(result)
JavaScript
const result = Citizen.invokeNative("0xBCC2CFADEA1AEA6C", // _CREATE_COLOR_STRING
  0, // int rgb
  Citizen.resultAsString()
);
console.log(result)
C#
string result = Function.Call<string>((Hash)0xBCC2CFADEA1AEA6C, // _CREATE_COLOR_STRING
  0 // int rgb
);
All MISC natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.