Loading other sprites? [TextDraw] - 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: Loading other sprites? [TextDraw] (
/showthread.php?tid=487682)
Loading other sprites? [TextDraw] -
BullseyeHawk - 14.01.2014
I've been online in a lot of servers, and one that sticked out for me was one with sprites on screen that are actually from gta3.img. I've been working for sometime with sprites but I never succeeded to load for everyone without a custom file a txd file from gta3.img.
Is it possible? Cause the server has like 100 players daily and to do this texture, which I counted is about 90 maybe more dots(for the picture2textdraw) and 90*100 is way over the maximum limit of created textdraws.
So how do they do it? How is it possible?
Example:
Re : Loading other sprites? [TextDraw] -
S4t3K - 14.01.2014
I think that these objects were created by the server foundator.
Re: Loading other sprites? [TextDraw] -
BullseyeHawk - 14.01.2014
Impossible, so how does it load for me?
If the server owner created this object, it won't work. I would have needed to download a special .txd file for it to work. I have found these objects inside gta3.img. For example
GTA3.IMG -> icons4.txd -> heart -- Second image, under the big speaker.
Re: Loading other sprites? [TextDraw] -
Vince - 14.01.2014
https://sampwiki.blast.hk/wiki/TextDrawSetPreviewModel
Re: Loading other sprites? [TextDraw] -
BullseyeHawk - 14.01.2014
Quote:
Originally Posted by Vince
|
Never tought of that, never saw it either (except for vehicle usage).
Thank you Vince!
One more question, how do to you apply color onto the object? I am trying to apply green on object 1240 like in the example image. All I am getting is a red one.
Код:
PlayerTextDrawBoxColor(playerid, hud_heart_sprite[playerid], 0x00FF00FF);
EDIT: Nevermind! I've noticed I applied color onto the box and not the sprite. What a stupid move >.<