<?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=Xman40100</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=Xman40100"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/Xman40100"/>
	<updated>2026-05-09T07:29:19Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=User:Xman40100&amp;diff=64837</id>
		<title>User:Xman40100</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=User:Xman40100&amp;diff=64837"/>
		<updated>2019-12-27T22:23:15Z</updated>

		<summary type="html">&lt;p&gt;Xman40100: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Hello! My name is Andrés, I'm 19 years old, born and raised in Colombia. On the full time job, I'm a frontend and backend dev. About to enter college for a computer engineering degree!&lt;br /&gt;
&lt;br /&gt;
I have always wanted to create a multiplayer server for GTA San Andreas, my favorite game of all time. It was that interested that sparked my interest in programming. I began with little gamemodes for sa-mp, and I used to play with my friends on my server.&lt;br /&gt;
&lt;br /&gt;
Few years later, I decided that what I wanted to do in sa-mp could not be done. I played MTA on occassion, as my internet was pretty slow back then to download all the resources and textures from various servers, but I always was blown away on how MTA could do a lot of things. So... here I am, now developing what I always wanted on MTA. Can't wait to actually share it with the world! :)&lt;/div&gt;</summary>
		<author><name>Xman40100</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=User:Xman40100&amp;diff=64836</id>
		<title>User:Xman40100</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=User:Xman40100&amp;diff=64836"/>
		<updated>2019-12-27T22:21:49Z</updated>

		<summary type="html">&lt;p&gt;Xman40100: me_irl&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Hello! My name is Andrés, I'm 19 years old, born and raised in Colombia. On the full time job, I'm a frontend and backend dev. About to enter college for a computer engineering degree!&lt;br /&gt;
&lt;br /&gt;
I have always wanted to create a multiplayer server for GTA San Andreas, my favorite game of all time. It was that interested that sparked my interest in programming. I began with little gamemodes for sa-mp, and I used to play with my friend on my server.&lt;br /&gt;
&lt;br /&gt;
Few years later, I decided that what I wanted to do in sa-mp could not be done. I played MTA on occassion, as my internet was pretty slow back then to download all the resources and textures from various servers, but I always was blown away on how MTA could do a lot of things. So... here I am, now developing what I always wanted on MTA. Can't wait to actually share it with the world! :)&lt;/div&gt;</summary>
		<author><name>Xman40100</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetVehicleColor&amp;diff=64833</id>
		<title>SetVehicleColor</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetVehicleColor&amp;diff=64833"/>
		<updated>2019-12-27T22:07:18Z</updated>

		<summary type="html">&lt;p&gt;Xman40100: Added clarification for https://github.com/multitheftauto/mtasa-blue/issues/1193#issuecomment-569347801&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
This function will set the color of a vehicle using either a RGB format, or the [[Vehicle Colors|standard San Andreas color IDs.]] Vehicles can have up to 4 colors, most of the vehicles have 2 colors only. &lt;br /&gt;
&lt;br /&gt;
If '''p1, p2, p3 and p4''' are used, MTA will take it as the '''palette color format''', more or less arguments than that will use the '''RGB format'''.&lt;br /&gt;
&lt;br /&gt;
{{New feature|3.0110|1.1|&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setVehicleColor ( vehicle theVehicle, int r1/p1, int g1/p2, int b1/p3, [int r2]/int p4, [int g2, int b2, int r3, int g3, int b3, int r4, int g4, int b4] )            &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
{{OOP||[[vehicle]]:setColor}}&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theVehicle:''' The [[vehicle]] that you wish to set the color of.&lt;br /&gt;
* RGB format:&lt;br /&gt;
** '''r1, g1, b1:''' Three integers indicating the red, green and blue components of the first (main) color for the vehicle&lt;br /&gt;
* Palette format:&lt;br /&gt;
** '''p1, p2, p3, p4:''' Four integers indicating the [[Vehicle Colors|vehicle color IDs]] from the palette.&lt;br /&gt;
===Optional Arguments (RGB format only)===&lt;br /&gt;
*'''r2, g2, b2:''' Three integers indicating the red, green and blue components of the second color for the vehicle&lt;br /&gt;
*'''r3, g3, b3:''' Three integers indicating the red, green and blue components of the third color for the vehicle&lt;br /&gt;
*'''r4, g4, b4:''' Three integers indicating the red, green and blue components of the fourth color for the vehicle&lt;br /&gt;
}}&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if vehicle's color was set, ''false'' if an invalid vehicle or invalid colors were specified.&lt;br /&gt;
&lt;br /&gt;
==Examples== &lt;br /&gt;
&amp;lt;section name=&amp;quot;Example 1 - RGB format&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
This example implements a serverside ''random_color'' console command.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addCommandHandler( 'random_color',&lt;br /&gt;
	function( uPlayer )&lt;br /&gt;
		if isPedInVehicle( uPlayer ) then&lt;br /&gt;
			local uVehicle = getPedOccupiedVehicle( uPlayer )&lt;br /&gt;
			if uVehicle then&lt;br /&gt;
				local r, g, b = math.random( 255 ), math.random( 255 ), math.random( 255 )&lt;br /&gt;
				setVehicleColor( uVehicle, r, g, b )&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;section name=&amp;quot;Example 2 - palette format&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
This example implements a serverside command for the player to spawn a red and white Banshee, using the palette colors.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addCommandHandler(&amp;quot;banshee&amp;quot;, function(player)&lt;br /&gt;
    local x, y, z = getElementPosition(player)&lt;br /&gt;
    local rx, ry, rz = getElementRotation(player)&lt;br /&gt;
    local vehicle = createVehicle(429, x, y, z, 0.0, 0.0, rz, &amp;quot;PALETTE&amp;quot;)&lt;br /&gt;
    setVehicleColor(vehicle, 3, 1, 0, 0)-- A red and white Banshee!&lt;br /&gt;
    addVehicleUpgrade(vehicle, 1010)&lt;br /&gt;
    warpPedIntoVehicle(player, vehicle, 0)&lt;br /&gt;
    outputChatBox(&amp;quot;You have spawned a red and white Banshee! I also added NOS for you!&amp;quot;, source, 50, 168, 82)&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;
== Issues ==&lt;br /&gt;
{{Issues|&lt;br /&gt;
{{Issue|9033|Clientside setVehicleColor doesn't work directly after creation}}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Vehicle_functions}}&lt;/div&gt;</summary>
		<author><name>Xman40100</name></author>
	</entry>
</feed>