<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.gtaconnected.com/wiki/index.php?action=history&amp;feed=atom&amp;title=natives.getTexture</id>
	<title>natives.getTexture - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.gtaconnected.com/wiki/index.php?action=history&amp;feed=atom&amp;title=natives.getTexture"/>
	<link rel="alternate" type="text/html" href="https://wiki.gtaconnected.com/wiki/index.php?title=natives.getTexture&amp;action=history"/>
	<updated>2026-04-20T16:27:58Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.15</generator>
	<entry>
		<id>https://wiki.gtaconnected.com/wiki/index.php?title=natives.getTexture&amp;diff=11274&amp;oldid=prev</id>
		<title>ChrisGame20: Created page with &quot;{{ScriptItem |endpoint = client |games = iv |type = function |name = natives.getTexture |parameters = int txdId, string textureName |parameter1 = int txdId Handle ID of a previously loaded TXD |parameter2 = string textureName Name of the texture inside the TXD |usage = Retrieves a texture handle from a loaded TXD by name |notes = The TXD must be loaded first using natives.loadTxd; the returned texture can be drawn with natives.drawSprite |return1 = object Texture...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.gtaconnected.com/wiki/index.php?title=natives.getTexture&amp;diff=11274&amp;oldid=prev"/>
		<updated>2025-11-28T00:34:31Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{ScriptItem |endpoint = client |games = iv |type = function |name = natives.getTexture |parameters = int txdId, string textureName |parameter1 = int txdId Handle ID of a previously loaded TXD |parameter2 = string textureName Name of the texture inside the TXD |usage = Retrieves a texture handle from a loaded TXD by name |notes = The TXD must be loaded first using &lt;a href=&quot;/natives.loadTxd&quot; title=&quot;natives.loadTxd&quot;&gt;natives.loadTxd&lt;/a&gt;; the returned texture can be drawn with &lt;a href=&quot;/natives.drawSprite&quot; title=&quot;natives.drawSprite&quot;&gt;natives.drawSprite&lt;/a&gt; |return1 = object Texture...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{ScriptItem&lt;br /&gt;
|endpoint = client&lt;br /&gt;
|games = iv&lt;br /&gt;
|type = function&lt;br /&gt;
|name = natives.getTexture&lt;br /&gt;
|parameters = int txdId, string textureName&lt;br /&gt;
|parameter1 = int txdId Handle ID of a previously loaded TXD&lt;br /&gt;
|parameter2 = string textureName Name of the texture inside the TXD&lt;br /&gt;
|usage = Retrieves a texture handle from a loaded TXD by name&lt;br /&gt;
|notes = The TXD must be loaded first using [[natives.loadTxd]]; the returned texture can be drawn with [[natives.drawSprite]]&lt;br /&gt;
|return1 = object Texture handle&lt;br /&gt;
|returnFail1 = null If the texture does not exist in the TXD&lt;br /&gt;
|exampleJS = addEventHandler(&amp;quot;OnDrawnHUD&amp;quot;, function() {&lt;br /&gt;
    const txdId = natives.loadTxd(&amp;quot;frontend_360&amp;quot;);&lt;br /&gt;
    const neonTex = natives.getTexture(txdId, &amp;quot;neon&amp;quot;);&lt;br /&gt;
    if (neonTex) {&lt;br /&gt;
        // Draw the neon texture centered on screen&lt;br /&gt;
        natives.drawSprite(neonTex, 0.5, 0.5, 0.3, 0.2, 0, 255, 255, 255, 255);&lt;br /&gt;
    }&lt;br /&gt;
});&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>ChrisGame20</name></author>
	</entry>
</feed>