<?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=Dreftas</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=Dreftas"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/Dreftas"/>
	<updated>2026-04-29T21:40:09Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetVehicleHeadLightColor&amp;diff=20944</id>
		<title>SetVehicleHeadLightColor</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetVehicleHeadLightColor&amp;diff=20944"/>
		<updated>2009-07-30T19:11:29Z</updated>

		<summary type="html">&lt;p&gt;Dreftas: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
This function will set the headlight color of a vehicle. valid Red Green and Blue arguments range from 0-255&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;section name=&amp;quot;Server and Client&amp;quot; class=&amp;quot;both&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;
bool setVehicleHeadLightColor ( vehicle theVehicle, int red, int green, int blue)            &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theVehicle:''' The [[vehicle]] that you wish to set the headlight color of.&lt;br /&gt;
*'''red:''' An integer indicating the amount of red for the vehicle's headlights&lt;br /&gt;
*'''green:''' An integer indicating the amount of green for the vehicle's headlights&lt;br /&gt;
*'''blue:''' An integer indicating the amount of blue for the vehicle's headlights&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if vehicle's headlight color was set, ''false'' if an invalid vehicle or invalid color ranges were specified for red,green or blue.&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&amp;lt;section name=&amp;quot;Example&amp;quot; class=&amp;quot;both&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
This example changes car lights color with command ''/carlights red_color, green_color, blue_color''&lt;br /&gt;
&lt;br /&gt;
It shows error if player isn't in vehicle or color failed to change. It shows a message if color changed successful.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function changeCarLightsColor ( thePlayer, command, red, green, blue )&lt;br /&gt;
	local theVehicle = getPedOccupiedVehicle ( thePlayer )&lt;br /&gt;
	if ( not theVehicle ) then&lt;br /&gt;
		return outputChatBox( &amp;quot;You don't have vehicle!&amp;quot; )&lt;br /&gt;
	end&lt;br /&gt;
	red = tonumber ( red )&lt;br /&gt;
	green = tonumber ( green )&lt;br /&gt;
	blue = tonumber ( blue )&lt;br /&gt;
	-- check if the colour values for red, green and blue are valid&lt;br /&gt;
	if red and green and blue then&lt;br /&gt;
		local color = setVehicleHeadLightColor ( theVehicle, red, green, blue )&lt;br /&gt;
		if(not color) then&lt;br /&gt;
			outputChatBox( &amp;quot;Failed to change vehicle lights color&amp;quot; )&lt;br /&gt;
		else&lt;br /&gt;
			outputChatBox ( &amp;quot;Vehicle lights color changed sucessfully&amp;quot; )&lt;br /&gt;
		end&lt;br /&gt;
	else&lt;br /&gt;
		outputChatBox( &amp;quot;Failed to change vehicle lights color&amp;quot; )&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler ( &amp;quot;carlights&amp;quot;, changeCarLightsColor )&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;
{{Vehicle_functions}}&lt;br /&gt;
[[Category:Needs Example]]&lt;/div&gt;</summary>
		<author><name>Dreftas</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=User_talk:Dreftas&amp;diff=20943</id>
		<title>User talk:Dreftas</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=User_talk:Dreftas&amp;diff=20943"/>
		<updated>2009-07-30T18:26:17Z</updated>

		<summary type="html">&lt;p&gt;Dreftas: Heh :]&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Hehe :)&lt;/div&gt;</summary>
		<author><name>Dreftas</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetVehicleHeadLightColor&amp;diff=20942</id>
		<title>SetVehicleHeadLightColor</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetVehicleHeadLightColor&amp;diff=20942"/>
		<updated>2009-07-30T18:24:38Z</updated>

		<summary type="html">&lt;p&gt;Dreftas: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
This function will set the headlight color of a vehicle. valid Red Green and Blue arguments range from 0-255&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;section name=&amp;quot;Server and Client&amp;quot; class=&amp;quot;both&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;
bool setVehicleHeadLightColor ( vehicle theVehicle, int red, int green, int blue)            &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theVehicle:''' The [[vehicle]] that you wish to set the headlight color of.&lt;br /&gt;
*'''red:''' An integer indicating the amount of red for the vehicle's headlights&lt;br /&gt;
*'''green:''' An integer indicating the amount of green for the vehicle's headlights&lt;br /&gt;
*'''blue:''' An integer indicating the amount of blue for the vehicle's headlights&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if vehicle's headlight color was set, ''false'' if an invalid vehicle or invalid color ranges were specified for red,green or blue.&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&amp;lt;section name=&amp;quot;Example&amp;quot; class=&amp;quot;both&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
This example changes car color with command ''/carlights red_color, green_color, blue_color''&lt;br /&gt;
&lt;br /&gt;
It shows error if player isn't in vehicle or color failed to change. It shows a message if color changed successful.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function changeCarLightsColor ( thePlayer, command, red, green, blue )&lt;br /&gt;
	local theVehicle = getPedOccupiedVehicle ( thePlayer )&lt;br /&gt;
	if ( not theVehicle ) then&lt;br /&gt;
		return outputChatBox( &amp;quot;You don't have vehicle!&amp;quot; )&lt;br /&gt;
	end&lt;br /&gt;
	red = tonumber ( red )&lt;br /&gt;
	green = tonumber ( green )&lt;br /&gt;
	blue = tonumber ( blue )&lt;br /&gt;
	-- check if the colour values for red, green and blue are valid&lt;br /&gt;
	if red and green and blue then&lt;br /&gt;
		local color = setVehicleHeadLightColor ( theVehicle, red, green, blue )&lt;br /&gt;
		if(not color) then&lt;br /&gt;
			outputChatBox( &amp;quot;Failed to change vehicle lights color&amp;quot; )&lt;br /&gt;
		else&lt;br /&gt;
			outputChatBox ( &amp;quot;Vehicle lights color changed sucessfully&amp;quot; )&lt;br /&gt;
		end&lt;br /&gt;
	else&lt;br /&gt;
		outputChatBox( &amp;quot;Failed to change vehicle lights color&amp;quot; )&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler ( &amp;quot;carlights&amp;quot;, changeCarLightsColor )&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;
{{Vehicle_functions}}&lt;br /&gt;
[[Category:Needs Example]]&lt;/div&gt;</summary>
		<author><name>Dreftas</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetVehicleHeadLightColor&amp;diff=20941</id>
		<title>SetVehicleHeadLightColor</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetVehicleHeadLightColor&amp;diff=20941"/>
		<updated>2009-07-30T18:23:57Z</updated>

		<summary type="html">&lt;p&gt;Dreftas: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
This function will set the headlight color of a vehicle. valid Red Green and Blue arguments range from 0-255&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;section name=&amp;quot;Server and Client&amp;quot; class=&amp;quot;both&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;
bool setVehicleHeadLightColor ( vehicle theVehicle, int red, int green, int blue)            &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theVehicle:''' The [[vehicle]] that you wish to set the headlight color of.&lt;br /&gt;
*'''red:''' An integer indicating the amount of red for the vehicle's headlights&lt;br /&gt;
*'''green:''' An integer indicating the amount of green for the vehicle's headlights&lt;br /&gt;
*'''blue:''' An integer indicating the amount of blue for the vehicle's headlights&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if vehicle's headlight color was set, ''false'' if an invalid vehicle or invalid color ranges were specified for red,green or blue.&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&amp;lt;section name=&amp;quot;Example&amp;quot; class=&amp;quot;both&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
This example changes car color with command ''/carlights red_color, green_color, blue_color''&lt;br /&gt;
&lt;br /&gt;
It shows error if player isn't in vehicle or color failed to change. It shows a message if color changed sucessfull.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function changeCarLightsColor ( thePlayer, command, red, green, blue )&lt;br /&gt;
	local theVehicle = getPedOccupiedVehicle ( thePlayer )&lt;br /&gt;
	if ( not theVehicle ) then&lt;br /&gt;
		return outputChatBox( &amp;quot;You don't have vehicle!&amp;quot; )&lt;br /&gt;
	end&lt;br /&gt;
	red = tonumber ( red )&lt;br /&gt;
	green = tonumber ( green )&lt;br /&gt;
	blue = tonumber ( blue )&lt;br /&gt;
	-- check if the colour values for red, green and blue are valid&lt;br /&gt;
	if red and green and blue then&lt;br /&gt;
		local color = setVehicleHeadLightColor ( theVehicle, red, green, blue )&lt;br /&gt;
		if(not color) then&lt;br /&gt;
			outputChatBox( &amp;quot;Failed to change vehicle lights color&amp;quot; )&lt;br /&gt;
		else&lt;br /&gt;
			outputChatBox ( &amp;quot;Vehicle lights color changed sucessfully&amp;quot; )&lt;br /&gt;
		end&lt;br /&gt;
	else&lt;br /&gt;
		outputChatBox( &amp;quot;Failed to change vehicle lights color&amp;quot; )&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler ( &amp;quot;carlights&amp;quot;, changeCarLightsColor )&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;
{{Vehicle_functions}}&lt;br /&gt;
[[Category:Needs Example]]&lt;/div&gt;</summary>
		<author><name>Dreftas</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=User:Dreftas&amp;diff=20940</id>
		<title>User:Dreftas</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=User:Dreftas&amp;diff=20940"/>
		<updated>2009-07-30T18:21:58Z</updated>

		<summary type="html">&lt;p&gt;Dreftas: Created page with 'Hehe :)'&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Hehe :)&lt;/div&gt;</summary>
		<author><name>Dreftas</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetVehicleHeadLightColor&amp;diff=20939</id>
		<title>SetVehicleHeadLightColor</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetVehicleHeadLightColor&amp;diff=20939"/>
		<updated>2009-07-30T18:21:24Z</updated>

		<summary type="html">&lt;p&gt;Dreftas: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
This function will set the headlight color of a vehicle. valid Red Green and Blue arguments range from 0-255&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;section name=&amp;quot;Server and Client&amp;quot; class=&amp;quot;both&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;
bool setVehicleHeadLightColor ( vehicle theVehicle, int red, int green, int blue)            &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theVehicle:''' The [[vehicle]] that you wish to set the headlight color of.&lt;br /&gt;
*'''red:''' An integer indicating the amount of red for the vehicle's headlights&lt;br /&gt;
*'''green:''' An integer indicating the amount of green for the vehicle's headlights&lt;br /&gt;
*'''blue:''' An integer indicating the amount of blue for the vehicle's headlights&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if vehicle's headlight color was set, ''false'' if an invalid vehicle or invalid color ranges were specified for red,green or blue.&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&amp;lt;section name=&amp;quot;Example&amp;quot; class=&amp;quot;both&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
This example changes car color with command ''/carlights red_color, green_color, blue_color''&lt;br /&gt;
&lt;br /&gt;
It shows error if player isn't in vehicle or color failed to change. It shows a message if color changed sucessfull.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function changeCarLightsColor ( thePlayer, command, red, green, blue )&lt;br /&gt;
	local vehicle = getPedOccupiedVehicle ( thePlayer )&lt;br /&gt;
	if ( not vehicle ) then&lt;br /&gt;
		return outputChatBox( &amp;quot;You don't have vehicle!&amp;quot; )&lt;br /&gt;
	end&lt;br /&gt;
	red = tonumber ( red )&lt;br /&gt;
	green = tonumber ( green )&lt;br /&gt;
	blue = tonumber ( blue )&lt;br /&gt;
	-- check if the colour values for red, green and blue are valid&lt;br /&gt;
	if red and green and blue then&lt;br /&gt;
		local color = setVehicleHeadLightColor ( vehicle, red, green, blue )&lt;br /&gt;
		if(not color) then&lt;br /&gt;
			outputChatBox( &amp;quot;Failed to change vehicle lights color&amp;quot; )&lt;br /&gt;
		else&lt;br /&gt;
			outputChatBox ( &amp;quot;Vehicle lights color changed sucessfully&amp;quot; )&lt;br /&gt;
		end&lt;br /&gt;
	else&lt;br /&gt;
		outputChatBox( &amp;quot;Failed to change vehicle lights color&amp;quot; )&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler ( &amp;quot;carlights&amp;quot;, changeCarLightsColor )&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;
{{Vehicle_functions}}&lt;br /&gt;
[[Category:Needs Example]]&lt;/div&gt;</summary>
		<author><name>Dreftas</name></author>
	</entry>
</feed>