<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Vector</id>
	<title>Multi Theft Auto: Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Vector"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/Vector"/>
	<updated>2026-05-23T02:10:53Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DxSetPixelColor&amp;diff=36096</id>
		<title>DxSetPixelColor</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DxSetPixelColor&amp;diff=36096"/>
		<updated>2013-05-25T17:03:37Z</updated>

		<summary type="html">&lt;p&gt;Vector: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function sets the color of a single pixel for [[Texture_pixels|pixels]] contained in a string. It only works with ''''plain'''' format pixels.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool dxSetPixelColor ( string pixels, int x, int y, int r, int g, int b [, int a = 255 ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''pixels :''' The pixels to use&lt;br /&gt;
*'''x:''' The X coordinate for the pixel&lt;br /&gt;
*'''y:''' The Y coordinate for the pixel&lt;br /&gt;
*'''r:''' The red channel for the color (0-255)&lt;br /&gt;
*'''g:''' The green channel for the color (0-255)&lt;br /&gt;
*'''b:''' The blue channel for the color (0-255)&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments===&lt;br /&gt;
*'''a:''' The alpha channel for the color (0-255)&lt;br /&gt;
&lt;br /&gt;
==Returns==&lt;br /&gt;
Returns true if successful, or ''false'' if invalid arguments were passed to the function.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Client&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
This example creates a 64x64 texture with random pixel colors, and draw it on the screen.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addEventHandler (&amp;quot;onClientResourceStart&amp;quot;, resourceRoot, &lt;br /&gt;
    function () &lt;br /&gt;
         texture = dxCreateTexture (64, 64);&lt;br /&gt;
         local pixels = dxGetTexturePixels (texture);&lt;br /&gt;
         for i=1,63,1 do &lt;br /&gt;
             for j=1,63,1 do &lt;br /&gt;
                 dxSetPixelColor (pixels, j, i, math.random (255), math.random (255), math.random (255), 255);&lt;br /&gt;
             end;&lt;br /&gt;
         end;&lt;br /&gt;
         dxSetTexturePixels (texture, pixels); &lt;br /&gt;
    end);&lt;br /&gt;
&lt;br /&gt;
addEventHandler (&amp;quot;onClientRender&amp;quot;, getRootElement (),&lt;br /&gt;
    function ()&lt;br /&gt;
         dxDrawImage (300, 300, 64, 64, texture);&lt;br /&gt;
    end);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Drawing_functions}}&lt;br /&gt;
[[Category:Needs Example]]&lt;/div&gt;</summary>
		<author><name>Vector</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DxSetPixelColor&amp;diff=36095</id>
		<title>DxSetPixelColor</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DxSetPixelColor&amp;diff=36095"/>
		<updated>2013-05-25T17:03:04Z</updated>

		<summary type="html">&lt;p&gt;Vector: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function sets the color of a single pixel for [[Texture_pixels|pixels]] contained in a string. It only works with ''''plain'''' format pixels.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool dxSetPixelColor ( string pixels, int x, int y, int r, int g, int b [, int a = 255 ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''pixels :''' The pixels to use&lt;br /&gt;
*'''x:''' The X coordinate for the pixel&lt;br /&gt;
*'''y:''' The Y coordinate for the pixel&lt;br /&gt;
*'''r:''' The red channel for the color (0-255)&lt;br /&gt;
*'''g:''' The green channel for the color (0-255)&lt;br /&gt;
*'''b:''' The blue channel for the color (0-255)&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments===&lt;br /&gt;
*'''a:''' The alpha channel for the color (0-255)&lt;br /&gt;
&lt;br /&gt;
==Returns==&lt;br /&gt;
Returns true if successful, or ''false'' if invalid arguments were passed to the function.&lt;br /&gt;
&lt;br /&gt;
This example creates a 64x64 texture with random pixel colors, and draw it on the screen.&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Client&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addEventHandler (&amp;quot;onClientResourceStart&amp;quot;, resourceRoot, &lt;br /&gt;
    function () &lt;br /&gt;
         texture = dxCreateTexture (64, 64);&lt;br /&gt;
         local pixels = dxGetTexturePixels (texture);&lt;br /&gt;
         for i=1,63,1 do &lt;br /&gt;
             for j=1,63,1 do &lt;br /&gt;
                 dxSetPixelColor (pixels, j, i, math.random (255), math.random (255), math.random (255), 255);&lt;br /&gt;
             end;&lt;br /&gt;
         end;&lt;br /&gt;
         dxSetTexturePixels (texture, pixels); &lt;br /&gt;
    end);&lt;br /&gt;
