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[], 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);
MyCode
PHP код:
native Text3D:CreateDynamic3DTextLabel("Test Text", COLOR_WHITE, x, y, z+10, 100, INVALID_PLAYER_ID, vehicleid, 1);
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,