SA-MP Forums Archive
Deathicons in 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: Deathicons in textdraw (/showthread.php?tid=593821)



Deathicons in textdraw - Freaksken - 10.11.2015

Is there any way you can use the deathicons in a textdraw?
I'm guessing these icons are located in the gtaweap3.tff file, so could these icons maybe be used as a font in samp?
If not could the weapon icons displayed in the top right corner be used in a textdraw?


Re: Deathicons in textdraw - Ritzy2K - 10.11.2015

Yes theres a way i guess.


Re: Deathicons in textdraw - prineside - 10.11.2015

https://sampwiki.blast.hk/wiki/TextDraw_Sprites


Re: Deathicons in textdraw - Freaksken - 10.11.2015

Quote:
Originally Posted by [ND]xXZeusXx.
View Post
Yes theres a way i guess.
Well ok, but how is the question.


Re: Deathicons in textdraw - prineside - 10.11.2015

Read the WIKI, everything you need you can find on that page.
Use TextDrawFont and TextDrawSetString to set font ID 4 and texture name.


Re: Deathicons in textdraw - Ritzy2K - 10.11.2015

Well, if i was you i'd download the images and turn em into sprites.


Re: Deathicons in textdraw - Freaksken - 10.11.2015

Quote:
Originally Posted by prineside
View Post
Read the WIKI, everything you need you can find on that page.
Use TextDrawFont and TextDrawSetString to set font ID 4 and texture name.
Yes, I will look into it, I forgot to quote the comment I wanted to reply to (hadn't refreshed the page and therefore didn't see your comment ).


Re: Deathicons in textdraw - Freaksken - 10.11.2015

Quote:
Originally Posted by prineside
View Post
Read the WIKI, everything you need you can find on that page.
Use TextDrawFont and TextDrawSetString to set font ID 4 and texture name.
The wiki states this:
Currently, only the libraries found in <SA Dir>/models/txd/ and <SA Dir>/SAMP/ can be used.
And none of the .txd files in those directories (or any other in the SA DIR) contain any weapon sprites (except for hud.txd which contains only the fist icon).
I'm pretty sure the deathicons are just taken from gtaweap3.ttf :/.

Quote:
Originally Posted by [ND]xXZeusXx.
View Post
Well, if i was you i'd download the images and turn em into sprites.
How can I use custom sprites not located in the GTA SA directory? If I were to add these images to a .txd file, wouldn't only I be able to see those sprites?


Re: Deathicons in textdraw - Ritzy2K - 10.11.2015

Search for a converter, its here on SA-MP forums, wait ill link you up

There, ------> https://sampforum.blast.hk/showthread.php?tid=274064 <------- And Here!


Re: Deathicons in textdraw - Freaksken - 10.11.2015

That isn't really the solution I'm looking for, but it is probably the only one that achieves what I want to display at the moment in this samp version. Thank you nonetheless.