https://wiki.multitheftauto.com/wiki/IsVehicleUpgraded?feed=atom&action=history
IsVehicleUpgraded - Revision history
2024-03-28T09:40:33Z
Revision history for this page on the wiki
MediaWiki 1.39.3
https://wiki.multitheftauto.com/index.php?title=IsVehicleUpgraded&diff=64464&oldid=prev
Botder: Botder moved page Template:Link to nonexistant template click here to create lazypants0 to IsVehicleUpgraded without leaving a redirect
2019-10-01T17:20:25Z
<p>Botder moved page <a href="/index.php?title=Template:Link_to_nonexistant_template_click_here_to_create_lazypants0&action=edit&redlink=1" class="new" title="Template:Link to nonexistant template click here to create lazypants0 (page does not exist)">Template:Link to nonexistant template click here to create lazypants0</a> to <a href="/wiki/IsVehicleUpgraded" title="IsVehicleUpgraded">IsVehicleUpgraded</a> without leaving a redirect</p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<tr class="diff-title" lang="en">
<td colspan="1" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="1" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 17:20, 1 October 2019</td>
</tr><tr><td colspan="2" class="diff-notice" lang="en"><div class="mw-diff-empty">(No difference)</div>
</td></tr></table>
Botder
https://wiki.multitheftauto.com/index.php?title=IsVehicleUpgraded&diff=64443&oldid=prev
WASSIm. at 21:51, 30 September 2019
2019-09-30T21:51:20Z
<p></p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 21:51, 30 September 2019</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l1">Line 1:</td>
<td colspan="2" class="diff-lineno">Line 1:</td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>{{Useful Function}}</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>{{Useful Function}}</div></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del style="font-weight: bold; text-decoration: none;"><lowercasetitle></lowercasetitle></del></div></td><td colspan="2" class="diff-side-added"></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>__NOTOC__</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>__NOTOC__</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>This function checks is vehicle upgraded by upgrade ID.</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>This function checks is vehicle upgraded by upgrade ID.</div></td></tr>
</table>
WASSIm.
https://wiki.multitheftauto.com/index.php?title=IsVehicleUpgraded&diff=64442&oldid=prev
WASSIm.: Created page with "{{Useful Function}} <lowercasetitle></lowercasetitle> __NOTOC__ This function checks is vehicle upgraded by upgrade ID. ==Syntax== <syntaxhighlight lang="lua">bool isVehicleU..."
2019-09-30T21:50:42Z
<p>Created page with "{{Useful Function}} <lowercasetitle></lowercasetitle> __NOTOC__ This function checks is vehicle upgraded by upgrade ID. ==Syntax== <syntaxhighlight lang="lua">bool isVehicleU..."</p>
<p><b>New page</b></p><div>{{Useful Function}}<br />
<lowercasetitle></lowercasetitle><br />
__NOTOC__<br />
This function checks is vehicle upgraded by upgrade ID.<br />
<br />
==Syntax==<br />
<syntaxhighlight lang="lua">bool isVehicleUpgraded ( vehicle theVehicle, int upgrade )</syntaxhighlight><br />
<br />
===Required Arguments===<br />
*'''theVehicle''': The [[element]] representing the [[vehicle]] you wish to check the upgrade to.<br />
*'''upgrade''': The id of the upgrade you wish to check. (1000 to 1193), ''see [[Vehicle Upgrades]]''<br />
<br />
==Returns==<br />
Returns ''true'' if the upgrade is on the vehicle, ''false'' if it is not..<br />
<br />
==Code==<br />
<section name="Function source" class="both" show="true"><br />
<syntaxhighlight lang="lua"><br />
function isVehicleUpgraded(theVehicle, upgrade)<br />
if not (isElement(theVehicle) and getElementType(theVehicle) == "vehicle") then return end<br />
if not (upgrade and type(upgrade) == "number") then return end<br />
for slot=0, 16 do<br />
local upgradeSlot = getVehicleUpgradeOnSlot(theVehicle, slot)<br />
if (upgradeSlot) and (upgradeSlot == upgrade) then<br />
return true<br />
end<br />
end<br />
return false<br />
end<br />
</syntaxhighlight><br />
</section><br />
<br />
==Credits==<br />
*'''Author:''' WASSIm.<br />
<br />
==See Also==<br />
{{Useful_Functions}}</div>
WASSIm.