<?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=DREFTHUN</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=DREFTHUN"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/DREFTHUN"/>
	<updated>2026-04-28T12:29:30Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Vehicle_IDs&amp;diff=73018</id>
		<title>Vehicle IDs</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Vehicle_IDs&amp;diff=73018"/>
		<updated>2021-11-12T15:37:56Z</updated>

		<summary type="html">&lt;p&gt;DREFTHUN: Incorrect name of Rancher Lure&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Introduction==&lt;br /&gt;
This is a list of GTA:SA's vehicle ID numbers, as listed in the vehicles.ide file. These vehicle ID numbers are used for several vehicle scripting functions.&lt;br /&gt;
&lt;br /&gt;
====Lua table of all the valid vehicle IDs listed on this page====&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;vehicleIds = {400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415,&lt;br /&gt;
	416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433,&lt;br /&gt;
	434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451,&lt;br /&gt;
	452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469,&lt;br /&gt;
	470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487,&lt;br /&gt;
	488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505,&lt;br /&gt;
	506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523,&lt;br /&gt;
	524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541,&lt;br /&gt;
	542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559,&lt;br /&gt;
	560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577,&lt;br /&gt;
	578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595,&lt;br /&gt;
	596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611&lt;br /&gt;
}&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Lua table of all vehicle names====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- (when indexing just do a &amp;lt;vehicle model id you want the name of&amp;gt; - 399 to get the name)&lt;br /&gt;
vehicleNames = {&amp;quot;Landstalker&amp;quot;, &amp;quot;Bravura&amp;quot;, &amp;quot;Buffalo&amp;quot;, &amp;quot;Linerunner&amp;quot;, &amp;quot;Perennial&amp;quot;, &amp;quot;Sentinel&amp;quot;, &amp;quot;Dumper&amp;quot;, &amp;quot;Fire Truck&amp;quot;, &amp;quot;Trashmaster&amp;quot;, &amp;quot;Stretch&amp;quot;, &amp;quot;Manana&amp;quot;, &lt;br /&gt;
                       &amp;quot;Infernus&amp;quot;, &amp;quot;Voodoo&amp;quot;, &amp;quot;Pony&amp;quot;, &amp;quot;Mule&amp;quot;, &amp;quot;Cheetah&amp;quot;, &amp;quot;Ambulance&amp;quot;, &amp;quot;Leviathan&amp;quot;, &amp;quot;Moonbeam&amp;quot;, &amp;quot;Esperanto&amp;quot;, &amp;quot;Taxi&amp;quot;, &amp;quot;Washington&amp;quot;, &amp;quot;Bobcat&amp;quot;, &lt;br /&gt;
                       &amp;quot;Mr. Whoopee&amp;quot;, &amp;quot;BF Injection&amp;quot;, &amp;quot;Hunter&amp;quot;, &amp;quot;Premier&amp;quot;, &amp;quot;Enforcer&amp;quot;, &amp;quot;Securicar&amp;quot;, &amp;quot;Banshee&amp;quot;, &amp;quot;Predator&amp;quot;, &amp;quot;Bus&amp;quot;, &amp;quot;Rhino&amp;quot;, &amp;quot;Barracks&amp;quot;, &amp;quot;Hotknife&amp;quot;, &lt;br /&gt;
                       &amp;quot;Trailer 1&amp;quot;, &amp;quot;Previon&amp;quot;, &amp;quot;Coach&amp;quot;, &amp;quot;Cabbie&amp;quot;, &amp;quot;Stallion&amp;quot;, &amp;quot;Rumpo&amp;quot;, &amp;quot;RC Bandit&amp;quot;, &amp;quot;Romero&amp;quot;, &amp;quot;Packer&amp;quot;, &amp;quot;Monster&amp;quot;, &amp;quot;Admiral&amp;quot;, &amp;quot;Squalo&amp;quot;, &lt;br /&gt;
                       &amp;quot;Seasparrow&amp;quot;, &amp;quot;Pizzaboy&amp;quot;, &amp;quot;Tram&amp;quot;, &amp;quot;Trailer 2&amp;quot;, &amp;quot;Turismo&amp;quot;, &amp;quot;Speeder&amp;quot;, &amp;quot;Reefer&amp;quot;, &amp;quot;Tropic&amp;quot;, &amp;quot;Flatbed&amp;quot;, &amp;quot;Yankee&amp;quot;, &amp;quot;Caddy&amp;quot;, &amp;quot;Solair&amp;quot;, &lt;br /&gt;
                       &amp;quot;Berkley's RC Van&amp;quot;, &amp;quot;Skimmer&amp;quot;, &amp;quot;PCJ-600&amp;quot;, &amp;quot;Faggio&amp;quot;, &amp;quot;Freeway&amp;quot;, &amp;quot;RC Baron&amp;quot;, &amp;quot;RC Raider&amp;quot;, &amp;quot;Glendale&amp;quot;, &amp;quot;Oceanic&amp;quot;, &amp;quot;Sanchez&amp;quot;, &amp;quot;Sparrow&amp;quot;, &amp;quot;Patriot&amp;quot;, &lt;br /&gt;
                       &amp;quot;Quadbike&amp;quot;, &amp;quot;Coastguard&amp;quot;, &amp;quot;Dinghy&amp;quot;, &amp;quot;Hermes&amp;quot;, &amp;quot;Sabre&amp;quot;, &amp;quot;Rustler&amp;quot;, &amp;quot;ZR-350&amp;quot;, &amp;quot;Walton&amp;quot;, &amp;quot;Regina&amp;quot;, &amp;quot;Comet&amp;quot;, &amp;quot;BMX&amp;quot;, &amp;quot;Burrito&amp;quot;, &amp;quot;Camper&amp;quot;, &amp;quot;Marquis&amp;quot;, &lt;br /&gt;
                       &amp;quot;Baggage&amp;quot;, &amp;quot;Dozer&amp;quot;, &amp;quot;Maverick&amp;quot;, &amp;quot;News Chopper&amp;quot;, &amp;quot;Rancher&amp;quot;, &amp;quot;FBI Rancher&amp;quot;, &amp;quot;Virgo&amp;quot;, &amp;quot;Greenwood&amp;quot;, &amp;quot;Jetmax&amp;quot;, &amp;quot;Hotring Racer&amp;quot;, &amp;quot;Sandking&amp;quot;, &lt;br /&gt;
                       &amp;quot;Blista Compact&amp;quot;, &amp;quot;Police Maverick&amp;quot;, &amp;quot;Boxville&amp;quot;, &amp;quot;Benson&amp;quot;, &amp;quot;Mesa&amp;quot;, &amp;quot;RC Goblin&amp;quot;, &amp;quot;Hotring Racer 3&amp;quot;, &amp;quot;Hotring Racer 2&amp;quot;, &amp;quot;Bloodring Banger&amp;quot;, &lt;br /&gt;
                       &amp;quot;Rancher Lure&amp;quot;, &amp;quot;Super GT&amp;quot;, &amp;quot;Elegant&amp;quot;, &amp;quot;Journey&amp;quot;, &amp;quot;Bike&amp;quot;, &amp;quot;Mountain Bike&amp;quot;, &amp;quot;Beagle&amp;quot;, &amp;quot;Cropduster&amp;quot;, &amp;quot;Stuntplane&amp;quot;, &amp;quot;Tanker&amp;quot;, &amp;quot;Roadtrain&amp;quot;, &amp;quot;Nebula&amp;quot;, &lt;br /&gt;
                       &amp;quot;Majestic&amp;quot;, &amp;quot;Buccaneer&amp;quot;, &amp;quot;Shamal&amp;quot;, &amp;quot;Hydra&amp;quot;, &amp;quot;FCR-900&amp;quot;, &amp;quot;NRG-500&amp;quot;, &amp;quot;HPV1000&amp;quot;, &amp;quot;Cement Truck&amp;quot;, &amp;quot;Towtruck&amp;quot;, &amp;quot;Fortune&amp;quot;, &amp;quot;Cadrona&amp;quot;, &amp;quot;FBI Truck&amp;quot;, &lt;br /&gt;
                       &amp;quot;Willard&amp;quot;, &amp;quot;Forklift&amp;quot;, &amp;quot;Tractor&amp;quot;, &amp;quot;Combine Harvester&amp;quot;, &amp;quot;Feltzer&amp;quot;, &amp;quot;Remington&amp;quot;, &amp;quot;Slamvan&amp;quot;, &amp;quot;Blade&amp;quot;, &amp;quot;Freight&amp;quot;, &amp;quot;Streak&amp;quot;, &amp;quot;Vortex&amp;quot;, &amp;quot;Vincent&amp;quot;, &lt;br /&gt;
                       &amp;quot;Bullet&amp;quot;, &amp;quot;Clover&amp;quot;, &amp;quot;Sadler&amp;quot;, &amp;quot;Fire Truck Ladder&amp;quot;, &amp;quot;Hustler&amp;quot;, &amp;quot;Intruder&amp;quot;, &amp;quot;Primo&amp;quot;, &amp;quot;Cargobob&amp;quot;, &amp;quot;Tampa&amp;quot;, &amp;quot;Sunrise&amp;quot;, &amp;quot;Merit&amp;quot;, &amp;quot;Utility Van&amp;quot;, &lt;br /&gt;
                       &amp;quot;Nevada&amp;quot;, &amp;quot;Yosemite&amp;quot;, &amp;quot;Windsor&amp;quot;, &amp;quot;Monster 2&amp;quot;, &amp;quot;Monster 3&amp;quot;, &amp;quot;Uranus&amp;quot;, &amp;quot;Jester&amp;quot;, &amp;quot;Sultan&amp;quot;, &amp;quot;Stratum&amp;quot;, &amp;quot;Elegy&amp;quot;, &amp;quot;Raindance&amp;quot;, &amp;quot;RC Tiger&amp;quot;, &amp;quot;Flash&amp;quot;, &lt;br /&gt;
                       &amp;quot;Tahoma&amp;quot;, &amp;quot;Savanna&amp;quot;, &amp;quot;Bandito&amp;quot;, &amp;quot;Freight Train Flatbed&amp;quot;, &amp;quot;Streak Train Trailer&amp;quot;, &amp;quot;Kart&amp;quot;, &amp;quot;Mower&amp;quot;, &amp;quot;Dune&amp;quot;, &amp;quot;Sweeper&amp;quot;, &amp;quot;Broadway&amp;quot;, &amp;quot;Tornado&amp;quot;, &lt;br /&gt;
                       &amp;quot;AT-400&amp;quot;, &amp;quot;DFT-30&amp;quot;, &amp;quot;Huntley&amp;quot;, &amp;quot;Stafford&amp;quot;, &amp;quot;BF-400&amp;quot;, &amp;quot;Newsvan&amp;quot;, &amp;quot;Tug&amp;quot;, &amp;quot;Trailer (Tanker Commando)&amp;quot;, &amp;quot;Emperor&amp;quot;, &amp;quot;Wayfarer&amp;quot;, &amp;quot;Euros&amp;quot;, &amp;quot;Hotdog&amp;quot;, &lt;br /&gt;
                       &amp;quot;Club&amp;quot;, &amp;quot;Box Freight&amp;quot;, &amp;quot;Trailer 3&amp;quot;, &amp;quot;Andromada&amp;quot;, &amp;quot;Dodo&amp;quot;, &amp;quot;RC Cam&amp;quot;, &amp;quot;Launch&amp;quot;, &amp;quot;Police LS&amp;quot;, &amp;quot;Police&amp;quot;, &amp;quot;Police SF&amp;quot;, &amp;quot;Police LV&amp;quot;, &amp;quot;Police Ranger&amp;quot;, &lt;br /&gt;
                       &amp;quot;Ranger&amp;quot;, &amp;quot;Picador&amp;quot;, &amp;quot;S.W.A.T.&amp;quot;, &amp;quot;Alpha&amp;quot;, &amp;quot;Phoenix&amp;quot;, &amp;quot;Glendale Damaged&amp;quot;, &amp;quot;Sadler&amp;quot;, &amp;quot;Sadler Damaged&amp;quot;, &amp;quot;Baggage Trailer (covered)&amp;quot;, &lt;br /&gt;
                       &amp;quot;Baggage Trailer (Uncovered)&amp;quot;, &amp;quot;Trailer (Stairs)&amp;quot;, &amp;quot;Boxville Mission&amp;quot;, &amp;quot;Farm Trailer&amp;quot;, &amp;quot;Street Clean Trailer&amp;quot;&lt;br /&gt;
}&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Lua table of vehicles that are not lockable====&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;nonLockableVehicles = {&lt;br /&gt;
    594, 606, 607, 611, 584, 608, 435, 450, 591, 539, 441, 464, 501, 465, 564, 472, 473, 493, 595, 484, 430, 453, 452, 446, 454, 581, 509, 481,&lt;br /&gt;
    462, 521, 463, 510, 522, 461, 448, 468, 586, 425, 520&lt;br /&gt;
}&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Lua table of vehicles without number plates====&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;noNumberPlates = {&lt;br /&gt;
    592, 553, 577, 488, 511, 497, 548, 563, 512, 476, 593, 447, 425, 519, 520, 460, 417, 469, 487, 513, 509, 481, 510, 472, 473, 493, 595, 484,&lt;br /&gt;
    430, 453, 452, 446, 454&lt;br /&gt;
}&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Lua table of vehicles that support up to three different colors====&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;maxColorVehicles = {&lt;br /&gt;
    483, 524, 446&lt;br /&gt;
}&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Lua table of vehicles that doesn't support siren lights====&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;noSirenLights = {&lt;br /&gt;
    400, 401, 402, 403, 404, 405, 406, 417, 420, 423, 425, 430, 432, 433, 435, 438, 441, 446, 447, 448, 452, 453, 454, 460, 461, 462, 463, 464,&lt;br /&gt;
    465, 468, 469, 472, 473, 476, 481, 484, 487, 488, 493, 497, 501, 509, 510, 511, 512, 513, 519, 520, 521, 522, 523, 528, 537, 538, 539, 544,&lt;br /&gt;
    548, 553, 563, 564, 569, 570, 577, 581, 586, 590, 592, 593, 595, 600, 601, 602, 603, 604, 605, 606, 607, 608, 610, 611&lt;br /&gt;
}&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Aircrafts==&lt;br /&gt;
{|&lt;br /&gt;
|- style=&amp;quot;vertical-align: top;&amp;quot;&lt;br /&gt;
| style=&amp;quot;padding-right: 50px;&amp;quot; |&lt;br /&gt;
&lt;br /&gt;
===Airplanes===&lt;br /&gt;
{|class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Name || ID || class=&amp;quot;unsortable&amp;quot; | Image&lt;br /&gt;
|-&lt;br /&gt;
| Andromada || 592 || align=&amp;quot;center&amp;quot; | [[Image:Androm.png]]&lt;br /&gt;
|-&lt;br /&gt;
| AT-400 || 577 || align=&amp;quot;center&amp;quot; | [[Image:At400.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Beagle || 511  || align=&amp;quot;center&amp;quot; | [[Image:Beagle.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Cropduster || 512 || align=&amp;quot;center&amp;quot; | [[Image:Cropdust.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Dodo || 593 || align=&amp;quot;center&amp;quot; | [[Image:Dodo.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Hydra || 520 || align=&amp;quot;center&amp;quot; | [[Image:Hydra.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Nevada || 553 || align=&amp;quot;center&amp;quot; | [[Image:Nevada.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Rustler || 476 || align=&amp;quot;center&amp;quot; | [[Image:Rustler.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Shamal || 519 || align=&amp;quot;center&amp;quot; | [[Image:Shamal.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Skimmer || 460 || align=&amp;quot;center&amp;quot; | [[Image:Skimmer.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Stuntplane || 513 || align=&amp;quot;center&amp;quot; | [[Image:Stunt.png]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
| style=&amp;quot;padding-right: 50px;&amp;quot; |&lt;br /&gt;
&lt;br /&gt;
===Helicopters===&lt;br /&gt;
{|class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Name || ID || class=&amp;quot;unsortable&amp;quot; | Image&lt;br /&gt;
|-&lt;br /&gt;
| Cargobob || 548 || align=&amp;quot;center&amp;quot; | [[Image:Cargobob.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Hunter || 425 || align=&amp;quot;center&amp;quot; | [[Image:Hunter.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Leviathan || 417 || align=&amp;quot;center&amp;quot; | [[Image:Leviathn.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Maverick || 487 || align=&amp;quot;center&amp;quot; | [[Image:Maverick.png]]&lt;br /&gt;
|-&lt;br /&gt;
| News Chopper || 488 || align=&amp;quot;center&amp;quot; | [[Image:Newschop.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Police Maverick || 497 || align=&amp;quot;center&amp;quot; | [[Image:Polmav.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Raindance || 563 || align=&amp;quot;center&amp;quot; | [[Image:Raindanc.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Seasparrow || 447 || align=&amp;quot;center&amp;quot; | [[Image:Seaspar.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Sparrow || 469 || align=&amp;quot;center&amp;quot; | [[Image:Sparrow.png]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Boats==&lt;br /&gt;
{|class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Name || ID || class=&amp;quot;unsortable&amp;quot; | Image&lt;br /&gt;
|-&lt;br /&gt;
| Coastguard || 472 || align=&amp;quot;center&amp;quot; | [[Image:Coastg.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Dinghy || 473 || align=&amp;quot;center&amp;quot; | [[Image:Dinghy.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Jetmax || 493 || align=&amp;quot;center&amp;quot; | [[Image:Jetmax.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Launch || 595 || align=&amp;quot;center&amp;quot; | [[Image:Launch.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Marquis || 484 || align=&amp;quot;center&amp;quot; | [[Image:Marquis.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Predator || 430 || align=&amp;quot;center&amp;quot; | [[Image:Predator.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Reefer || 453 || align=&amp;quot;center&amp;quot; | [[Image:Reefer.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Speeder || 452 || align=&amp;quot;center&amp;quot; | [[Image:Speeder.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Squalo || 446 || align=&amp;quot;center&amp;quot; | [[Image:Squalo.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Tropic || 454 || align=&amp;quot;center&amp;quot; | [[Image:Tropic.png]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Land vehicles==&lt;br /&gt;
{|&lt;br /&gt;
|- style=&amp;quot;vertical-align: top;&amp;quot;&lt;br /&gt;
| style=&amp;quot;padding-right: 50px;&amp;quot; |&lt;br /&gt;
&lt;br /&gt;
===Bikes===&lt;br /&gt;
{|class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Name || ID || class=&amp;quot;unsortable&amp;quot; | Image&lt;br /&gt;
|-&lt;br /&gt;
| BF-400 || 581 || align=&amp;quot;center&amp;quot; | [[Image:Bf400.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Bike || 509 || align=&amp;quot;center&amp;quot; | [[Image:Bike.png]]&lt;br /&gt;
|-&lt;br /&gt;
| BMX || 481 || align=&amp;quot;center&amp;quot; | [[Image:Bmx.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Faggio || 462 || align=&amp;quot;center&amp;quot; | [[Image:Faggio.png]]&lt;br /&gt;
|-&lt;br /&gt;
| FCR-900 || 521 || align=&amp;quot;center&amp;quot; | [[Image:Fcr900.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Freeway || 463 || align=&amp;quot;center&amp;quot; | [[Image:Freeway.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Mountain Bike || 510 || align=&amp;quot;center&amp;quot; | [[Image:Mtbike.png]]&lt;br /&gt;
|-&lt;br /&gt;
| NRG-500 || 522 || align=&amp;quot;center&amp;quot; | [[Image:Nrg500.png]]&lt;br /&gt;
|-&lt;br /&gt;
| PCJ-600 || 461 || align=&amp;quot;center&amp;quot; | [[Image:Pcj600.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Pizzaboy || 448 || align=&amp;quot;center&amp;quot; | [[Image:Pizzaboy.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Sanchez ||  468 || align=&amp;quot;center&amp;quot; | [[Image:Sanchez.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Wayfarer || 586 || align=&amp;quot;center&amp;quot; | [[Image:Wayfarer.png]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
| style=&amp;quot;padding-right: 50px;&amp;quot; |&lt;br /&gt;
&lt;br /&gt;
===2-Door &amp;amp; Compact cars===&lt;br /&gt;
{|class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Name || ID || class=&amp;quot;unsortable&amp;quot; | Image&lt;br /&gt;
|-&lt;br /&gt;
| Alpha || 602 || align=&amp;quot;center&amp;quot; | [[Image:Alpha.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Blista Compact || 496 || align=&amp;quot;center&amp;quot; | [[Image:Blistac.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Bravura || 401 || align=&amp;quot;center&amp;quot; | [[Image:Bravura.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Buccaneer || 518 || align=&amp;quot;center&amp;quot; | [[Image:Buccanee.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Cadrona || 527 || align=&amp;quot;center&amp;quot; | [[Image:Cadrona.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Club || 589 || align=&amp;quot;center&amp;quot; | [[Image:Club.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Esperanto || 419 || align=&amp;quot;center&amp;quot; | [[Image:Esperant.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Euros || 587 || align=&amp;quot;center&amp;quot; | [[Image:Euros.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Feltzer || 533 || align=&amp;quot;center&amp;quot; | [[Image:Feltzer.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Fortune || 526 || align=&amp;quot;center&amp;quot; | [[Image:Fortune.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Hermes || 474 || align=&amp;quot;center&amp;quot; | [[Image:Hermes.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Hustler || 545 || align=&amp;quot;center&amp;quot; | [[Image:Hustler.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Majestic || 517 || align=&amp;quot;center&amp;quot; | [[Image:Majestic.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Manana || 410 || align=&amp;quot;center&amp;quot; | [[Image:Manana.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Picador || 600 || align=&amp;quot;center&amp;quot; | [[Image:Picador.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Previon || 436 || align=&amp;quot;center&amp;quot; | [[Image:Previon.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Stallion || 439 || align=&amp;quot;center&amp;quot; | [[Image:Stallion.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Tampa || 549 || align=&amp;quot;center&amp;quot; | [[Image:Tampa.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Virgo || 491 || align=&amp;quot;center&amp;quot; | [[Image:Virgo.png]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
| style=&amp;quot;padding-right: 50px;&amp;quot; |&lt;br /&gt;
&lt;br /&gt;
=== 4-Door &amp;amp; Luxury cars===&lt;br /&gt;
{|class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Name || ID || class=&amp;quot;unsortable&amp;quot; | Image&lt;br /&gt;
|-&lt;br /&gt;
| Admiral || 445 || align=&amp;quot;center&amp;quot; | [[Image:Admiral.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Damaged Glendale || 604 || align=&amp;quot;center&amp;quot; | [[Image:Glenshit.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Elegant || 507 || align=&amp;quot;center&amp;quot; | [[Image:Elegant.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Emperor || 585 || align=&amp;quot;center&amp;quot; | [[Image:Emperor.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Glendale || 466 || align=&amp;quot;center&amp;quot; | [[Image:Glendale.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Greenwood || 492 || align=&amp;quot;center&amp;quot; | [[Image:Greenwoo.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Intruder || 546 || align=&amp;quot;center&amp;quot; | [[Image:Intruder.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Merit || 551 || align=&amp;quot;center&amp;quot; | [[Image:Merit.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Nebula || 516 || align=&amp;quot;center&amp;quot; | [[Image:Nebula.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Oceanic || 467 || align=&amp;quot;center&amp;quot; | [[Image:Oceanic.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Premier || 426 || align=&amp;quot;center&amp;quot; | [[Image:Premier.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Primo || 547 || align=&amp;quot;center&amp;quot; | [[Image:Primo.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Sentinel || 405 || align=&amp;quot;center&amp;quot; | [[Image:Sentinel.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Stafford || 580 || align=&amp;quot;center&amp;quot; | [[Image:Stafford.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Stretch || 409 || align=&amp;quot;center&amp;quot; | [[Image:Stretch.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Sunrise || 550 || align=&amp;quot;center&amp;quot; | [[Image:Sunrise.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Tahoma || 566 || align=&amp;quot;center&amp;quot; | [[Image:Tahoma.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Vincent || 540 || align=&amp;quot;center&amp;quot; | [[Image:Vincent.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Washington || 421 || align=&amp;quot;center&amp;quot; | [[Image:Washing.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Willard || 529 || align=&amp;quot;center&amp;quot; | [[Image:Willard.png]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
{|&lt;br /&gt;
|- style=&amp;quot;vertical-align: top;&amp;quot;&lt;br /&gt;
| style=&amp;quot;padding-right: 50px;&amp;quot; |&lt;br /&gt;
&lt;br /&gt;
===Civil service===&lt;br /&gt;
{|class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Name || ID || class=&amp;quot;unsortable&amp;quot; | Image&lt;br /&gt;
|-&lt;br /&gt;
| Baggage || 485 || align=&amp;quot;center&amp;quot; | [[Image:Baggage.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Bus || 431 || align=&amp;quot;center&amp;quot; | [[Image:Bus.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Cabbie || 438 || align=&amp;quot;center&amp;quot; | [[Image:Cabbie.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Coach || 437 || align=&amp;quot;center&amp;quot; | [[Image:Coach.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Sweeper || 574 || align=&amp;quot;center&amp;quot; | [[Image:Sweeper.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Taxi || 420 || align=&amp;quot;center&amp;quot; | [[Image:Taxi.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Towtruck || 525 || align=&amp;quot;center&amp;quot; | [[Image:Towtruck.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Trashmaster || 408 || align=&amp;quot;center&amp;quot; | [[Image:Trash.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Utility Van || 552 || align=&amp;quot;center&amp;quot; | [[Image:Utility.png]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
| style=&amp;quot;padding-right: 50px;&amp;quot; |&lt;br /&gt;
&lt;br /&gt;
===Government vehicles===&lt;br /&gt;
{|class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Name || ID || class=&amp;quot;unsortable&amp;quot; | Image&lt;br /&gt;
|-&lt;br /&gt;
| Ambulance || 416 || align=&amp;quot;center&amp;quot; | [[Image:Ambulan.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Barracks || 433 || align=&amp;quot;center&amp;quot; | [[Image:Barracks.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Enforcer || 427 || align=&amp;quot;center&amp;quot; | [[Image:Enforcer.png]]&lt;br /&gt;
|-&lt;br /&gt;
| FBI Rancher || 490 || align=&amp;quot;center&amp;quot; | [[Image:Fbiranch.png]]&lt;br /&gt;
|-&lt;br /&gt;
| FBI Truck || 528 || align=&amp;quot;center&amp;quot; | [[Image:Fbitruck.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Fire Truck || 407 || align=&amp;quot;center&amp;quot; | [[Image:Firetruk.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Fire Truck || 544 || align=&amp;quot;center&amp;quot; | [[Image:Firela.png]]&lt;br /&gt;
|-&lt;br /&gt;
| HPV1000 || 523 || align=&amp;quot;center&amp;quot; | [[Image:Hpv1000.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Patriot || 470 || align=&amp;quot;center&amp;quot; | [[Image:Patriot.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Police LS || 596 || align=&amp;quot;center&amp;quot; | [[Image:Policels.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Police LV || 598 || align=&amp;quot;center&amp;quot; | [[Image:Policelv.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Police Ranger || 599 || align=&amp;quot;center&amp;quot; | [[Image:Policeru.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Police SF || 597 || align=&amp;quot;center&amp;quot; | [[Image:Policesf.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Rhino || 432 || align=&amp;quot;center&amp;quot; | [[Image:Rhino.png]]&lt;br /&gt;
|-&lt;br /&gt;
| S.W.A.T. || 601 || align=&amp;quot;center&amp;quot; | [[Image:Swatvan.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Securicar || 428 || align=&amp;quot;center&amp;quot; | [[Image:Securica.png]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
| style=&amp;quot;padding-right: 50px;&amp;quot; |&lt;br /&gt;
&lt;br /&gt;
===Heavy &amp;amp; Utility trucks===&lt;br /&gt;
{|class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Name || ID || class=&amp;quot;unsortable&amp;quot; | Image&lt;br /&gt;
|-&lt;br /&gt;
| Benson || 499 || align=&amp;quot;center&amp;quot; | [[Image:Benson.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Boxville Mission|| 609 || align=&amp;quot;center&amp;quot; | [[Image:Boxburg.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Boxville || 498 || align=&amp;quot;center&amp;quot; | [[Image:Boxville.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Cement Truck || 524 || align=&amp;quot;center&amp;quot; | [[Image:Cement.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Combine Harvester || 532 || align=&amp;quot;center&amp;quot; | [[Image:Combine.png]]&lt;br /&gt;
|-&lt;br /&gt;
| DFT-30 || 578 || align=&amp;quot;center&amp;quot; | [[Image:Dft30.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Dozer || 486 || align=&amp;quot;center&amp;quot; | [[Image:Dozer.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Dumper || 406 || align=&amp;quot;center&amp;quot; | [[Image:Dumper.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Dune || 573 || align=&amp;quot;center&amp;quot; | [[Image:Dune.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Flatbed || 455 || align=&amp;quot;center&amp;quot; | [[Image:Flatbed.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Hotdog || 588 || align=&amp;quot;center&amp;quot; | [[Image:Hotdog.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Linerunner || 403 || align=&amp;quot;center&amp;quot; | [[Image:Linerun.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Mr. Whoopee || 423 || align=&amp;quot;center&amp;quot; | [[Image:Mrwhoop.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Mule || 414 || align=&amp;quot;center&amp;quot; | [[Image:Mule.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Packer || 443 || align=&amp;quot;center&amp;quot; | [[Image:Packer.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Roadtrain || 515 || align=&amp;quot;center&amp;quot; | [[Image:Rdtrain.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Tanker || 514 || align=&amp;quot;center&amp;quot; | [[Image:Tanker.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Tractor || 531 || align=&amp;quot;center&amp;quot; | [[Image:Tractor.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Yankee || 456 || align=&amp;quot;center&amp;quot; | [[Image:Yankee.png]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
| style=&amp;quot;padding-right: 50px;&amp;quot; |&lt;br /&gt;
&lt;br /&gt;
===Light trucks &amp;amp; Vans===&lt;br /&gt;
{|class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Name || ID || class=&amp;quot;unsortable&amp;quot; | Image&lt;br /&gt;
|-&lt;br /&gt;
| Berkley's RC Van || 459 || align=&amp;quot;center&amp;quot; | [[Image:Topfun.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Bobcat || 422 || align=&amp;quot;center&amp;quot; | [[Image:Bobcat.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Burrito || 482 || align=&amp;quot;center&amp;quot; | [[Image:Burrito.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Damaged Sadler || 605 || align=&amp;quot;center&amp;quot; | [[Image:Sadlshit.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Forklift || 530 || align=&amp;quot;center&amp;quot; | [[Image:Forklift.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Moonbeam || 418 || align=&amp;quot;center&amp;quot; | [[Image:Moonbeam.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Mower || 572 || align=&amp;quot;center&amp;quot; | [[Image:Mower.png]]&lt;br /&gt;
|-&lt;br /&gt;
| News Van || 582 || align=&amp;quot;center&amp;quot; | [[Image:Newsvan.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Pony || 413 || align=&amp;quot;center&amp;quot; | [[Image:Pony.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Rumpo || 440 || align=&amp;quot;center&amp;quot; | [[Image:Rumpo.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Sadler || 543 || align=&amp;quot;center&amp;quot; | [[Image:Sadler.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Tug || 583 || align=&amp;quot;center&amp;quot; | [[Image:Tug.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Walton || 478 || align=&amp;quot;center&amp;quot; | [[Image:Walton.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Yosemite || 554 || align=&amp;quot;center&amp;quot; | [[Image:Yosemite.png]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
| style=&amp;quot;padding-right: 50px;&amp;quot; |&lt;br /&gt;
&lt;br /&gt;
===SUVs &amp;amp; Wagons===&lt;br /&gt;
{|class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Name || ID || class=&amp;quot;unsortable&amp;quot; | Image&lt;br /&gt;
|-&lt;br /&gt;
| Huntley || 579 || align=&amp;quot;center&amp;quot; | [[Image:Huntley.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Landstalker || 400 || align=&amp;quot;center&amp;quot; | [[Image:Landstal.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Perennial || 404 || align=&amp;quot;center&amp;quot; | [[Image:Peren.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Rancher || 489 || align=&amp;quot;center&amp;quot; | [[Image:Rancher.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Rancher Lure || 505 || align=&amp;quot;center&amp;quot; | [[Image:Rnchlure.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Regina || 479 || align=&amp;quot;center&amp;quot; | [[Image:Regina.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Romero || 442 || align=&amp;quot;center&amp;quot; | [[Image:Romero.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Solair || 458 || align=&amp;quot;center&amp;quot; | [[Image:Solair.png]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
{|&lt;br /&gt;
|- style=&amp;quot;vertical-align: top;&amp;quot;&lt;br /&gt;
| style=&amp;quot;padding-right: 50px;&amp;quot; |&lt;br /&gt;
&lt;br /&gt;
===Lowriders===&lt;br /&gt;
{|class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Name || ID || class=&amp;quot;unsortable&amp;quot; | Image&lt;br /&gt;
|-&lt;br /&gt;
| Blade || 536 || align=&amp;quot;center&amp;quot; | [[Image:Blade.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Broadway || 575 || align=&amp;quot;center&amp;quot; | [[Image:Broadway.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Remington || 534 || align=&amp;quot;center&amp;quot; | [[Image:Remingtn.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Savanna || 567 || align=&amp;quot;center&amp;quot; | [[Image:Savanna.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Slamvan || 535 || align=&amp;quot;center&amp;quot; | [[Image:Slamvan.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Tornado || 576 || align=&amp;quot;center&amp;quot; | [[Image:Tornado.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Voodoo || 412 || align=&amp;quot;center&amp;quot; | [[Image:Voodoo.png]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
| style=&amp;quot;padding-right: 50px;&amp;quot; |&lt;br /&gt;
&lt;br /&gt;
===Muscle cars===&lt;br /&gt;
{|class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Name || ID || class=&amp;quot;unsortable&amp;quot; | Image&lt;br /&gt;
|-&lt;br /&gt;
| Buffalo || 402 || align=&amp;quot;center&amp;quot; | [[Image:Buffalo.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Clover || 542 || align=&amp;quot;center&amp;quot; | [[Image:Clover.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Phoenix || 603 || align=&amp;quot;center&amp;quot; | [[Image:Phoenix.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Sabre || 475 || align=&amp;quot;center&amp;quot; | [[Image:Sabre.png]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
| style=&amp;quot;padding-right: 50px;&amp;quot; |&lt;br /&gt;
&lt;br /&gt;
===Street racers===&lt;br /&gt;
{|class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Name || ID || class=&amp;quot;unsortable&amp;quot; | Image&lt;br /&gt;
|-&lt;br /&gt;
| Banshee || 429 || align=&amp;quot;center&amp;quot; | [[Image:Banshee.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Bullet || 541 || align=&amp;quot;center&amp;quot; | [[Image:Bullet.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Cheetah || 415 || align=&amp;quot;center&amp;quot; | [[Image:Cheetah.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Comet || 480 || align=&amp;quot;center&amp;quot; | [[Image:Comet.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Elegy || 562 || align=&amp;quot;center&amp;quot; | [[Image:Elegy.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Flash || 565 || align=&amp;quot;center&amp;quot; | [[Image:Flash.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Hotknife || 434 || align=&amp;quot;center&amp;quot; | [[Image:Hotknife.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Hotring Racer || 494 || align=&amp;quot;center&amp;quot; | [[Image:Hotring.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Hotring Racer 2 || 502 || align=&amp;quot;center&amp;quot; | [[Image:Hotrina.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Hotring Racer 3 || 503 || align=&amp;quot;center&amp;quot; | [[Image:Hotrinb.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Infernus || 411 || align=&amp;quot;center&amp;quot; | [[Image:411.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Jester || 559 || align=&amp;quot;center&amp;quot; | [[Image:Jester.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Stratum || 561 || align=&amp;quot;center&amp;quot; | [[Image:Stratum.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Sultan || 560 || align=&amp;quot;center&amp;quot; | [[Image:Sultan.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Super GT || 506 || align=&amp;quot;center&amp;quot; | [[Image:Supergt.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Turismo || 451 || align=&amp;quot;center&amp;quot; | [[Image:Turismo.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Uranus || 558 || align=&amp;quot;center&amp;quot; | [[Image:Uranus.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Windsor || 555 || align=&amp;quot;center&amp;quot; | [[Image:Windsor.png]]&lt;br /&gt;
|-&lt;br /&gt;
| ZR-350 || 477 || align=&amp;quot;center&amp;quot; | [[Image:Zr350.png]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
{|&lt;br /&gt;
|- style=&amp;quot;vertical-align: top;&amp;quot;&lt;br /&gt;
| style=&amp;quot;padding-right: 50px;&amp;quot; |&lt;br /&gt;
&lt;br /&gt;
===RC Vehicles===&lt;br /&gt;
{|class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Name || ID || class=&amp;quot;unsortable&amp;quot; | Image&lt;br /&gt;
|-&lt;br /&gt;
| RC Bandit || 441 || align=&amp;quot;center&amp;quot; | [[Image:Rcbandit.png]]&lt;br /&gt;
|-&lt;br /&gt;
| RC Baron || 464 || align=&amp;quot;center&amp;quot; | [[Image:Rcbaron.png]]&lt;br /&gt;
|-&lt;br /&gt;
| RC Cam || 594 || align=&amp;quot;center&amp;quot; | [[Image:Rccam.png]]&lt;br /&gt;
|-&lt;br /&gt;
| RC Goblin || 501 || align=&amp;quot;center&amp;quot; | [[Image:Rcgoblin.png]]&lt;br /&gt;
|-&lt;br /&gt;
| RC Raider || 465 || align=&amp;quot;center&amp;quot; | [[Image:Rcraider.png]]&lt;br /&gt;
|-&lt;br /&gt;
| RC Tiger || 564 || align=&amp;quot;center&amp;quot; | [[Image:Rctiger.png]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
| style=&amp;quot;padding-right: 50px;&amp;quot; |&lt;br /&gt;
&lt;br /&gt;
===Trailers===&lt;br /&gt;
{|class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Name || ID || class=&amp;quot;unsortable&amp;quot; | Image&lt;br /&gt;
|-&lt;br /&gt;
| Baggage Trailer || 606 || align=&amp;quot;center&amp;quot; | [[Image:Bagboxa.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Baggage Trailer || 607 || align=&amp;quot;center&amp;quot; | [[Image:Bagboxb.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Farm Trailer || 610 || align=&amp;quot;center&amp;quot; | [[Image:Farmtr1.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Petrol trailer || 584 || align=&amp;quot;center&amp;quot; | [[Image:Petrotr.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Trailer || 611 || align=&amp;quot;center&amp;quot; | [[Image:Utiltr1.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Trailer || 608 || align=&amp;quot;center&amp;quot; | [[Image:Tugstair.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Trailer 1 || 435 || align=&amp;quot;center&amp;quot; | [[Image:Artict1.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Trailer 2 || 450 || align=&amp;quot;center&amp;quot; | [[Image:Artict2.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Trailer 3 || 591 || align=&amp;quot;center&amp;quot; | [[Image:Artict3.png]]&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
| style=&amp;quot;padding-right: 50px;&amp;quot; |&lt;br /&gt;
&lt;br /&gt;
===Trains &amp;amp; Railroad cars===&lt;br /&gt;
&lt;br /&gt;
{|class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Name || ID || class=&amp;quot;unsortable&amp;quot; | Image&lt;br /&gt;
|-&lt;br /&gt;
| Box Freight || 590 || align=&amp;quot;center&amp;quot; | [[Image:Freibox.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Brown Streak || 538 || align=&amp;quot;center&amp;quot; | [[Image:Streak.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Brown Streak Carriage || 570 || align=&amp;quot;center&amp;quot; | [[Image:Streakc.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Flat Freight || 569 || align=&amp;quot;center&amp;quot; | [[Image:Freiflat.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Freight || 537 || align=&amp;quot;center&amp;quot; | [[Image:Freight.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Tram || 449 || align=&amp;quot;center&amp;quot; | [[Image:Tram.png]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Recreational==&lt;br /&gt;
{|class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Name || ID || class=&amp;quot;unsortable&amp;quot; | Image&lt;br /&gt;
|-&lt;br /&gt;
| Bandito || 568 || align=&amp;quot;center&amp;quot; | [[Image:Bandito.png]]&lt;br /&gt;
|-&lt;br /&gt;
| BF Injection || 424 || align=&amp;quot;center&amp;quot; | [[Image:Bfinject.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Bloodring Banger || 504 || align=&amp;quot;center&amp;quot; | [[Image:Bloodra.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Caddy || 457 || align=&amp;quot;center&amp;quot; | [[Image:Caddy.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Camper || 483 || align=&amp;quot;center&amp;quot; | [[Image:Camper.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Journey || 508 || align=&amp;quot;center&amp;quot; | [[Image:Journey.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Kart || 571 || align=&amp;quot;center&amp;quot; | [[Image:Kart.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Mesa || 500 || align=&amp;quot;center&amp;quot; | [[Image:Mesa.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Monster || 444 || align=&amp;quot;center&amp;quot; | [[Image:Monster.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Monster 2 || 556 || align=&amp;quot;center&amp;quot; | [[Image:Monstera.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Monster 3 || 557 || align=&amp;quot;center&amp;quot; | [[Image:Monsterb.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Quadbike || 471 || align=&amp;quot;center&amp;quot; | [[Image:Quad.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Sandking || 495 || align=&amp;quot;center&amp;quot; | [[Image:Sandking.png]]&lt;br /&gt;
|-&lt;br /&gt;
| Vortex || 539 || align=&amp;quot;center&amp;quot; | [[Image:Vortex.png]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Vehicle Functions==&lt;br /&gt;
{{Vehicle functions}}&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
&lt;br /&gt;
[[hu:Vehicle IDs]]&lt;br /&gt;
[[id|ID Lists]]&lt;br /&gt;
[[tr:Araç ID'leri]]&lt;br /&gt;
[[it:ID Veicoli]]&lt;br /&gt;
[[ru:Vehicle IDs]]&lt;br /&gt;
[[de:Fahrzeug IDs]]&lt;br /&gt;
&lt;br /&gt;
[[Category:ID Lists]]&lt;/div&gt;</summary>
		<author><name>DREFTHUN</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetFarClipDistance&amp;diff=69632</id>
		<title>SetFarClipDistance</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetFarClipDistance&amp;diff=69632"/>
		<updated>2021-03-15T20:08:46Z</updated>

		<summary type="html">&lt;p&gt;DREFTHUN: Undo revision 69618 by DREFTHUN (talk)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
This function is used to set the distance of render. Areas beyond the specified distance will not be rendered.&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 setFarClipDistance ( float distance )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
[[File:Far.png|thumb|example for function]]&lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''distance:''' A float specifying the distance of render. '''Setting this less than 5 will cause problems to the client.'''&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the distance was set correctly, ''false'' if invalid arguments were passed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Server&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
This example adjusts the visibility range of the game world.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addEventHandler( &amp;quot;onResourceStart&amp;quot;, resourceRoot,&lt;br /&gt;
	function( )&lt;br /&gt;
		setFarClipDistance( 3000 ) -- We adjust visibility range to 3000 metres&lt;br /&gt;
	end&lt;br /&gt;
)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&amp;lt;section name=&amp;quot;Client&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;false&amp;quot;&amp;gt;&lt;br /&gt;
This example adjusts the visibility range of the game world.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addEventHandler( &amp;quot;onClientResourceStart&amp;quot;, resourceRoot,&lt;br /&gt;
	function( )&lt;br /&gt;
		setFarClipDistance( 3000 ) -- We adjust visibility range to 3000 metres&lt;br /&gt;
	end&lt;br /&gt;
)&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;
{{World functions}}&lt;/div&gt;</summary>
		<author><name>DREFTHUN</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetFarClipDistance&amp;diff=69618</id>
		<title>SetFarClipDistance</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetFarClipDistance&amp;diff=69618"/>
		<updated>2021-03-09T10:57:56Z</updated>

		<summary type="html">&lt;p&gt;DREFTHUN: Removed unnecessary spacing&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
This function is used to set the distance of render. Areas beyond the specified distance will not be rendered.&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 setFarClipDistance ( float distance )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
[[File:Far.png|thumb|example for function]]&lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''distance:''' A float specifying the distance of render. '''Setting this less than 5 will cause problems to the client.'''&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the distance was set correctly, ''false'' if invalid arguments were passed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Server&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
This example adjusts the visibility range of the game world.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addEventHandler( &amp;quot;onResourceStart&amp;quot;, resourceRoot,&lt;br /&gt;
	function( )&lt;br /&gt;
		setFarClipDistance( 3000 ) -- We adjust visibility range to 3000 metres&lt;br /&gt;
	end&lt;br /&gt;
)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&amp;lt;section name=&amp;quot;Client&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;false&amp;quot;&amp;gt;&lt;br /&gt;
This example adjusts the visibility range of the game world.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addEventHandler( &amp;quot;onClientResourceStart&amp;quot;, resourceRoot,&lt;br /&gt;
	function( )&lt;br /&gt;
		setFarClipDistance( 3000 ) -- We adjust visibility range to 3000 metres&lt;br /&gt;
	end&lt;br /&gt;
)&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;
{{World functions}}&lt;/div&gt;</summary>
		<author><name>DREFTHUN</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnClientChatMessage&amp;diff=69053</id>
		<title>OnClientChatMessage</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnClientChatMessage&amp;diff=69053"/>
		<updated>2021-02-17T07:59:14Z</updated>

		<summary type="html">&lt;p&gt;DREFTHUN: PR isn't merged yet, my bad.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client event}}&lt;br /&gt;
__NOTOC__ &lt;br /&gt;
This event is triggered when any text is output to chatbox, including MTA's hardcoded messages.&lt;br /&gt;
&lt;br /&gt;
==Parameters== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string text, int r, int g, int b&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''text:''' The text that was output to chatbox&lt;br /&gt;
*'''r:''' The amount of red in the color of the text.&lt;br /&gt;
*'''g:''' The amount of green in the color of the text.&lt;br /&gt;
*'''b:''' The amount of blue in the color of the text.&lt;br /&gt;
&lt;br /&gt;
==Source==&lt;br /&gt;
The [[event system#Event source|source]] of this event is either a [[player]] element or the [[root]] element.&lt;br /&gt;
&lt;br /&gt;
==Cancel effect==&lt;br /&gt;
AS OF 1.3.2&lt;br /&gt;
If this event is [[Event system#Canceling|canceled]], the game's chat system won't deliver the posts. You may use [[outputChatBox]] to send the messages then.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example doesn't output anything to chatbox if it consists only of numbers&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function onClientChatMessageHandler(text)&lt;br /&gt;
	if string.match(text,&amp;quot;%d+&amp;quot;) --[[string.match searches for pattern &amp;quot;%d+&amp;quot;, means decimals]] == text then -- if string.match and text itself are the same&lt;br /&gt;
		cancelEvent() -- don't output it&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onClientChatMessage&amp;quot;, getRootElement(), onClientChatMessageHandler)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
&lt;br /&gt;
===Client other events===&lt;br /&gt;
{{Client_other_events}}&lt;br /&gt;
===Client event functions===&lt;br /&gt;
{{Client_event_functions}}&lt;/div&gt;</summary>
		<author><name>DREFTHUN</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnClientChatMessage&amp;diff=69004</id>
		<title>OnClientChatMessage</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnClientChatMessage&amp;diff=69004"/>
		<updated>2021-02-16T09:30:28Z</updated>

		<summary type="html">&lt;p&gt;DREFTHUN: Added messageType parameter based on PR https://github.com/multitheftauto/mtasa-blue/pull/1020&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client event}}&lt;br /&gt;
__NOTOC__ &lt;br /&gt;
This event is triggered when any text is output to chatbox, including MTA's hardcoded messages.&lt;br /&gt;
&lt;br /&gt;
==Parameters== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string text, int r, int g, int b, int messageType&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''text:''' The text that was output to chatbox&lt;br /&gt;
*'''r:''' The amount of red in the color of the text.&lt;br /&gt;
*'''g:''' The amount of green in the color of the text.&lt;br /&gt;
*'''b:''' The amount of blue in the color of the text.&lt;br /&gt;
*'''messageType:''' an [[int]] value representing the message type:&lt;br /&gt;
**'''0:''' normal message&lt;br /&gt;
**'''1:''' action message (/team)&lt;br /&gt;
**'''2:''' team message&lt;br /&gt;
**'''3:''' private message (/msg)&lt;br /&gt;
**'''4:''' hardcoded message&lt;br /&gt;
&lt;br /&gt;
==Source==&lt;br /&gt;
The [[event system#Event source|source]] of this event is either a [[player]] element or the [[root]] element.&lt;br /&gt;
&lt;br /&gt;
==Cancel effect==&lt;br /&gt;
AS OF 1.3.2&lt;br /&gt;
If this event is [[Event system#Canceling|canceled]], the game's chat system won't deliver the posts. You may use [[outputChatBox]] to send the messages then.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example doesn't output anything to chatbox if it consists only of numbers&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function onClientChatMessageHandler(text)&lt;br /&gt;
	if string.match(text,&amp;quot;%d+&amp;quot;) --[[string.match searches for pattern &amp;quot;%d+&amp;quot;, means decimals]] == text then -- if string.match and text itself are the same&lt;br /&gt;
		cancelEvent() -- don't output it&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onClientChatMessage&amp;quot;, getRootElement(), onClientChatMessageHandler)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
&lt;br /&gt;
===Client other events===&lt;br /&gt;
{{Client_other_events}}&lt;br /&gt;
===Client event functions===&lt;br /&gt;
{{Client_event_functions}}&lt;/div&gt;</summary>
		<author><name>DREFTHUN</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Bone_IDs&amp;diff=69001</id>
		<title>Bone IDs</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Bone_IDs&amp;diff=69001"/>
		<updated>2021-02-16T06:09:19Z</updated>

		<summary type="html">&lt;p&gt;DREFTHUN: Undo revision 68981 by DREFTHUN (talk)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Ped bone IDs==&lt;br /&gt;
[[Image:32bones.png|thumb|Bone numbers]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 3px red solid; margin-bottom:3px; padding-left:5px;&amp;quot;&amp;gt;&lt;br /&gt;
*'''0:''' BONE_ROOT&lt;br /&gt;
*'''1:''' BONE_PELVIS1&lt;br /&gt;
*'''2:''' BONE_PELVIS&lt;br /&gt;
*'''3:''' BONE_SPINE1&lt;br /&gt;
*'''4:''' BONE_UPPERTORSO&lt;br /&gt;
*'''5:''' BONE_NECK&lt;br /&gt;
*'''6:''' BONE_HEAD2&lt;br /&gt;
*'''7:''' BONE_HEAD1&lt;br /&gt;
*'''8:''' BONE_HEAD&lt;br /&gt;
*'''21:''' BONE_RIGHTUPPERTORSO&lt;br /&gt;
*'''22:''' BONE_RIGHTSHOULDER&lt;br /&gt;
*'''23:''' BONE_RIGHTELBOW&lt;br /&gt;
*'''24:''' BONE_RIGHTWRIST&lt;br /&gt;
*'''25:''' BONE_RIGHTHAND&lt;br /&gt;
*'''26:''' BONE_RIGHTTHUMB&lt;br /&gt;
*'''31:''' BONE_LEFTUPPERTORSO&lt;br /&gt;
*'''32:''' BONE_LEFTSHOULDER&lt;br /&gt;
*'''33:''' BONE_LEFTELBOW&lt;br /&gt;
*'''34:''' BONE_LEFTWRIST&lt;br /&gt;
*'''35:''' BONE_LEFTHAND&lt;br /&gt;
*'''36:''' BONE_LEFTTHUMB&lt;br /&gt;
*'''41:''' BONE_LEFTHIP&lt;br /&gt;
*'''42:''' BONE_LEFTKNEE&lt;br /&gt;
*'''43:''' BONE_LEFTANKLE&lt;br /&gt;
*'''44:''' BONE_LEFTFOOT&lt;br /&gt;
*'''51:''' BONE_RIGHTHIP&lt;br /&gt;
*'''52:''' BONE_RIGHTKNEE&lt;br /&gt;
*'''53:''' BONE_RIGHTANKLE&lt;br /&gt;
*'''54:''' BONE_RIGHTFOOT&lt;br /&gt;
*'''201:''' BONE_BELLY&lt;br /&gt;
*'''301:''' BONE_RIGHTBREAST&lt;br /&gt;
*'''302:''' BONE_LEFTBREAST&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Scripting Concepts]]&lt;br /&gt;
[[Category:ID Lists]]&lt;/div&gt;</summary>
		<author><name>DREFTHUN</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=AttachElementToBone&amp;diff=68982</id>
		<title>AttachElementToBone</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=AttachElementToBone&amp;diff=68982"/>
		<updated>2021-02-15T10:03:17Z</updated>

		<summary type="html">&lt;p&gt;DREFTHUN: Fixed code indentation&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Useful Function}}&lt;br /&gt;
&amp;lt;lowercasetitle/&amp;gt;&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function allows you to attach an object, ped, player or vehicle to a ped or player bone for '''ONE FRAME'''. In order to attach an element continuously to a bone, this function should be used in conjunction with [[onClientPedsProcessed]].&lt;br /&gt;
The function checks if a player is actually on screen and if he is not, the object gets moved out of the stream distance in order to preserve some performance.&lt;br /&gt;
Unlike bone_attach, this function provides perfect accuracy for the attached elements and performs better.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool attachElementToBone(element theElement, ped thePed, int boneID, float offsetX, float offsetY, float offsetZ, float rotationOffsetX, float rotationOffsetZ, float rotationOffsetZ)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required arguments===&lt;br /&gt;
* '''theElement''': The element which should be attached to the ped/player bone. Should work with any element that is supported by matrix functions.&lt;br /&gt;
* '''thePed''': The ped or player which the element should be attached to.&lt;br /&gt;
* '''boneID''': The target bone where the element should be attached to.&lt;br /&gt;
* '''offsetX''': The X position offset from the bone.&lt;br /&gt;
* '''offsetY''': The Y position offset from the bone.&lt;br /&gt;
* '''offsetZ''': The Z position offset from the bone.&lt;br /&gt;
* '''rotationOffsetX''': The rotation X-axis offset from the bone, in '''radians'''.&lt;br /&gt;
* '''rotationOffsetY''': The rotation Y-axis offset from the bone, in '''radians'''.&lt;br /&gt;
* '''rotationOffsetZ''': The rotation Z-axis offset from the bone, in '''radians'''.&lt;br /&gt;
&lt;br /&gt;
[[Image:Bones.jpg|thumb|Bone numbers]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 3px red solid; margin-bottom:3px; padding-left:5px;&amp;quot;&amp;gt;&lt;br /&gt;
*'''1:''' BONE_PELVIS1&lt;br /&gt;
*'''2:''' BONE_PELVIS&lt;br /&gt;
*'''3:''' BONE_SPINE1&lt;br /&gt;
*'''4:''' BONE_UPPERTORSO&lt;br /&gt;
*'''5:''' BONE_NECK&lt;br /&gt;
*'''6:''' BONE_HEAD2&lt;br /&gt;
*'''7:''' BONE_HEAD1&lt;br /&gt;
*'''8:''' BONE_HEAD&lt;br /&gt;
*'''21:''' BONE_RIGHTUPPERTORSO&lt;br /&gt;
*'''22:''' BONE_RIGHTSHOULDER&lt;br /&gt;
*'''23:''' BONE_RIGHTELBOW&lt;br /&gt;
*'''24:''' BONE_RIGHTWRIST&lt;br /&gt;
*'''25:''' BONE_RIGHTHAND&lt;br /&gt;
*'''26:''' BONE_RIGHTTHUMB&lt;br /&gt;
*'''31:''' BONE_LEFTUPPERTORSO&lt;br /&gt;
*'''32:''' BONE_LEFTSHOULDER&lt;br /&gt;
*'''33:''' BONE_LEFTELBOW&lt;br /&gt;
*'''34:''' BONE_LEFTWRIST&lt;br /&gt;
*'''35:''' BONE_LEFTHAND&lt;br /&gt;
*'''36:''' BONE_LEFTTHUMB&lt;br /&gt;
*'''41:''' BONE_LEFTHIP&lt;br /&gt;
*'''42:''' BONE_LEFTKNEE&lt;br /&gt;
*'''43:''' BONE_LEFTANKLE&lt;br /&gt;
*'''44:''' BONE_LEFTFOOT&lt;br /&gt;
*'''51:''' BONE_RIGHTHIP&lt;br /&gt;
*'''52:''' BONE_RIGHTKNEE&lt;br /&gt;
*'''53:''' BONE_RIGHTANKLE&lt;br /&gt;
*'''54:''' BONE_RIGHTFOOT&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Return===&lt;br /&gt;
Returns true if the object has successfully been attached to the ped/player, returns false if the specified ped/player is not on screen and the object has been moved out of the streaming distance.&lt;br /&gt;
&lt;br /&gt;
==Code==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function attachElementToBone(element, ped, bone, offX, offY, offZ, offrx, offry, offrz)&lt;br /&gt;
    if isElementOnScreen(ped) then&lt;br /&gt;
        local boneMat = getElementBoneMatrix(ped, bone)&lt;br /&gt;
        local sroll, croll, spitch, cpitch, syaw, cyaw = math.sin(offrz), math.cos(offrz), math.sin(offry), math.cos(offry), math.sin(offrx), math.cos(offrx)&lt;br /&gt;
        local rotMat = {&lt;br /&gt;
            {sroll * spitch * syaw + croll * cyaw,&lt;br /&gt;
            sroll * cpitch,&lt;br /&gt;
            sroll * spitch * cyaw - croll * syaw},&lt;br /&gt;
            {croll * spitch * syaw - sroll * cyaw,&lt;br /&gt;
            croll * cpitch,&lt;br /&gt;
            croll * spitch * cyaw + sroll * syaw},&lt;br /&gt;
            {cpitch * syaw,&lt;br /&gt;
            -spitch,&lt;br /&gt;
            cpitch * cyaw}&lt;br /&gt;
        }&lt;br /&gt;
        local finalMatrix = {&lt;br /&gt;
            {boneMat[2][1] * rotMat[1][2] + boneMat[1][1] * rotMat[1][1] + rotMat[1][3] * boneMat[3][1],&lt;br /&gt;
            boneMat[3][2] * rotMat[1][3] + boneMat[1][2] * rotMat[1][1] + boneMat[2][2] * rotMat[1][2],-- right&lt;br /&gt;
            boneMat[2][3] * rotMat[1][2] + boneMat[3][3] * rotMat[1][3] + rotMat[1][1] * boneMat[1][3],&lt;br /&gt;
            0},&lt;br /&gt;
            {rotMat[2][3] * boneMat[3][1] + boneMat[2][1] * rotMat[2][2] + rotMat[2][1] * boneMat[1][1],&lt;br /&gt;
            boneMat[3][2] * rotMat[2][3] + boneMat[2][2] * rotMat[2][2] + boneMat[1][2] * rotMat[2][1],-- front &lt;br /&gt;
            rotMat[2][1] * boneMat[1][3] + boneMat[3][3] * rotMat[2][3] + boneMat[2][3] * rotMat[2][2],&lt;br /&gt;
            0},&lt;br /&gt;
            {boneMat[2][1] * rotMat[3][2] + rotMat[3][3] * boneMat[3][1] + rotMat[3][1] * boneMat[1][1],&lt;br /&gt;
            boneMat[3][2] * rotMat[3][3] + boneMat[2][2] * rotMat[3][2] + rotMat[3][1] * boneMat[1][2],-- up&lt;br /&gt;
            rotMat[3][1] * boneMat[1][3] + boneMat[3][3] * rotMat[3][3] + boneMat[2][3] * rotMat[3][2],&lt;br /&gt;
            0},&lt;br /&gt;
            {offX * boneMat[1][1] + offY * boneMat[2][1] + offZ * boneMat[3][1] + boneMat[4][1],&lt;br /&gt;
            offX * boneMat[1][2] + offY * boneMat[2][2] + offZ * boneMat[3][2] + boneMat[4][2],-- pos&lt;br /&gt;
            offX * boneMat[1][3] + offY * boneMat[2][3] + offZ * boneMat[3][3] + boneMat[4][3],&lt;br /&gt;
            1}&lt;br /&gt;
        }&lt;br /&gt;
        setElementMatrix(element, finalMatrix)&lt;br /&gt;
        return true&lt;br /&gt;
    else&lt;br /&gt;
        setElementPosition(element, 0, 0, -1000)&lt;br /&gt;
        return false&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&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 attaches a sniper rifle and a backpack to the local player.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local theGun = createObject(358, 0, 0, 0)&lt;br /&gt;
local thePara = createObject(371, 0, 0, 0)&lt;br /&gt;
&lt;br /&gt;
local function onPedsProcessed()&lt;br /&gt;
attachElementToBone(theGun, localPlayer, 24, 0, 0, 0, 0, 0, 0)-- Attach the sniper model to bone #24 of the local player, no offset is needed because the default GTA weapon models fit perfectly fine into bone #24&lt;br /&gt;
attachElementToBone(thePara, localPlayer, 3, 0.1, -0.14, 0, math.rad(90), 0, 0)-- Attach parachute to bone #3 of the local player with a small position and rotation offset, so it looks nice&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onClientPedsProcessed&amp;quot;, root, onPedsProcessed)&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;
{{Useful_Functions}}&lt;/div&gt;</summary>
		<author><name>DREFTHUN</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Bone_IDs&amp;diff=68981</id>
		<title>Bone IDs</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Bone_IDs&amp;diff=68981"/>
		<updated>2021-02-15T10:01:58Z</updated>

		<summary type="html">&lt;p&gt;DREFTHUN: Edited to match with getPedBonePosition page.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Ped bone IDs==&lt;br /&gt;
[[Image:Bones.jpg|thumb|Bone numbers]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 3px red solid; margin-bottom:3px; padding-left:5px;&amp;quot;&amp;gt;&lt;br /&gt;
*'''1:''' BONE_PELVIS1&lt;br /&gt;
*'''2:''' BONE_PELVIS&lt;br /&gt;
*'''3:''' BONE_SPINE1&lt;br /&gt;
*'''4:''' BONE_UPPERTORSO&lt;br /&gt;
*'''5:''' BONE_NECK&lt;br /&gt;
*'''6:''' BONE_HEAD2&lt;br /&gt;
*'''7:''' BONE_HEAD1&lt;br /&gt;
*'''8:''' BONE_HEAD&lt;br /&gt;
*'''21:''' BONE_RIGHTUPPERTORSO&lt;br /&gt;
*'''22:''' BONE_RIGHTSHOULDER&lt;br /&gt;
*'''23:''' BONE_RIGHTELBOW&lt;br /&gt;
*'''24:''' BONE_RIGHTWRIST&lt;br /&gt;
*'''25:''' BONE_RIGHTHAND&lt;br /&gt;
*'''26:''' BONE_RIGHTTHUMB&lt;br /&gt;
*'''31:''' BONE_LEFTUPPERTORSO&lt;br /&gt;
*'''32:''' BONE_LEFTSHOULDER&lt;br /&gt;
*'''33:''' BONE_LEFTELBOW&lt;br /&gt;
*'''34:''' BONE_LEFTWRIST&lt;br /&gt;
*'''35:''' BONE_LEFTHAND&lt;br /&gt;
*'''36:''' BONE_LEFTTHUMB&lt;br /&gt;
*'''41:''' BONE_LEFTHIP&lt;br /&gt;
*'''42:''' BONE_LEFTKNEE&lt;br /&gt;
*'''43:''' BONE_LEFTANKLE&lt;br /&gt;
*'''44:''' BONE_LEFTFOOT&lt;br /&gt;
*'''51:''' BONE_RIGHTHIP&lt;br /&gt;
*'''52:''' BONE_RIGHTKNEE&lt;br /&gt;
*'''53:''' BONE_RIGHTANKLE&lt;br /&gt;
*'''54:''' BONE_RIGHTFOOT&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Scripting Concepts]]&lt;br /&gt;
[[Category:ID Lists]]&lt;/div&gt;</summary>
		<author><name>DREFTHUN</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetPedBonePosition&amp;diff=68980</id>
		<title>GetPedBonePosition</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetPedBonePosition&amp;diff=68980"/>
		<updated>2021-02-15T09:58:51Z</updated>

		<summary type="html">&lt;p&gt;DREFTHUN: bone_attach is really old, without editing it, it's 1 frame behind while aiming, and also not performance friendly. Replaced it with pAttach, a much more optimized version.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Client function}}&lt;br /&gt;
Returns the 3D world coordinates of a specific bone of a given ped.&lt;br /&gt;
{{Tip|If you want attach element to ped bone, use [[https://community.multitheftauto.com/index.php?p=resources&amp;amp;s=details&amp;amp;id=18389 pAttach]] resource}}&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
float, float, float getPedBonePosition ( ped thePed, int bone )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||[[ped]]:getBonePosition||}}&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''thePed:''' the ped you want to inspect.&lt;br /&gt;
*'''bone:''' the number of the bone to get the position of.&lt;br /&gt;
&lt;br /&gt;
[[Image:Bones.jpg|thumb|Bone numbers]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 3px red solid; margin-bottom:3px; padding-left:5px;&amp;quot;&amp;gt;&lt;br /&gt;
*'''1:''' BONE_PELVIS1&lt;br /&gt;
*'''2:''' BONE_PELVIS&lt;br /&gt;
*'''3:''' BONE_SPINE1&lt;br /&gt;
*'''4:''' BONE_UPPERTORSO&lt;br /&gt;
*'''5:''' BONE_NECK&lt;br /&gt;
*'''6:''' BONE_HEAD2&lt;br /&gt;
*'''7:''' BONE_HEAD1&lt;br /&gt;
*'''8:''' BONE_HEAD&lt;br /&gt;
*'''21:''' BONE_RIGHTUPPERTORSO&lt;br /&gt;
*'''22:''' BONE_RIGHTSHOULDER&lt;br /&gt;
*'''23:''' BONE_RIGHTELBOW&lt;br /&gt;
*'''24:''' BONE_RIGHTWRIST&lt;br /&gt;
*'''25:''' BONE_RIGHTHAND&lt;br /&gt;
*'''26:''' BONE_RIGHTTHUMB&lt;br /&gt;
*'''31:''' BONE_LEFTUPPERTORSO&lt;br /&gt;
*'''32:''' BONE_LEFTSHOULDER&lt;br /&gt;
*'''33:''' BONE_LEFTELBOW&lt;br /&gt;
*'''34:''' BONE_LEFTWRIST&lt;br /&gt;
*'''35:''' BONE_LEFTHAND&lt;br /&gt;
*'''36:''' BONE_LEFTTHUMB&lt;br /&gt;
*'''41:''' BONE_LEFTHIP&lt;br /&gt;
*'''42:''' BONE_LEFTKNEE&lt;br /&gt;
*'''43:''' BONE_LEFTANKLE&lt;br /&gt;
*'''44:''' BONE_LEFTFOOT&lt;br /&gt;
*'''51:''' BONE_RIGHTHIP&lt;br /&gt;
*'''52:''' BONE_RIGHTKNEE&lt;br /&gt;
*'''53:''' BONE_RIGHTANKLE&lt;br /&gt;
*'''54:''' BONE_RIGHTFOOT&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns the x, y, z world position of the bone.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example renders name tags above a player's head bone.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addEventHandler( &amp;quot;onClientRender&amp;quot;,root,&lt;br /&gt;
   function( )&lt;br /&gt;
      local px, py, pz, tx, ty, tz, dist&lt;br /&gt;
      px, py, pz = getCameraMatrix( )&lt;br /&gt;
      for _, v in ipairs( getElementsByType 'player' ) do&lt;br /&gt;
         tx, ty, tz = getElementPosition( v )&lt;br /&gt;
         dist = math.sqrt( ( px - tx ) ^ 2 + ( py - ty ) ^ 2 + ( pz - tz ) ^ 2 )&lt;br /&gt;
         if dist &amp;lt; 30.0 then&lt;br /&gt;
            if isLineOfSightClear( px, py, pz, tx, ty, tz, true, false, false, true, false, false, false,localPlayer ) then&lt;br /&gt;
               local sx, sy, sz = getPedBonePosition( v, 5 )&lt;br /&gt;
               local x,y = getScreenFromWorldPosition( sx, sy, sz + 0.3 )&lt;br /&gt;
               if x then -- getScreenFromWorldPosition returns false if the point isn't on screen&lt;br /&gt;
                dxDrawText( getPlayerName( v ), x, y, x, y, tocolor(150, 50, 0), 0.85 + ( 15 - dist ) * 0.02, &amp;quot;bankgothic&amp;quot; )&lt;br /&gt;
               end&lt;br /&gt;
            end&lt;br /&gt;
         end&lt;br /&gt;
      end&lt;br /&gt;
   end&lt;br /&gt;
)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Example 2==&lt;br /&gt;
This one draw all local player's bones&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addEventHandler('onClientRender', root, function()&lt;br /&gt;
	for bone = 1, 54 do&lt;br /&gt;
	 local bonePos = {getPedBonePosition(localPlayer, bone)}&lt;br /&gt;
		if bonePos[1] then&lt;br /&gt;
		 local screen = {getScreenFromWorldPosition(unpack(bonePos))}&lt;br /&gt;
			if screen[1] then&lt;br /&gt;
			 dxDrawText(''..bone, screen[1], screen[2])&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;
{{Client_ped_functions}}&lt;br /&gt;
&lt;br /&gt;
[[hu:getPedBonePosition]]&lt;br /&gt;
[[ru:GetPedBonePosition]]&lt;/div&gt;</summary>
		<author><name>DREFTHUN</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=AttachElementToBone&amp;diff=67874</id>
		<title>AttachElementToBone</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=AttachElementToBone&amp;diff=67874"/>
		<updated>2020-12-01T10:50:20Z</updated>

		<summary type="html">&lt;p&gt;DREFTHUN: Added interior and dimension sync as well.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Useful Function}}&lt;br /&gt;
&amp;lt;lowercasetitle/&amp;gt;&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function allows you to attach an object, ped, player or vehicle to a ped or player bone for '''ONE FRAME'''. In order to attach an element continuously to a bone, this function should be used in conjunction with [[onClientPedsProcessed]].&lt;br /&gt;
The function checks if a player is actually on screen and if he is not, the object gets moved out of the stream distance in order to preserve some performance.&lt;br /&gt;
Unlike bone_attach, this function provides perfect accuracy for the attached elements and performs better.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool attachElementToBone(element theElement, ped thePed, int boneID, float offsetX, float offsetY, float offsetZ, float rotationOffsetX, float rotationOffsetZ, float rotationOffsetZ)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required arguments===&lt;br /&gt;
* '''theElement''': The element which should be attached to the ped/player bone. Should work with any element that is supported by matrix functions.&lt;br /&gt;
* '''thePed''': The ped or player which the element should be attached to.&lt;br /&gt;
* '''boneID''': The target bone where the element should be attached to.&lt;br /&gt;
* '''offsetX''': The X position offset from the bone.&lt;br /&gt;
* '''offsetY''': The Y position offset from the bone.&lt;br /&gt;
* '''offsetZ''': The Z position offset from the bone.&lt;br /&gt;
* '''rotationOffsetX''': The rotation X-axis offset from the bone, in '''radians'''.&lt;br /&gt;
* '''rotationOffsetY''': The rotation Y-axis offset from the bone, in '''radians'''.&lt;br /&gt;
* '''rotationOffsetZ''': The rotation Z-axis offset from the bone, in '''radians'''.&lt;br /&gt;
&lt;br /&gt;
[[Image:Bones.jpg|thumb|Bone numbers]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 3px red solid; margin-bottom:3px; padding-left:5px;&amp;quot;&amp;gt;&lt;br /&gt;
*'''1:''' BONE_PELVIS1&lt;br /&gt;
*'''2:''' BONE_PELVIS&lt;br /&gt;
*'''3:''' BONE_SPINE1&lt;br /&gt;
*'''4:''' BONE_UPPERTORSO&lt;br /&gt;
*'''5:''' BONE_NECK&lt;br /&gt;
*'''6:''' BONE_HEAD2&lt;br /&gt;
*'''7:''' BONE_HEAD1&lt;br /&gt;
*'''8:''' BONE_HEAD&lt;br /&gt;
*'''21:''' BONE_RIGHTUPPERTORSO&lt;br /&gt;
*'''22:''' BONE_RIGHTSHOULDER&lt;br /&gt;
*'''23:''' BONE_RIGHTELBOW&lt;br /&gt;
*'''24:''' BONE_RIGHTWRIST&lt;br /&gt;
*'''25:''' BONE_RIGHTHAND&lt;br /&gt;
*'''26:''' BONE_RIGHTTHUMB&lt;br /&gt;
*'''31:''' BONE_LEFTUPPERTORSO&lt;br /&gt;
*'''32:''' BONE_LEFTSHOULDER&lt;br /&gt;
*'''33:''' BONE_LEFTELBOW&lt;br /&gt;
*'''34:''' BONE_LEFTWRIST&lt;br /&gt;
*'''35:''' BONE_LEFTHAND&lt;br /&gt;
*'''36:''' BONE_LEFTTHUMB&lt;br /&gt;
*'''41:''' BONE_LEFTHIP&lt;br /&gt;
*'''42:''' BONE_LEFTKNEE&lt;br /&gt;
*'''43:''' BONE_LEFTANKLE&lt;br /&gt;
*'''44:''' BONE_LEFTFOOT&lt;br /&gt;
*'''51:''' BONE_RIGHTHIP&lt;br /&gt;
*'''52:''' BONE_RIGHTKNEE&lt;br /&gt;
*'''53:''' BONE_RIGHTANKLE&lt;br /&gt;
*'''54:''' BONE_RIGHTFOOT&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Return===&lt;br /&gt;
Returns true if the object has successfully been attached to the ped/player, returns false if the specified ped/player is not on screen and the object has been moved out of the streaming distance.&lt;br /&gt;
&lt;br /&gt;
==Code==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function attachElementToBone(element, ped, bone, offX, offY, offZ, offrx, offry, offrz)&lt;br /&gt;
if isElementOnScreen(ped) then&lt;br /&gt;
	local boneMat = getElementBoneMatrix(ped, bone)&lt;br /&gt;
	local interior, dimension = getElementInterior(ped), getElementDimension(ped)&lt;br /&gt;
	local sroll, croll, spitch, cpitch, syaw, cyaw = math.sin(offrz), math.cos(offrz), math.sin(offry), math.cos(offry), math.sin(offrx), math.cos(offrx)&lt;br /&gt;
	local rotMat = {&lt;br /&gt;
		{sroll * spitch * syaw + croll * cyaw,&lt;br /&gt;
		sroll * cpitch,&lt;br /&gt;
		sroll * spitch * cyaw - croll * syaw},&lt;br /&gt;
		{croll * spitch * syaw - sroll * cyaw,&lt;br /&gt;
		croll * cpitch,&lt;br /&gt;
		croll * spitch * cyaw + sroll * syaw},&lt;br /&gt;
		{cpitch * syaw,&lt;br /&gt;
		-spitch,&lt;br /&gt;
		cpitch * cyaw}&lt;br /&gt;
	}&lt;br /&gt;
	local finalMatrix = {&lt;br /&gt;
		{boneMat[2][1] * rotMat[1][2] + boneMat[1][1] * rotMat[1][1] + rotMat[1][3] * boneMat[3][1],&lt;br /&gt;
		boneMat[3][2] * rotMat[1][3] + boneMat[1][2] * rotMat[1][1] + boneMat[2][2] * rotMat[1][2],-- right&lt;br /&gt;
		boneMat[2][3] * rotMat[1][2] + boneMat[3][3] * rotMat[1][3] + rotMat[1][1] * boneMat[1][3],&lt;br /&gt;
		0},&lt;br /&gt;
		{rotMat[2][3] * boneMat[3][1] + boneMat[2][1] * rotMat[2][2] + rotMat[2][1] * boneMat[1][1],&lt;br /&gt;
		boneMat[3][2] * rotMat[2][3] + boneMat[2][2] * rotMat[2][2] + boneMat[1][2] * rotMat[2][1],-- front &lt;br /&gt;
		rotMat[2][1] * boneMat[1][3] + boneMat[3][3] * rotMat[2][3] + boneMat[2][3] * rotMat[2][2],&lt;br /&gt;
		0},&lt;br /&gt;
		{boneMat[2][1] * rotMat[3][2] + rotMat[3][3] * boneMat[3][1] + rotMat[3][1] * boneMat[1][1],&lt;br /&gt;
		boneMat[3][2] * rotMat[3][3] + boneMat[2][2] * rotMat[3][2] + rotMat[3][1] * boneMat[1][2],-- up&lt;br /&gt;
		rotMat[3][1] * boneMat[1][3] + boneMat[3][3] * rotMat[3][3] + boneMat[2][3] * rotMat[3][2],&lt;br /&gt;
		0},&lt;br /&gt;
		{offX * boneMat[1][1] + offY * boneMat[2][1] + offZ * boneMat[3][1] + boneMat[4][1],&lt;br /&gt;
		offX * boneMat[1][2] + offY * boneMat[2][2] + offZ * boneMat[3][2] + boneMat[4][2],-- pos&lt;br /&gt;
		offX * boneMat[1][3] + offY * boneMat[2][3] + offZ * boneMat[3][3] + boneMat[4][3],&lt;br /&gt;
		1}&lt;br /&gt;
	}&lt;br /&gt;
	setElementInterior(element, interior)&lt;br /&gt;
	setElementDimension(element, dimension)&lt;br /&gt;
	setElementMatrix(element, finalMatrix)&lt;br /&gt;
	return true&lt;br /&gt;
else&lt;br /&gt;
	setElementPosition(element, 0, 0, -1000)&lt;br /&gt;
	return false&lt;br /&gt;
end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&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 attaches a sniper rifle and a backpack to the local player.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local theGun = createObject(358, 0, 0, 0)&lt;br /&gt;
local thePara = createObject(371, 0, 0, 0)&lt;br /&gt;
&lt;br /&gt;
local function onPedsProcessed()&lt;br /&gt;
attachElementToBone(theGun, localPlayer, 24, 0, 0, 0, 0, 0, 0)-- Attach the sniper model to bone #24 of the local player, no offset is needed because the default GTA weapon models fit perfectly fine into bone #24&lt;br /&gt;
attachElementToBone(thePara, localPlayer, 3, 0.1, -0.14, 0, math.rad(90), 0, 0)-- Attach parachute to bone #3 of the local player with a small position and rotation offset, so it looks nice&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onClientPedsProcessed&amp;quot;, root, onPedsProcessed)&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;
{{Useful_Functions}}&lt;/div&gt;</summary>
		<author><name>DREFTHUN</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=User:DREFTHUN&amp;diff=67240</id>
		<title>User:DREFTHUN</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=User:DREFTHUN&amp;diff=67240"/>
		<updated>2020-08-10T07:53:33Z</updated>

		<summary type="html">&lt;p&gt;DREFTHUN: Created page with &amp;quot;Advanced Lua scripter  Selling custom scripts on demand   • Completey written from scratch (or if you are willing from refurbished functions of my own scripts for faster wor...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Advanced Lua scripter&lt;br /&gt;
&lt;br /&gt;
Selling custom scripts on demand &lt;br /&gt;
 • Completey written from scratch (or if you are willing from refurbished functions of my own scripts for faster work) &lt;br /&gt;
 • Quick work &lt;br /&gt;
 • Communication between seller and buyer &lt;br /&gt;
 • Relatively cheap &lt;br /&gt;
 • MySQL and phpmyadmin knowledge&lt;br /&gt;
 • Can make almost anything&lt;br /&gt;
 DM me (&amp;lt;@!326243099426684928&amp;gt;) if you are interested. I can send video proof of my previous projects too.&lt;/div&gt;</summary>
		<author><name>DREFTHUN</name></author>
	</entry>
</feed>