_CREATE_COLOR_STRING
Returns a color string built from the packed RGB value rgb, for use in formatted text.
Signature
const char* _CREATE_COLOR_STRING(int rgb); // 0xBCC2CFADEA1AEA6C b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | rgb | int |
Facts
| 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.
local result = Citizen.InvokeNative(0xBCC2CFADEA1AEA6C, -- _CREATE_COLOR_STRING
0, -- int rgb
Citizen.ResultAsString()
)
print(result)const result = Citizen.invokeNative("0xBCC2CFADEA1AEA6C", // _CREATE_COLOR_STRING
0, // int rgb
Citizen.resultAsString()
);
console.log(result)string result = Function.Call<string>((Hash)0xBCC2CFADEA1AEA6C, // _CREATE_COLOR_STRING
0 // int rgb
);Related MISC natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.