<?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=Biistamais</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=Biistamais"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/Biistamais"/>
	<updated>2026-05-01T08:55:55Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=IsVehicleDamageProof&amp;diff=51713</id>
		<title>IsVehicleDamageProof</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=IsVehicleDamageProof&amp;diff=51713"/>
		<updated>2017-07-22T13:46:29Z</updated>

		<summary type="html">&lt;p&gt;Biistamais: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function checks if a vehicle is damage proof (set with [[setVehicleDamageProof]]).&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 isVehicleDamageProof ( vehicle theVehicle )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[vehicle]]:isDamageProof|damageProof|setVehicleDamageProof}}&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theVehicle:''' the vehicle whose invincibility status we want to check.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the vehicle is damage proof, ''false'' if it isn't or if invalid arguments were passed.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example will output in the chatbox whether the vehicle is vulnerable to damage or not when a player enters in it.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function checkVulnerability(theVehicle)&lt;br /&gt;
   if isVehicleDamageProof(theVehicle) then&lt;br /&gt;
            outputChatBox(&amp;quot;This vehicle is not vulnerable to damage&amp;quot;, source)&lt;br /&gt;
   else&lt;br /&gt;
            outputChatBox(&amp;quot;This vehicle is vulnerable to damage&amp;quot;, source)&lt;br /&gt;
   end&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onPlayerVehicleEnter&amp;quot;, getRootElement(), checkVulnerability )&lt;br /&gt;
  &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>Biistamais</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetVehiclePlateText&amp;diff=51712</id>
		<title>SetVehiclePlateText</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetVehiclePlateText&amp;diff=51712"/>
		<updated>2017-07-22T13:43:34Z</updated>

		<summary type="html">&lt;p&gt;Biistamais: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
{{New feature/item|3.0133|1.3.3|5394|&lt;br /&gt;
This function can be used to set the numberplate text of a car.&lt;br /&gt;
}}&lt;br /&gt;
{{New feature/item|3.0160|1.5.2|8077|&lt;br /&gt;
It now also changes the numberplate text of any vehicle that has visual numberplates.&lt;br /&gt;
}}&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 setVehiclePlateText( element theVehicle, string numberplate )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||[[vehicle]]:setPlateText|plateText|getVehiclePlateText}}&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''theVehicle:''' the [[vehicle]] whose numberplate you want to change.&lt;br /&gt;
*'''numberplate:''' a string that will go on the number plate of the car (max 8 characters).&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the numberplate was changed successfully, or ''false'' if invalid arguments were passed&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
{{Requirements|1.3.3|1.3.3|}}&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function PlateText(thePlayer,commandName,text)&lt;br /&gt;
	local Vehicle = getPedOccupiedVehicle(thePlayer)&lt;br /&gt;
	if Vehicle then&lt;br /&gt;
		if text then&lt;br /&gt;
			setVehiclePlateText( Vehicle, text )&lt;br /&gt;
		else&lt;br /&gt;
			outputChatBox(&amp;quot;You must enter a message or the plate is incorrect.&amp;quot;,thePlayer)&lt;br /&gt;
		end&lt;br /&gt;
	else&lt;br /&gt;
		outputChatBox(&amp;quot;You must be in a Vehicle.&amp;quot;,thePlayer)&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler(&amp;quot;setplate&amp;quot;,PlateText)&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>Biistamais</name></author>
	</entry>
</feed>