SA-MP Forums Archive
CreateDynamic3DTextLabel - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: CreateDynamic3DTextLabel (/showthread.php?tid=602321)



CreateDynamic3DTextLabel - Amit1998 - 05.03.2016

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.


Re: CreateDynamic3DTextLabel - xEF - 05.03.2016

Well on the link below all is explained.

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

Regards.


Re: CreateDynamic3DTextLabel - Amit1998 - 05.03.2016

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.


Re: CreateDynamic3DTextLabel - xEF - 05.03.2016

Код:
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.


Re: CreateDynamic3DTextLabel - Amit1998 - 05.03.2016

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); 



Re: CreateDynamic3DTextLabel - J0sh... - 05.03.2016

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.