Skip to content
  • Fight Night
  • Server Release
  • Testing Sessions
  • Server Rules (All Servers)
  • (In) Territory Laws
  • City Laws
  • Drained Server Rules
  • Devastated Server Rules
  • Little Creek Server Rules
  • In For A Penny Server Rules
Territory

Territory

Western RP with a Twist

  • Calendar of Events
  • FAQ’s
  • Tutorials
  • Contact Staff
  • Server List
  • Server Rules (All Servers)
  • Toggle search form
Tutorails for Redm, CFX, or Vorp

How do I change the G or E prompt colors?

Posted on December 2, 2022December 6, 2022 By Crimson Creek Team No Comments on How do I change the G or E prompt colors?

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.

Crimson Creek Team

Crimson Creek Team, a group of volunteers working together to have a good time RPing and running our servers.

See author's posts

Hits: 0

Blog, FAQ, Server Setup FAQs Tags:admin, cfx, change, color, config, configuration, custom, prompt, redm, vorp

Post navigation

Previous Post: How do I give a player admin access?
Next Post: How do I use your ForagePlants script?

Related Posts

RedM Tutorial: Cigarettes and Cigars / Syn Crafting Blog
St Denis Funeral with Obituary Blog
Tutorails for Redm, CFX, or Vorp RedM/CFX/VORP Project – new vorp on ubuntu? Blog
In for a Penny? by Crimson Creek Blog
Tutorails for Redm, CFX, or Vorp Is there a way to have scripts do something on restart or stop? Redm/CFX/LUA Blog
Valentine Destroyed Blog

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *


Newsletter



Holiday Events

There are no upcoming events.

Archive

  • December 2022
  • November 2022
  • October 2022
  • September 2022
  • August 2022
  • July 2022
  • June 2022
  • May 2022

Donations

Patreon

Kofi

There are no upcoming events at this time

February 2023
M T W T F S S
 12345
6789101112
13141516171819
20212223242526
2728  
« Dec    

Copyright © 2023 Territory.

Powered by PressBook Masonry Dark

Loading...

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.