Frequently ASKED Questions by THE Crimson Creek TEAM
I bought your scripts and I’d like to change the color of the prompt’s text. How do I do that?
In the config.lua for any of our scripts with a prompt, you will see these lines, or something similar near the top of the file.
stashprompt1 = "~q~[~u~ ",
stashprompt2 = " ~q~] ",
Use this chart below to look up the colors you want. Then change ~q~ or the ~u~ to be the new colors.
~e~ Red
~o~ Yellow
~d~ Orange
~m~ Grey
~q~ White
~t~ Light Grey
~v~ Black
~u~ Pink
~pa~ Blue
~t1~ Purple
~t3~ Light Blue
~t4~ Yellow
~t5~ Light Pink
~t6~ Green
~t7~ Dark Blue
~t8~ Light RedIsh
Can you make new colors?
Yes, you can make one new color per string. But there are limits to how you can use it.
If you use the above codes in the string, you can not go back to your custom color.
To make a custom color go to this section of your code.
------------- ------------- ------------- -------------
------------- Draws 3d Text
------------- ------------- ------------- -------------
-- This is from syn_county scripts
function DrawText3D(x, y, z, text)
local onScreen,_x,_y=GetScreenCoordFromWorldCoord(x, y, z)
local px,py,pz=table.unpack(GetGameplayCamCoord())
local dist = GetDistanceBetweenCoords(px,py,pz, x,y,z, 1)
local str = CreateVarString(10, "LITERAL_STRING", text, Citizen.ResultAsLong())
if onScreen then
SetTextScale(0.30, 0.30)
SetTextFontForCurrentCommand(1)
SetTextColor(255, 255, 255, 215)
SetTextCentre(1)
DisplayText(str,_x,_y)
local factor = (string.len(text)) / 225
--DrawSprite("feeds", "hud_menu_4a", _x, _y+0.0125,0.015+ factor, 0.03, 0.1, 35, 35, 35, 190, 0)
end
end
This line is what you change to alter the color.
SetTextColor(255, 255, 255, 215)
The first three values are RGB. Change them to be what you want. Sites like https://paletton.com will help you select a color and get the RGB values. (paletton: click your color, check out the palette, then bottom right click “Tables/export”, click color list, and then look under the color. You will see something like this…
A3939
RGB: 170–57–57
RGB [%]: 66.7–22.4–22.4
The middle line RGB: is the one you want. Enter those values, in the same order. )
That will change the base color for the text.
Will you make custom colors for us?
No, I will not.
## SUPPORT ##
- Scripts can be purchased at `https://crafted-by-little-dragons.tebex.io/`
- For assistance, please create a support ticket on our website `https://craftedbylittledragons.net/support-tickets`
- Please use the email address you purchased the script with to create the support ticket and account.
- [DISCORD](`https://discord.gg/pTgJNjVDby`)
- [DISCORD RULES] – Be polite, professional, and patient in your communications with staff, dev, and the general community.
Hits: 8