CreateDynamic3DTextLabel
#1

Hey guys,
I'd like to know how I can add an outline to a Dynamic3DTextLabel as I've seen it around many servers and couldn't get it on mine.
Here's a picture of a dynamic text label with an outline:

Here's one without it:

I'll +REP the helper, thanks.
Reply
#2

Well on the link below all is explained.

https://sampwiki.blast.hk/wiki/Create3DTextLabel

Regards.
Reply
#3

Quote:
Originally Posted by xEF
Посмотреть сообщение
Well on the link below all is explained.

https://sampwiki.blast.hk/wiki/Create3DTextLabel

Regards.
I gave it a look earlier while I was scripting shit, and still couldn't find a precise definition on how to set an outline.
Reply
#4

Код:
Create3DTextLabel("{FF0000}xTreme Evolution Freeroam Gaming!", 0x008000FF,1424.7169,-2286.9709,13.4098,250.0, 0);
"{FF0000} xTreme Evolution Freeroam Gaming!" = 3D label text

0x008000FF = text color

1424.7169,-2286.9709,13.4098 = position (x,y,z)

250.0 = draw distance as it can be seen, from the position of creation

0 = virtual world

Create3DTextLabel line must be ongamemodeinit.
Reply
#5

Quote:
Originally Posted by xEF
Посмотреть сообщение
Код:
Create3DTextLabel("{FF0000}xTreme Evolution Freeroam Gaming!", 0x008000FF,1424.7169,-2286.9709,13.4098,250.0, 0);
"{FF0000} xTreme Evolution Freeroam Gaming!" = 3D label text

0x008000FF = text color

1424.7169,-2286.9709,13.4098 = position (x,y,z)

250.0 = draw distance as it can be seen, from the position of creation

0 = virtual world

Create3DTextLabel line must be ongamemodeinit.
Hmm Im using the following code inside a stock which is being called at the GameModeInit and it still doesn't work..

PHP код:
    format(whnamezsizeof(whnamez), "{40BCFF}[ %s's Warehouse ]\n{AECDE6}Level: {40BCFF}%d\n{AECDE6}Lead: {40BCFF}%s\n{AECDE6}Metal: {40BCFF}%d\n{AECDE6}Materials: {40BCFF}%d"wh[i][whname],wh[i][whlevel],number_format(wh[i][whlead]),wh[i][whmetal],wh[i][whmaterials], wh[i][outx],wh[i][outy],wh[i][outz]);
        
wh[i][whlabel] = Create3DTextLabel(whnamezCOLOR_WHITEwh[i][outx],wh[i][outy],wh[i][outz]+0.6,30,0); 
Reply
#6

Quote:
Originally Posted by Amit1998
Посмотреть сообщение
Hmm Im using the following code inside a stock which is being called at the GameModeInit and it still doesn't work..

PHP код:
    format(whnamezsizeof(whnamez), "{40BCFF}[ %s's Warehouse ]\n{AECDE6}Level: {40BCFF}%d\n{AECDE6}Lead: {40BCFF}%s\n{AECDE6}Metal: {40BCFF}%d\n{AECDE6}Materials: {40BCFF}%d"wh[i][whname],wh[i][whlevel],number_format(wh[i][whlead]),wh[i][whmetal],wh[i][whmaterials], wh[i][outx],wh[i][outy],wh[i][outz]);
        
wh[i][whlabel] = Create3DTextLabel(whnamezCOLOR_WHITEwh[i][outx],wh[i][outy],wh[i][outz]+0.6,30,0); 
Quote:
Originally Posted by Kalcor
Посмотреть сообщение
I don't know if this should be considered a bug. Colour embedding just doesn't support alpha.
This probably might be true, but I don't know if it was "fixed" in later versions, it seems to be the reason though.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)