SA-MP Forums Archive
3D text label - 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: 3D text label (/showthread.php?tid=606009)



3D text label - Micko123 - 28.04.2016

How to attach 3D text label to actor(PED)
I used this and it is not working
Код:
Create3DTextLabel("Dobrodosli na New Age DeathMatch server", 0x00FF00FF, 483.7206, -1750.3092, 13.5625, 0, 0);



Re: 3D text label - oMa37 - 28.04.2016

Try this:
http://forum.sa-mp.com/showthread.ph...24#post3691824


Re: 3D text label - Micko123 - 28.04.2016

I followed your tutorial. But it is not attaching it on Actor


Re: 3D text label - oMa37 - 28.04.2016

Try using streamer
and:
Код:
native STREAMER_TAG_3D_TEXT_LABEL 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 = STREAMER_3D_TEXT_LABEL_SD, STREAMER_TAG_AREA areaid = STREAMER_TAG_AREA -1);
native DestroyDynamic3DTextLabel(STREAMER_TAG_3D_TEXT_LABEL id);
native IsValidDynamic3DTextLabel(STREAMER_TAG_3D_TEXT_LABEL id);
native GetDynamic3DTextLabelText(STREAMER_TAG_3D_TEXT_LABEL id, text[], maxtext = sizeof text);
native UpdateDynamic3DTextLabelText(STREAMER_TAG_3D_TEXT_LABEL id, color, const text[]);



Re: 3D text label - Micko123 - 28.04.2016

and where should i put this?


Re: 3D text label - Micko123 - 28.04.2016

Can you PM me the code for this (if you have time). I am a bit noobish here


Re: 3D text label - Logic_ - 28.04.2016

Teach now oMa37, you need to teach how to connect 3d text label to the ped/actor not only give him the functions.


Re: 3D text label - iKevin - 28.04.2016

Quote:
Originally Posted by Micko123
Посмотреть сообщение
Can you PM me the code for this (if you have time). I am a bit noobish here
Show me the actor code and I'll do it for you.


Re: 3D text label - Micko123 - 28.04.2016

Quote:
Originally Posted by KevinExec
Посмотреть сообщение
Show me the actor code and I'll do it for you.
Код:
CreateActor(71, 1483.7206, -1750.3092, 15.4453, 4.2050);
Here you go


Re: 3D text label - oMa37 - 28.04.2016

Quote:
Originally Posted by ALiScripter
Посмотреть сообщение
Teach now oMa37, you need to teach how to connect 3d text label to the ped not only give him the functions.
Why not?
EDIT: Kevin was faster than me
Macko:
This may work, haven't tested it
PHP код:
// Top of your script
new Actor;
// OnGameModeInit()
Actor CreateActor(711483.7206, -1750.309215.44534.2050);
Text3D:Actor CreateDynamic3DTextLabel("Hey!", -11483.7206, -1750.309215.44533.0INVALID_PLAYER_IDINVALID_VEHICLE_ID0, -1, -1, -1100.0);