<?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=LuxurY</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=LuxurY"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/LuxurY"/>
	<updated>2026-06-17T21:24:39Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetVehicleTaxiLightOn&amp;diff=21373</id>
		<title>SetVehicleTaxiLightOn</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetVehicleTaxiLightOn&amp;diff=21373"/>
		<updated>2009-08-30T19:17:04Z</updated>

		<summary type="html">&lt;p&gt;LuxurY: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
[[Category:Needs_Example]]&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
This function will set the taxi light on in a taxi (vehicle ID's 420 and 438)&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 setVehicleTaxiLightOn ( vehicle taxi, bool LightState )              &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''taxi:''' The vehicle element of the taxi that you wish to turn the light on.&lt;br /&gt;
*'''LightState:''' whether the light is on. ''True'' for on, ''False'' for off.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the state was successfully set, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addEventHandler ( &amp;quot;onPlayerJoin&amp;quot; , getRootElement ( ) , &lt;br /&gt;
function ( )&lt;br /&gt;
  bindKey ( source , &amp;quot;o&amp;quot;, &amp;quot;down&amp;quot;, &lt;br /&gt;
    function ( thePlayer )&lt;br /&gt;
      if ( isPedInVehicle ( thePlayer ) ) then --is in vehicle or not?&lt;br /&gt;
        local vehicle = getPedOccupiedVehicle ( thePlayer ) --getting player's occupied vehicle&lt;br /&gt;
        if ( getVehicleController ( vehicle ) == thePlayer ) then --is driver or not?&lt;br /&gt;
          local id = getElementModel ( vehicle ) --getting vehicle's model&lt;br /&gt;
          if ( ( id == 420 ) or ( id == 438 ) ) then --is a taxi?&lt;br /&gt;
            setVehicleTaxiLightOn ( vehicle, not isVehicleTaxiLightOn ( vehicle ) ) --changing taxi light on/off&lt;br /&gt;
          end&lt;br /&gt;
        end	&lt;br /&gt;
      end&lt;br /&gt;
   end)&lt;br /&gt;
end )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{vehicle functions}}&lt;/div&gt;</summary>
		<author><name>LuxurY</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetVehicleTaxiLightOn&amp;diff=21372</id>
		<title>SetVehicleTaxiLightOn</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetVehicleTaxiLightOn&amp;diff=21372"/>
		<updated>2009-08-30T19:14:09Z</updated>

		<summary type="html">&lt;p&gt;LuxurY: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
[[Category:Needs_Example]]&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
This function will set the taxi light on in a taxi (vehicle ID's 420 and 438)&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 setVehicleTaxiLightOn ( vehicle taxi, bool LightState )              &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''taxi:''' The vehicle element of the taxi that you wish to turn the light on.&lt;br /&gt;
*'''LightState:''' whether the light is on. ''True'' for on, ''False'' for off.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the state was successfully set, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addEventHandler ( &amp;quot;onPlayerJoin&amp;quot; , getRootElement ( ) , &lt;br /&gt;
function ( )&lt;br /&gt;
 bindKey ( source , &amp;quot;o&amp;quot;, &amp;quot;down&amp;quot;, &lt;br /&gt;
  function ( thePlayer )&lt;br /&gt;
   if ( isPedInVehicle ( thePlayer ) ) then --is in vehicle or not?&lt;br /&gt;
    local vehicle = getPedOccupiedVehicle ( thePlayer ) --getting player's occupied vehicle&lt;br /&gt;
    if ( getVehicleController ( vehicle ) == thePlayer ) then --is driver or not?&lt;br /&gt;
     local id = getElementModel ( vehicle ) --getting vehicle's model&lt;br /&gt;
     if ( ( id == 420 ) or ( id == 438 ) ) then --is a taxi?&lt;br /&gt;
      setVehicleTaxiLightOn ( vehicle, not isVehicleTaxiLightOn ( vehicle ) ) --changing taxi light on/off&lt;br /&gt;
     end&lt;br /&gt;
    end	&lt;br /&gt;
   end&lt;br /&gt;
  end)&lt;br /&gt;
end )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{vehicle functions}}&lt;/div&gt;</summary>
		<author><name>LuxurY</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetVehicleTaxiLightOn&amp;diff=21371</id>
		<title>SetVehicleTaxiLightOn</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetVehicleTaxiLightOn&amp;diff=21371"/>
		<updated>2009-08-30T19:12:45Z</updated>

		<summary type="html">&lt;p&gt;LuxurY: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
[[Category:Needs_Example]]&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
This function will set the taxi light on in a taxi (vehicle ID's 420 and 438)&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 setVehicleTaxiLightOn ( vehicle taxi, bool LightState )              &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''taxi:''' The vehicle element of the taxi that you wish to turn the light on.&lt;br /&gt;
*'''LightState:''' whether the light is on. ''True'' for on, ''False'' for off.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the state was successfully set, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addEventHandler ( &amp;quot;onPlayerJoin&amp;quot; , getRootElement ( ) , &lt;br /&gt;
function ( )&lt;br /&gt;
	bindKey ( source , &amp;quot;o&amp;quot;, &amp;quot;down&amp;quot;, &lt;br /&gt;
		function ( thePlayer )&lt;br /&gt;
			if ( isPedInVehicle ( thePlayer ) ) then --is in vehicle or not?&lt;br /&gt;
				local vehicle = getPedOccupiedVehicle ( thePlayer ) --getting player's occupied vehicle&lt;br /&gt;
				if ( getVehicleController ( vehicle ) == thePlayer ) then --is driver or not?&lt;br /&gt;
					local id = getElementModel ( vehicle ) --getting vehicle's model&lt;br /&gt;
					if ( ( id == 420 ) or ( id == 438 ) ) then --is a taxi?&lt;br /&gt;
						setVehicleTaxiLightOn ( vehicle, not isVehicleTaxiLightOn ( vehicle ) ) --changing taxi light on/off&lt;br /&gt;
					end&lt;br /&gt;
				end	&lt;br /&gt;
			end&lt;br /&gt;
		end)&lt;br /&gt;
end )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{vehicle functions}}&lt;/div&gt;</summary>
		<author><name>LuxurY</name></author>
	</entry>
</feed>