&lt;br /&gt;
addEventHandler (&amp;quot;onClientRender&amp;quot;, getRootElement (),&lt;br /&gt;
    function ()&lt;br /&gt;
         dxDrawImage (300, 300, 64, 64, texture);&lt;br /&gt;
    end);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Drawing_functions}}&lt;br /&gt;
[[Category:Needs Example]]&lt;/div&gt;</summary>
		<author><name>Vector</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DxSetPixelColor&amp;diff=36094</id>
		<title>DxSetPixelColor</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DxSetPixelColor&amp;diff=36094"/>
		<updated>2013-05-25T17:02:43Z</updated>

		<summary type="html">&lt;p&gt;Vector: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function sets the color of a single pixel for [[Texture_pixels|pixels]] contained in a string. It only works with ''''plain'''' format pixels.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool dxSetPixelColor ( string pixels, int x, int y, int r, int g, int b [, int a = 255 ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''pixels :''' The pixels to use&lt;br /&gt;
*'''x:''' The X coordinate for the pixel&lt;br /&gt;
*'''y:''' The Y coordinate for the pixel&lt;br /&gt;
*'''r:''' The red channel for the color (0-255)&lt;br /&gt;
*'''g:''' The green channel for the color (0-255)&lt;br /&gt;
*'''b:''' The blue channel for the color (0-255)&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments===&lt;br /&gt;
*'''a:''' The alpha channel for the color (0-255)&lt;br /&gt;
&lt;br /&gt;
==Returns==&lt;br /&gt;
Returns true if successful, or ''false'' if invalid arguments were passed to the function.&lt;br /&gt;
&lt;br /&gt;
This example creates a 64x64 texture with random pixel colors, and draw it on the screen.&lt;br /&gt;
&amp;lt;section name=&amp;quot;Client&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
==Example==&lt;br /&gt;
addEventHandler (&amp;quot;onClientResourceStart&amp;quot;, resourceRoot, &lt;br /&gt;
    function () &lt;br /&gt;
         texture = dxCreateTexture (64, 64);&lt;br /&gt;
         local pixels = dxGetTexturePixels (texture);&lt;br /&gt;
         for i=1,63,1 do &lt;br /&gt;
             for j=1,63,1 do &lt;br /&gt;
                 dxSetPixelColor (pixels, j, i, math.random (255), math.random (255), math.random (255), 255);&lt;br /&gt;
             end;&lt;br /&gt;
         end;&lt;br /&gt;
         dxSetTexturePixels (texture, pixels); &lt;br /&gt;
    end);&lt;br /&gt;
&lt;br /&gt;
addEventHandler (&amp;quot;onClientRender&amp;quot;, getRootElement (),&lt;br /&gt;
    function ()&lt;br /&gt;
         dxDrawImage (300, 300, 64, 64, texture);&lt;br /&gt;
    end);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Drawing_functions}}&lt;br /&gt;
[[Category:Needs Example]]&lt;/div&gt;</summary>
		<author><name>Vector</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DxSetPixelColor&amp;diff=36092</id>
		<title>DxSetPixelColor</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DxSetPixelColor&amp;diff=36092"/>
		<updated>2013-05-25T17:01:39Z</updated>

		<summary type="html">&lt;p&gt;Vector: /* Returns */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function sets the color of a single pixel for [[Texture_pixels|pixels]] contained in a string. It only works with ''''plain'''' format pixels.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool dxSetPixelColor ( string pixels, int x, int y, int r, int g, int b [, int a = 255 ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''pixels :''' The pixels to use&lt;br /&gt;
