<?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=Peter</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=Peter"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/Peter"/>
	<updated>2026-04-23T08:42:40Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Text_functions&amp;diff=16561</id>
		<title>Template:Text functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:Text_functions&amp;diff=16561"/>
		<updated>2008-04-14T15:38:37Z</updated>

		<summary type="html">&lt;p&gt;Peter: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;*[[textCreateDisplay]]&lt;br /&gt;
&lt;br /&gt;
*[[textCreateTextItem]]&lt;br /&gt;
&lt;br /&gt;
*[[textDestroyDisplay]]&lt;br /&gt;
&lt;br /&gt;
*[[textDestroyTextItem]] &lt;br /&gt;
&lt;br /&gt;
*[[textDisplayAddObserver]]&lt;br /&gt;
&lt;br /&gt;
*[[textDisplayRemoveObserver]]&lt;br /&gt;
&lt;br /&gt;
{{New feature|3|DP3|&lt;br /&gt;
*[[textDisplayIsObserver]]&lt;br /&gt;
*[[textDisplayGetObservers]]&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
*[[textDisplayAddText]]&lt;br /&gt;
&lt;br /&gt;
*[[textDisplayRemoveText]]&lt;br /&gt;
&lt;br /&gt;
*[[textItemGetColor]]&lt;br /&gt;
&lt;br /&gt;
*[[textItemGetPosition]]&lt;br /&gt;
&lt;br /&gt;
*[[textItemGetPriority]]&lt;br /&gt;
&lt;br /&gt;
*[[textItemGetScale]]&lt;br /&gt;
&lt;br /&gt;
*[[textItemGetText]]&lt;br /&gt;
&lt;br /&gt;
*[[textItemSetColor]]&lt;br /&gt;
&lt;br /&gt;
*[[textItemSetPosition]]&lt;br /&gt;
&lt;br /&gt;
*[[textItemSetPriority]]&lt;br /&gt;
&lt;br /&gt;
*[[textItemSetScale]]&lt;br /&gt;
&lt;br /&gt;
*[[textItemSetText]]&lt;/div&gt;</summary>
		<author><name>Peter</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetPlayerTask&amp;diff=16167</id>
		<title>GetPlayerTask</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetPlayerTask&amp;diff=16167"/>
		<updated>2008-03-12T17:35:38Z</updated>

		<summary type="html">&lt;p&gt;Peter: Nicknames and MTA accounts aren't the same thing =p&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function is used to get the name of the current task of a certain type for a player.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string getPlayerTask ( player thePlayer, string priority, int taskType, [int index = 0] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''thePlayer''': The [[player]] whose task you want to retrieve.&lt;br /&gt;
*'''priority''': A string determining which set of tasks you want to retrieve it from. This must be either &amp;quot;primary&amp;quot; or &amp;quot;secondary&amp;quot;.&lt;br /&gt;
*'''taskType''': An integer value representing the task type (or slot) you want to get the task from. Types can be:&lt;br /&gt;
**'''PRIMARY TASKS'''&lt;br /&gt;
***'''0:''' TASK_PHYSICAL_RESPONSE&lt;br /&gt;
***'''1:''' TASK_EVENT_RESPONSE_TEMP&lt;br /&gt;
***'''2:''' TASK_EVENT_RESPONSE_NONTEMP&lt;br /&gt;
***'''3:''' TASK_PRIMARY&lt;br /&gt;
***'''4:''' TASK_DEFAULT&lt;br /&gt;
**'''SECONDARY TASKS'''&lt;br /&gt;
***'''0:''' TASK_SECONDARY_ATTACK&lt;br /&gt;
***'''1:''' TASK_SECONDARY_DUCK&lt;br /&gt;
***'''2:''' TASK_SECONDARY_SAY&lt;br /&gt;
***'''3:''' TASK_SECONDARY_FACIAL_COMPLEX&lt;br /&gt;
***'''4:''' TASK_SECONDARY_PARTIAL_ANIM&lt;br /&gt;
***'''5:''' TASK_SECONDARY_IK&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments===&lt;br /&gt;
*'''index''': An integer value representing how many sub tasks to go through. -1 to get the simplest task, 0 to get the most complex task.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a string containing the name of a task. See [[list of player tasks]] for valid strings. Returns ''false'' if invalid arguments are specified or if there is no task of the type or index specified.&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 prints the name of a player's task to the chat when they use the &amp;quot;task&amp;quot; command in the console.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function myTask ( commandName, priority, taskType )&lt;br /&gt;
    task = getPlayerTask ( source, priority, tonumber(taskType) )&lt;br /&gt;
    taskName = &amp;quot;none&amp;quot;&lt;br /&gt;
    if ( task ) then&lt;br /&gt;
        taskName = task&lt;br /&gt;
    end&lt;br /&gt;
    outputChatBox ( getPlayerName( source ) .. &amp;quot;'s &amp;quot; .. priority .. &amp;quot;(&amp;quot; .. taskType .. &amp;quot;) task is: &amp;quot; .. taskName )&lt;br /&gt;
end    &lt;br /&gt;
addCommandHandler ( &amp;quot;task&amp;quot;, myTask )&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;
{{Player functions}}&lt;/div&gt;</summary>
		<author><name>Peter</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Resource:Realdriveby&amp;diff=15958</id>
		<title>Resource:Realdriveby</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Resource:Realdriveby&amp;diff=15958"/>
		<updated>2008-02-23T16:56:11Z</updated>

		<summary type="html">&lt;p&gt;Peter: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Resource page}}&lt;br /&gt;
== Introduction ==&lt;br /&gt;
RealDriveby is a fully customisable resource which allows a flexible driveby system for your server.&lt;br /&gt;
&lt;br /&gt;
All of GTA's driveby compatible weapons, including the shotguns,pistols,M4 and AK-47 are supported by this resource. Shot delays for weapons such as pistols are fixed to their normal rate.&lt;br /&gt;
&lt;br /&gt;
Users can switch weapons by default using the &amp;amp;quot;Vehicle Look Left&amp;amp;quot; and &amp;amp;quot;Vehicle Look Right&amp;amp;quot; keys while in driveby mode.&lt;br /&gt;
&lt;br /&gt;
However, it is completely up to the admin how he or she wants drivebys to be: Using MTA's settings system, shot delays for weapons can be modified; the weapons which a driver can driveby with are customisable; the weapons a passenger can driveby with are customisable.&lt;br /&gt;
&lt;br /&gt;
There are also options available to disable steering whilst in driveby mode, or disable drivebys altogether for certain vehicles.&lt;br /&gt;
&lt;br /&gt;
On top of this, RealDriveby provides clientside scripting functions so that users can modify these attributes on a player-basis, allowing different players the ability to driveby different weapons and different delays.&lt;br /&gt;
&lt;br /&gt;
== Settings ==&lt;br /&gt;
All settings can be modified using MTA's set() functions, modifying the meta.xml of the resource, or modifying the settings.xml.&lt;br /&gt;
&lt;br /&gt;
===Driver weapons===&lt;br /&gt;
* '''Setting name:''' ''driveby_driver''&lt;br /&gt;
* '''Description:''' Sets the weapons that a driver can driveby with.  To disable driver drivebys, just pass an empty table.  See [[Resource:Realdriveby#GTA_Driveby_Compatible_weapons|here]] for compatible weapons.&lt;br /&gt;
* '''XML Example:''' &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;setting name=&amp;quot;driveby_driver&amp;quot; value=&amp;quot;[[ 22,23,24,26,28,29,32 ]]&amp;quot;/&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Passenger weapons===&lt;br /&gt;
* '''Setting name:''' ''driveby_passenger''&lt;br /&gt;
* '''Description:''' Sets the weapons that a passenger can driveby with.  To disable passenger drivebys, just pass an empty table.  See [[Resource:Realdriveby#GTA_Driveby_Compatible_weapons|here]] for compatible weapons.&lt;br /&gt;
* '''XML Example:''' &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;setting name=&amp;quot;driveby_passenger&amp;quot; value=&amp;quot;[[ 22,23,24,25,26,28,29,32,30,31,33 ]]&amp;quot;/&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
		&lt;br /&gt;
===Shot delay===&lt;br /&gt;
* '''Setting name:''' ''driveby_shot_delay''&lt;br /&gt;
* '''Description:''' Sets the delay between each individual shot for the specified weapons.  Unspecified weapons have GTA's default driveby fire rate.  The setting is in the format of a table where the key is a '''string''' of the weapon ID, and the value is the delay in milliseconds.&lt;br /&gt;
* '''XML Example:''' &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;setting name=&amp;quot;driveby_shot_delay&amp;quot; value=&amp;quot;[{ '22':300,'23':300,'24':800,'26':700 }]&amp;quot;/&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Blocked vehicles===&lt;br /&gt;
* '''Setting name:''' ''driveby_blocked_vehicles''&lt;br /&gt;
* '''Description:''' Sets the vehicles which driveby mode cannot be accessed in.  Useful to block strange effects such as drivebys in tanks.  In the format of an array of vehicle IDs.&lt;br /&gt;
* '''XML Example:''' &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;setting name=&amp;quot;driveby_blocked_vehicles&amp;quot; value=&amp;quot;[[ 432,601,437,431,592,553,577,488,497,548,563,512,476,447,425,519,520,460,417,469,487,513,441,464,501,465,564,538,449,537,539,570472,473,493,595,484,430,453,452,446,454,606,591,607,611,610,590,569,611,435,608,584,450 ]]&amp;quot;/&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Steer Cars while in driveby mode===&lt;br /&gt;
* '''Setting name:''' ''driveby_steer_cars''&lt;br /&gt;
* '''Description:''' Sets whether drivers can steer left or right while in driveby mode for vehicles besides bikes.   The setting is in the format of a bool, where ''true'' allows steering.&lt;br /&gt;
* '''XML Example:''' &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;setting name=&amp;quot;driveby_steer_cars&amp;quot; value=&amp;quot;[true]&amp;quot;/&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;	&lt;br /&gt;
&lt;br /&gt;
===Steer Bikes while in driveby mode===&lt;br /&gt;
* '''Setting name:''' ''driveby_steer_bikes''&lt;br /&gt;
* '''Description:''' Sets whether drivers can steer left or right while in driveby mode for bikes/bicycles.  If set to false, it allows extra realism.  The setting is in the format of a bool, where ''true'' allows steering.&lt;br /&gt;
* '''XML Example:''' &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;setting name=&amp;quot;driveby_steer_bikes&amp;quot; value=&amp;quot;[true]&amp;quot;/&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;	&lt;br /&gt;
&lt;br /&gt;
===Toggle driveby mode key===&lt;br /&gt;
* '''Setting name:''' ''driveby_toggle_mode''&lt;br /&gt;
* '''Description:''' Sets the [[Key names|key]] which will be used to toggle driveby mode.&lt;br /&gt;
* '''XML Example:''' &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;setting name=&amp;quot;driveby_toggle_mode&amp;quot; value=&amp;quot;mouse2&amp;quot;/&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;	&lt;br /&gt;
&lt;br /&gt;
===Next driveby weapon key===&lt;br /&gt;
* '''Setting name:''' ''driveby_next_weapon''&lt;br /&gt;
* '''Description:''' Sets the [[Key names|key]] which will be used to change to the next driveby weapon (if there is one).&lt;br /&gt;
* '''XML Example:''' &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;setting name=&amp;quot;driveby_next_weapon&amp;quot; value=&amp;quot;vehicle_look_right&amp;quot;/&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;	&lt;br /&gt;
&lt;br /&gt;
===Previous driveby weapon key===&lt;br /&gt;
* '''Setting name:''' ''driveby_prev_weapon''&lt;br /&gt;
* '''Description:''' Sets the [[Key names|key]] which will be used to change to the previous driveby weapon (if there is one).&lt;br /&gt;
* '''XML Example:''' &amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;setting name=&amp;quot;driveby_prev_weapon&amp;quot; value=&amp;quot;vehicle_look_left&amp;quot;/&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;	&lt;br /&gt;
&lt;br /&gt;
==Scripting functions==&lt;br /&gt;
All scripting functions are '''clientside''' and therefore only affect the '''local player'''.  All functions must be called using the [[call]] function, e.g.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;call(getResourceFromName(&amp;quot;realdriveby&amp;quot;),&amp;quot;setWeaponShotDelay&amp;quot;,22,300)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===setDriverDrivebyAbility===&lt;br /&gt;
This function allows you to set what weapons the local player can use while a driver of a vehicle.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setDriverDrivebyAbility ( table weapons )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
* '''weapons:''' An an array/table containing weapon IDs that the driver may use.  See [[Resource:Realdriveby#GTA_Driveby_Compatible_weapons|here]] for compatible weapons.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===getDriverDrivebyAbility===&lt;br /&gt;
This function allows you to retrive what weapons the local player can use while a driver of a vehicle.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
table getDriverDrivebyAbility ()&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
Returns a table of the weapons that can be used as a driver.&lt;br /&gt;
&lt;br /&gt;
===setPassengerDrivebyAbility===&lt;br /&gt;
This function allows you to set what weapons the local player can use while a passenger of a vehicle.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setPassengerDrivebyAbility ( table weapons )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
* '''weapons:''' An an array/table containing weapon IDs that the passenger may use.  See [[Resource:Realdriveby#GTA_Driveby_Compatible_weapons|here]] for compatible weapons.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===getPassengerDrivebyAbility===&lt;br /&gt;
This function allows you to retrive what weapons the local player can use while a passenger of a vehicle.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
table getPassengerDrivebyAbility ()&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
Returns a table of the weapons that can be used as a passenger.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===setWeaponShotDelay===&lt;br /&gt;
This function allows setting of a certain weapon's shot delay for the local player&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setWeaponShotDelay(int weaponID, int delay)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
* '''weaponID:''' An integer representing the [[Weapons|weapon ID]] of the delay that you wish to set.&lt;br /&gt;
* '''delay:''' An integer representing the delay in between each shot, in '''milliseconds'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===getWeaponShotDelay===&lt;br /&gt;
This function allows retrieving of a certain weapon's shot delay for the local player&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
int getWeaponShotDelay(int weaponID)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
* '''weaponID:''' An integer representing the [[Weapons|weapon ID]] of the delay that you wish to retrieve.&lt;br /&gt;
Returns an integer representing the weapon delay in between each shot.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===setDrivebySteeringAbility===&lt;br /&gt;
This function allows setting of whether the local player can steer while in driveby mode.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setDrivebySteeringAbility( bool otherVehicles, bool bikes )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
* '''otherVehicles:''' A bool representing whether steering is enabled while in any vehicle besides a bike/bicycle, where ''true'' represents enabled steering and ''false'' represents disabled steering.&lt;br /&gt;
* '''bikes :''' A bool representing whether steering is enabled while in a bike/bicycle, where ''true'' represents enabled steering and ''false'' represents disabled steering.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===getDrivebySteeringAbility===&lt;br /&gt;
This function allows retrieving of whether the local player can steer while in driveby mode.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool getDrivebySteeringAbility( string drivebyType )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
* '''drivebyType :''' A string which can either be &amp;quot;'''bike'''&amp;quot;, representing bikes/bicycles, or &amp;quot;'''car'''&amp;quot; representing all other vehicles.&lt;br /&gt;
Returns a bool of the ability of the specified type of driveby, where ''true'' is enabled and ''false'' is disabled.&lt;br /&gt;
&lt;br /&gt;
==GTA Driveby Compatible weapons==&lt;br /&gt;
These are weapons that are compatible with GTA/MTA's driveby mode, and can be used by this script.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;table border=&amp;quot;1&amp;quot; class=&amp;quot;unnamed1&amp;quot;&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;th&amp;gt;Name&amp;lt;/th&amp;gt;&amp;lt;th&amp;gt;ID&amp;lt;/th&amp;gt;&amp;lt;td&amp;gt; &amp;lt;/td&amp;gt;&amp;lt;th&amp;gt;Name&amp;lt;/th&amp;gt;&amp;lt;th&amp;gt;ID&amp;lt;/th&amp;gt;&amp;lt;/tr&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;Pistol&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;22&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt; &amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;Silenced Pistol&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;23&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;Desert Eagle&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;24&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt; &amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;Chrome Shotgun&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;25&amp;lt;/td&amp;gt; &amp;lt;/tr&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;Sawn-Off Shotgun&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;26&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt; &amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;Combat Shotgun&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;27&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;Uzi&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;28&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt; &amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;MP5&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;29&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;Tec-9&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;32&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt; &amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;AK-47&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt; 30&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;M4&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;31&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt; &amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;Country Rifle&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;33&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;Minigun&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;38&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt; &amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&amp;lt;/table&amp;gt;&lt;/div&gt;</summary>
		<author><name>Peter</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=FixVehicle&amp;diff=15687</id>
		<title>FixVehicle</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=FixVehicle&amp;diff=15687"/>
		<updated>2008-02-03T16:27:31Z</updated>

		<summary type="html">&lt;p&gt;Peter: No such function&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function will set a [[vehicle]]'s health to full and fix its damage model. If you wish to only change the vehicle's health, without affecting its damage model, use [[setElementHealth]].&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 fixVehicle ( vehicle theVehicle )             &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theVehicle:''' The vehicle you wish to fix&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the vehicle was fixed, ''false'' if '''theVehicle''' is invalid.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example fixes all the vehicles that exist in the map.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- Retrieve a table containing all the vehicles that exist&lt;br /&gt;
vehicles = getElementsByType ( &amp;quot;vehicle&amp;quot; )&lt;br /&gt;
-- Loop through the list, storing the vehicle from the table in the variable vehicleValue&lt;br /&gt;
for vehicleKey, vehicleValue in ipairs(vehicles) do&lt;br /&gt;
	-- fix the vehicle&lt;br /&gt;
	fixVehicle ( vehicleValue )&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>Peter</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetVehiclePanelState&amp;diff=15188</id>
		<title>SetVehiclePanelState</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetVehiclePanelState&amp;diff=15188"/>
		<updated>2008-01-24T10:20:54Z</updated>

		<summary type="html">&lt;p&gt;Peter: &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:''' 0-6&lt;br /&gt;
*'''state:''' 0-255 (check what range is effective, it may be much smaller e.g. 0-3)&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;
==See Also==&lt;br /&gt;
{{Vehicle functions}}&lt;/div&gt;</summary>
		<author><name>Peter</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetVehiclePanelState&amp;diff=15187</id>
		<title>SetVehiclePanelState</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetVehiclePanelState&amp;diff=15187"/>
		<updated>2008-01-24T10:16:25Z</updated>

		<summary type="html">&lt;p&gt;Peter: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;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:''' 0-6&lt;br /&gt;
*'''state:''' 0-255 (check what range is effective, it may be much smaller e.g. 0-3)&lt;br /&gt;
&lt;br /&gt;
==Returns==&lt;br /&gt;
Returns ''true'' if it works, ''false'' otherwise&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Vehicle functions}}&lt;/div&gt;</summary>
		<author><name>Peter</name></author>
	</entry>
</feed>