SA-MP Forums Archive
CreateDynamic3DTextLabel & Attach - 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 & Attach (/showthread.php?tid=538375)



CreateDynamic3DTextLabel & Attach - maxisaibot - 21.09.2014

Hello.

When i'm trying attach Dynamic3DTextLabel to vehicle and players, allways showing on fix position. How can i change xyz pos?

I'm using:
CreateDynamic3DTextLabel
Incognito's Streamer Plugin -> https://sampforum.blast.hk/showthread.php?tid=102865


Re: CreateDynamic3DTextLabel & Attach - BlackSirrah239 - 21.09.2014

How are you attaching the text label? Is it somewhat like this?:
Код:
CreateDynamic3DTextLabel("Player ID 0", -1, x, y, z, 100.0, .attachedplayer = 0);
CreateDynamic3DTextLabel("Vehicle ID 0", -1, x, y, z, 100.0, .attachedvehicle = 0);



Re: CreateDynamic3DTextLabel & Attach - maxisaibot - 21.09.2014

Quote:
Originally Posted by BlackSirrah239
Посмотреть сообщение
How are you attaching the text label? Is it somewhat like this?:
Код:
CreateDynamic3DTextLabel("Player ID 0", -1, x, y, z, 100.0, .attachedplayer = 0);
CreateDynamic3DTextLabel("Vehicle ID 0", -1, x, y, z, 100.0, .attachedvehicle = 0);
Native:
PHP код:
native Text3D:CreateDynamic3DTextLabel(const text[], colorFloat:xFloat:yFloat:zFloat:drawdistanceattachedplayer INVALID_PLAYER_IDattachedvehicle INVALID_VEHICLE_IDtestlos 0worldid = -1interiorid = -1playerid = -1Float:streamdistance 100.0); 
MyCode
PHP код:
native Text3D:CreateDynamic3DTextLabel("Test Text"COLOR_WHITExyz+10100INVALID_PLAYER_IDvehicleid1); 
Result:
z+10 or z+20 not difrent Allways showing on car's zone


Re: CreateDynamic3DTextLabel & Attach - Pottus - 21.09.2014

native Streamer_SetFloatData(type, {Text3D,_}:id, data, Float:value);

E_STREAMER_ATTACH_OFFSET_X,
E_STREAMER_ATTACH_OFFSET_Y,
E_STREAMER_ATTACH_OFFSET_Z,