*'''x:''' The X coordinate for the pixel&lt;br /&gt;
*'''y:''' The Y coordinate for the pixel&lt;br /&gt;
*'''r:''' The red channel for the color (0-255)&lt;br /&gt;
*'''g:''' The green channel for the color (0-255)&lt;br /&gt;
*'''b:''' The blue channel for the color (0-255)&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments===&lt;br /&gt;
*'''a:''' The alpha channel for the color (0-255)&lt;br /&gt;
&lt;br /&gt;
==Returns==&lt;br /&gt;
Returns true if successful, or ''false'' if invalid arguments were passed to the function.&lt;br /&gt;
&lt;br /&gt;
This example creates a 64x64 texture with random pixel colors, and draw it on the screen.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addEventHandler (&amp;quot;onClientResourceStart&amp;quot;, resourceRoot, &lt;br /&gt;
    function () &lt;br /&gt;
         texture = dxCreateTexture (64, 64);&lt;br /&gt;
         local pixels = dxGetTexturePixels (texture);&lt;br /&gt;
         for i=1,63,1 do &lt;br /&gt;
             for j=1,63,1 do &lt;br /&gt;
                 dxSetPixelColor (pixels, j, i, math.random (255), math.random (255), math.random (255), 255);&lt;br /&gt;
             end;&lt;br /&gt;
         end;&lt;br /&gt;
         dxSetTexturePixels (texture, pixels); &lt;br /&gt;
    end);&lt;br /&gt;
&lt;br /&gt;
addEventHandler (&amp;quot;onClientRender&amp;quot;, getRootElement (),&lt;br /&gt;
    function ()&lt;br /&gt;
         dxDrawImage (300, 300, 64, 64, texture);&lt;br /&gt;
    end);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Drawing_functions}}&lt;br /&gt;
[[Category:Needs Example]]&lt;/div&gt;</summary>
		<author><name>Vector</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DxSetPixelColor&amp;diff=36091</id>
		<title>DxSetPixelColor</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DxSetPixelColor&amp;diff=36091"/>
		<updated>2013-05-25T17:01:20Z</updated>

		<summary type="html">&lt;p&gt;Vector: /* EXAMPLE */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function sets the color of a single pixel for [[Texture_pixels|pixels]] contained in a string. It only works with ''''plain'''' format pixels.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool dxSetPixelColor ( string pixels, int x, int y, int r, int g, int b [, int a = 255 ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''pixels :''' The pixels to use&lt;br /&gt;
*'''x:''' The X coordinate for the pixel&lt;br /&gt;
*'''y:''' The Y coordinate for the pixel&lt;br /&gt;
*'''r:''' The red channel for the color (0-255)&lt;br /&gt;
*'''g:''' The green channel for the color (0-255)&lt;br /&gt;
*'''b:''' The blue channel for the color (0-255)&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments===&lt;br /&gt;
*'''a:''' The alpha channel for the color (0-255)&lt;br /&gt;
&lt;br /&gt;
==Returns==&lt;br /&gt;
Returns true if successful, or ''false'' if invalid arguments were passed to the function.&lt;br /&gt;
&lt;br /&gt;
This example creates a 64x64 texture with random pixel colors, and draw it on the screen.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addEventHandler (&amp;quot;onClientResourceStart&amp;quot;, resourceRoot, &lt;br /&gt;
    function () &lt;br /&gt;
         texture = dxCreateTexture (64, 64);&lt;br /&gt;
         local pixels = dxGetTexturePixels (texture);&lt;br /&gt;
         for i=1,63,1 do &lt;br /&gt;
             for j=1,63,1 do &lt;br /&gt;
                 dxSetPixelColor (pixels, j, i, math.random (255), math.random (255), math.random (255), 255);&lt;br /&gt;
             end;&lt;br /&gt;
         end;&lt;br /&gt;
         dxSetTexturePixels (texture, pixels); &lt;br /&gt;
    end);&lt;br /&gt;
