<?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=Nabouz</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=Nabouz"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/Nabouz"/>
	<updated>2026-06-16T17:28:04Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetVehiclePanelState&amp;diff=39493</id>
		<title>SetVehiclePanelState</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetVehiclePanelState&amp;diff=39493"/>
		<updated>2014-05-07T17:07:32Z</updated>

		<summary type="html">&lt;p&gt;Nabouz: Edit for planes ID panel 1&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
&lt;br /&gt;
This function allows you to change the state of one of the six panels vehicle's can have. When executed on the server-side resources, the damage will be synched for all players, whereas the change is only client-side if the function is used in a client resource. &lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool setVehiclePanelState ( vehicle theVehicle, int panelID, int state )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Required Arguments==&lt;br /&gt;
*'''theVehicle:''' The [[vehicle]] you would like to modify the panel of.&lt;br /&gt;
*'''panelID:''' An ID specifying the part of the vehicle. Possible values are:&lt;br /&gt;
&lt;br /&gt;
*'''Cars:'''&lt;br /&gt;
** '''0:''' Front-left panel&lt;br /&gt;
** '''1:''' Front-right panel&lt;br /&gt;
** '''2:''' Rear-left panel&lt;br /&gt;
** '''3:''' Rear-right panel&lt;br /&gt;
** '''4:''' Windscreen&lt;br /&gt;
** '''5:''' Front bumper&lt;br /&gt;
** '''6:''' Rear bumper&lt;br /&gt;
&lt;br /&gt;
*'''Planes:'''&lt;br /&gt;
**'''0:''' Engine Smoke (left engine for a Nevada or a Beagle)&lt;br /&gt;
**'''1:''' Engine Smoke (right engine for a Nevada or a Beagle)&lt;br /&gt;
**'''2:''' Rudder&lt;br /&gt;
**'''3:''' Elevators&lt;br /&gt;
**'''4:''' Ailerons&lt;br /&gt;
**'''5:''' Unknown&lt;br /&gt;
**'''6:''' Unknown&lt;br /&gt;
&lt;br /&gt;
''NOTE:'' Settings are not applicable for all vehicles of these types, for instance panel 0 effects a Dodo, but does nothing to a hydra.&lt;br /&gt;
&lt;br /&gt;
*'''state:''' How damaged the part is on the scale of 0 to 3, with 0 being undamaged and 3 being very damaged. How this is manifested depends on the panel and the vehicle.&lt;br /&gt;
&lt;br /&gt;
==Returns==&lt;br /&gt;
Returns ''true'' if the panel state has been updated, ''false'' otherwise&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Example 1: Server&amp;quot; class=&amp;quot;server&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;
-- create a new vehicle&lt;br /&gt;
local newcar = createVehicle ( 520, 1024, 1024, 1024 )&lt;br /&gt;
-- break the front bumper off&lt;br /&gt;
setVehiclePanelState ( newcar, 5, 3 )&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;/div&gt;</summary>
		<author><name>Nabouz</name></author>
	</entry>
</feed>