SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 14/01/2014, 05:29 PM   #1
BullseyeHawk
Big Clucker
 
Join Date: Jan 2013
Location: new bool:Israel = true;
Posts: 185
Reputation: 23
Default Loading other sprites? [TextDraw]

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:
__________________
Quote:
Originally Posted by an unknown user
The amount of 'BAD ENGLISH' users inside the script help sub-forum is too damn high.
If you won't learn, you'll never reach higher.

o/ - ohai!
BullseyeHawk is offline   Reply With Quote
Old 14/01/2014, 05:37 PM   #2
S4t3K
Gangsta
 
S4t3K's Avatar
 
Join Date: Jan 2013
Posts: 872
Reputation: 165
Default Re : Loading other sprites? [TextDraw]

I think that these objects were created by the server foundator.
S4t3K is offline   Reply With Quote
Old 14/01/2014, 05:40 PM   #3
BullseyeHawk
Big Clucker
 
Join Date: Jan 2013
Location: new bool:Israel = true;
Posts: 185
Reputation: 23
Default Re: Loading other sprites? [TextDraw]

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.
__________________
Quote:
Originally Posted by an unknown user
The amount of 'BAD ENGLISH' users inside the script help sub-forum is too damn high.
If you won't learn, you'll never reach higher.

o/ - ohai!
BullseyeHawk is offline   Reply With Quote
Old 14/01/2014, 05:40 PM   #4
Vince
Spam Machine
 
Vince's Avatar
 
Join Date: Sep 2007
Location: Belgium
Posts: 10,095
Reputation: 2655
Default Re: Loading other sprites? [TextDraw]

http://wiki.sa-mp.com/wiki/TextDrawSetPreviewModel
__________________
Vince is offline   Reply With Quote
Old 14/01/2014, 05:53 PM   #5
BullseyeHawk
Big Clucker
 
Join Date: Jan 2013
Location: new bool:Israel = true;
Posts: 185
Reputation: 23
Default Re: Loading other sprites? [TextDraw]

Quote:
Originally Posted by Vince View Post
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.

Code:
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 >.<
__________________
Quote:
Originally Posted by an unknown user
The amount of 'BAD ENGLISH' users inside the script help sub-forum is too damn high.
If you won't learn, you'll never reach higher.

o/ - ohai!
BullseyeHawk is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Textdraw Not Loading Avi Raj Scripting Help 0 24/11/2013 02:10 PM
List of textdraw sprites Universal Scripting Help 3 12/04/2013 12:15 PM
TextDraw Sprites CoaPsyFactor Scripting Help 2 02/12/2012 10:28 PM
Help: loading textdraw.. NewbieScripter Scripting Help 2 28/08/2012 07:27 PM


All times are GMT. The time now is 12:38 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.