&lt;br /&gt;
addEventHandler (&amp;quot;onClientRender&amp;quot;, getRootElement (),&lt;br /&gt;
    function ()&lt;br /&gt;
         dxDrawImage (300, 300, 64, 64, texture);&lt;br /&gt;
    end);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This example creates a 64x64 texture with random pixel colors, and draw it on the screen.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addEventHandler (&amp;quot;onClientResourceStart&amp;quot;, resourceRoot, &lt;br /&gt;
    function () &lt;br /&gt;
         texture = dxCreateTexture (64, 64);&lt;br /&gt;
         local pixels = dxGetTexturePixels (texture);&lt;br /&gt;
         for i=1,63,1 do &lt;br /&gt;
             for j=1,63,1 do &lt;br /&gt;
                 dxSetPixelColor (pixels, j, i, math.random (255), math.random (255), math.random (255), 255);&lt;br /&gt;
             end;&lt;br /&gt;
         end;&lt;br /&gt;
         dxSetTexturePixels (texture, pixels); &lt;br /&gt;
    end);&lt;br /&gt;
&lt;br /&gt;
addEventHandler (&amp;quot;onClientRender&amp;quot;, getRootElement (),&lt;br /&gt;
    function ()&lt;br /&gt;
         dxDrawImage (300, 300, 64, 64, texture);&lt;br /&gt;
    end);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Drawing_functions}}&lt;br /&gt;
[[Category:Needs Example]]&lt;/div&gt;</summary>
		<author><name>Vector</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DxSetPixelColor&amp;diff=36090</id>
		<title>DxSetPixelColor</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DxSetPixelColor&amp;diff=36090"/>
		<updated>2013-05-25T17:00:20Z</updated>

		<summary type="html">&lt;p&gt;Vector: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function sets the color of a single pixel for [[Texture_pixels|pixels]] contained in a string. It only works with ''''plain'''' format pixels.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool dxSetPixelColor ( string pixels, int x, int y, int r, int g, int b [, int a = 255 ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''pixels :''' The pixels to use&lt;br /&gt;
*'''x:''' The X coordinate for the pixel&lt;br /&gt;
*'''y:''' The Y coordinate for the pixel&lt;br /&gt;
*'''r:''' The red channel for the color (0-255)&lt;br /&gt;
*'''g:''' The green channel for the color (0-255)&lt;br /&gt;
*'''b:''' The blue channel for the color (0-255)&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments===&lt;br /&gt;
*'''a:''' The alpha channel for the color (0-255)&lt;br /&gt;
&lt;br /&gt;
==Returns==&lt;br /&gt;
Returns true if successful, or ''false'' if invalid arguments were passed to the function.&lt;br /&gt;
&lt;br /&gt;
This example creates a 64x64 texture with random pixel colors, and draw it on the screen.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addEventHandler (&amp;quot;onClientResourceStart&amp;quot;, resourceRoot, &lt;br /&gt;
    function () &lt;br /&gt;
         texture = dxCreateTexture (64, 64);&lt;br /&gt;
         local pixels = dxGetTexturePixels (texture);&lt;br /&gt;
         for i=1,63,1 do &lt;br /&gt;
             for j=1,63,1 do &lt;br /&gt;
                 dxSetPixelColor (pixels, j, i, math.random (255), math.random (255), math.random (255), 255);&lt;br /&gt;
             end;&lt;br /&gt;
         end;&lt;br /&gt;
         dxSetTexturePixels (texture, pixels); &lt;br /&gt;
    end);&lt;br /&gt;
