3DTextLabel
#1

How do i code to change 3DTextLabel's font from this:
http://i.imgur.com/zQQZS0n.jpg

To this:

http://i.imgur.com/ZJU0Fi0.jpg
Reply
#2

Looks exactly the same to me. If you're on about the colors, then read https://sampwiki.blast.hk/wiki/Colors_List#Color_embedding
Reply
#3

Sorry for not explaining.
If you look at the screens, youll notice that 1st 3d label's color is abit gray and dark, but second label's color ir bright and shiny.
Reply
#4

www.colorpicker.com
Reply
#5

Quote:
Originally Posted by RaZzZzoR
Посмотреть сообщение
You dont get it.. In those 2 screens, they both have the same color code, but the saturation is different.
Reply
#6

You mean the transparency? Change the last two 'digits' of the hex color. They should be FF.
Reply
#7

U've neglected to pay attention to the color alpha value in the hex code for the color ur using.

e.g.

0xRRGGBBAA

will give a nice kinda semi see through white

0xRRGGBBFF

will give a very vibrant white

and,

0xRRGGBB00

will give a completely invisible white.

You can also embed colors into the text in order to change it half way through,

e.g.

CreatePlayer3DTextLabel(playerid,"{0000FF}Fuel Station: {FF3300}Large Vehicle Type", 0xFFFFFFFF ,0,0,0,30.0,INVALID_PLAYER_ID,vehicleid,0);
Reply
#8

Quote:
Originally Posted by CJay9209
Посмотреть сообщение
U've neglected to pay attention to the color alpha value in the hex code for the color ur using.

e.g.

0xRRGGBBAA

will give a nice kinda semi see through white

0xRRGGBBFF

will give a very vibrant white

and,

0xRRGGBB00

will give a completely invisible white.

You can also embed colors into the text in order to change it half way through,

e.g.

CreatePlayer3DTextLabel(playerid,"{0000FF}Fuel Station: {FF3300}Large Vehicle Type", 0xFFFFFFFF ,0,0,0,30.0,INVALID_PLAYER_ID,vehicleid,0);
Thanks, this helped.
But could you explain me why is it that in the both screens, the color code is 0xAA3333AA, but in 1. screen the color looks like AA, but in the 2. screen, the color is somewhere close to FF?
Reply
#9

It's most likely that the text in the first image has no embedded text coloring. Embedded text coloring overlays the default color specified and is always FF effectively. In that case the only thing the alpha code specifies is the background color which u can use to create a border around your text an make it stand out a little better.
Reply
#10

Quote:
Originally Posted by CJay9209
Посмотреть сообщение
It's most likely that the text in the first image has no embedded text coloring. Embedded text coloring overlays the default color specified and is always FF effectively. In that case the only thing the alpha code specifies is the background color which u can use to create a border around your text an make it stand out a little better.
And how to code/script that?

EDIT: Nevermind, got them working.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)