_CREATE_COLOR_STRING
Returns a formatted string (0x%x)
Hash
0xBCC2CFADEA1AEA6CRuntime name
CreateColorStringNamespaceMISC
SideClient
NameCommunity guess
Docs
Since build1207
Signature
const char* _CREATE_COLOR_STRING(int rgb);Parameters
| Name | Type | Description |
|---|---|---|
rgb | int | — |
Returns const char*
Description
Returns a formatted string (0x%x)
Usage
local retval = CreateColorString(rgb)
-- always works, by hash
local retval = Citizen.InvokeNative(0xBCC2CFADEA1AEA6C, rgb, Citizen.ResultAsString())JavaScript and C#
const retval = CreateColorString(rgb);
// by hash
const retval = Citizen.invokeNative('0xBCC2CFADEA1AEA6C', rgb, Citizen.returnResultAnyway(), Citizen.resultAsString());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
InvokeNativewith the hash — it always works.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.