&lt;br /&gt;
addEventHandler (&amp;quot;onClientRender&amp;quot;, getRootElement (),&lt;br /&gt;
    function ()&lt;br /&gt;
         dxDrawImage (300, 300, 64, 64, texture);&lt;br /&gt;
    end);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=EXAMPLE=&lt;br /&gt;
This example creates a 64x64 texture with random pixel colors, and draw it on the screen.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addEventHandler (&amp;quot;onClientResourceStart&amp;quot;, resourceRoot, &lt;br /&gt;
    function () &lt;br /&gt;
         texture = dxCreateTexture (64, 64);&lt;br /&gt;
         local pixels = dxGetTexturePixels (texture);&lt;br /&gt;
         for i=1,63,1 do &lt;br /&gt;
             for j=1,63,1 do &lt;br /&gt;
                 dxSetPixelColor (pixels, j, i, math.random (255), math.random (255), math.random (255), 255);&lt;br /&gt;
             end;&lt;br /&gt;
         end;&lt;br /&gt;
         dxSetTexturePixels (texture, pixels); &lt;br /&gt;
    end);&lt;br /&gt;
&lt;br /&gt;
addEventHandler (&amp;quot;onClientRender&amp;quot;, getRootElement (),&lt;br /&gt;
    function ()&lt;br /&gt;
         dxDrawImage (300, 300, 64, 64, texture);&lt;br /&gt;
    end);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Drawing_functions}}&lt;br /&gt;
[[Category:Needs Example]]&lt;/div&gt;</summary>
		<author><name>Vector</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DxSetPixelColor&amp;diff=36089</id>
		<title>DxSetPixelColor</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DxSetPixelColor&amp;diff=36089"/>
		<updated>2013-05-25T16:59:11Z</updated>

		<summary type="html">&lt;p&gt;Vector: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function sets the color of a single pixel for [[Texture_pixels|pixels]] contained in a string. It only works with ''''plain'''' format pixels.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool dxSetPixelColor ( string pixels, int x, int y, int r, int g, int b [, int a = 255 ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''pixels :''' The pixels to use&lt;br /&gt;
*'''x:''' The X coordinate for the pixel&lt;br /&gt;
*'''y:''' The Y coordinate for the pixel&lt;br /&gt;
*'''r:''' The red channel for the color (0-255)&lt;br /&gt;
*'''g:''' The green channel for the color (0-255)&lt;br /&gt;
*'''b:''' The blue channel for the color (0-255)&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments===&lt;br /&gt;
*'''a:''' The alpha channel for the color (0-255)&lt;br /&gt;
&lt;br /&gt;
==Returns==&lt;br /&gt;
Returns true if successful, or ''false'' if invalid arguments were passed to the function.&lt;br /&gt;
&lt;br /&gt;
This example creates a 64x64 texture with random pixel colors, and draw it on the screen.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addEventHandler (&amp;quot;onClientResourceStart&amp;quot;, resourceRoot, &lt;br /&gt;
    function () &lt;br /&gt;
         texture = dxCreateTexture (64, 64);&lt;br /&gt;
         local pixels = dxGetTexturePixels (texture);&lt;br /&gt;
         for i=1,63,1 do &lt;br /&gt;
             for j=1,63,1 do &lt;br /&gt;
                 dxSetPixelColor (pixels, j, i, math.random (255), math.random (255), math.random (255), 255);&lt;br /&gt;
             end;&lt;br /&gt;
         end;&lt;br /&gt;
         dxSetTexturePixels (texture, pixels); &lt;br /&gt;
    end);&lt;br /&gt;
&lt;br /&gt;
addEventHandler (&amp;quot;onClientRender&amp;quot;, getRootElement (),&lt;br /&gt;
    function ()&lt;br /&gt;
         dxDrawImage (300, 300, 64, 64, texture);&lt;br /&gt;
    end);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
{{Requirements|n/a|1.3|}}&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Drawing_functions}}&lt;br /&gt;
[[Category:Needs Example]]&lt;/div&gt;</summary>
		<author><name>Vector</name></author>
	</entry>
</feed>