SA-MP Forums Archive
[HELP] dynamiclabel is seeing thru the object - 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: [HELP] dynamiclabel is seeing thru the object (/showthread.php?tid=556000)



[HELP] dynamiclabel is seeing thru the object - Luca12 - 09.01.2015

Hello I have for saling house dynamiclabel like HouseLabel[id] = CreateDynamic3DTextLabel(result,0x0ed400FF,enterx, entery,enterz,10.0,INVALID_PLAYER_ID,INVALID_VEHIC LE_ID,0); It's oke but how can I make here that player doesn't see that label thru the object if you know what I mean? Thanks


Re: [HELP] dynamiclabel is seeing thru the object - CalvinC - 09.01.2015

pawn Код:
HouseLabel[id] = CreateDynamic3DTextLabel(result,0x0ed400FF,enterx, entery,enterz,10.0,INVALID_PLAYER_ID,INVALID_VEHIC LE_ID,0,1);
That might work.
https://sampwiki.blast.hk/wiki/Create3DTextLabel
As you can see on the wiki, there's a last number you can use to toggle seethrough.
0 = Seethrough.
1 = Not seethrough.


Re: [HELP] dynamiclabel is seeing thru the object - Luca12 - 09.01.2015

pawn Код:
HouseLabel[i+1] = CreateDynamic3DTextLabel(str,0x0ed400FF,KucaInfo[i+1][hUlazX],KucaInfo[i+1][hUlazY],KucaInfo[i+1][hUlazZ],25,INVALID_PLAYER_ID,INVALID_VEHICLE_ID,0,-1,-1,-1,100.0);
I was try set 1 behind 100.0 but it give me a warning

pawn Код:
native Text3D:CreateDynamic3DTextLabel(const text[], color, Float:x, Float:y, Float:z, Float:drawdistance, attachedplayer = INVALID_PLAYER_ID, attachedvehicle = INVALID_VEHICLE_ID, testlos = 0, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = 100.0);
Also I was look at this native but there's nothing about setting label through object