Vehicle Components: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
m (Nodes) |
||
(5 intermediate revisions by 4 users not shown) | |||
Line 72: | Line 72: | ||
|style="background:#cfcfcf;"|Exhausts | |style="background:#cfcfcf;"|Exhausts | ||
|} | |} | ||
==Bike Components | ==Bike Components== | ||
<br> | <br> | ||
{{Note|Vehicles in the 'bike' category have 8 different components from the others, so a separate table was created..}} | {{Note|Vehicles in the 'bike' category have 8 different components from the others, so a separate table was created..}} | ||
Line 82: | Line 82: | ||
{|class="wikitable" style="text-align:center; margin: 1em auto 1em auto;" | {|class="wikitable" style="text-align:center; margin: 1em auto 1em auto;" | ||
|- | |- | ||
! width="150" scope="col" style="background:#8f8f8f;"| Component Name | ! width="150" scope="col" style="background:#8f8f8f;"| Component Name | ||
! width="300" scope="col" style="background:#8f8f8f;"| Description | |||
|- | |- | ||
|style="background:#cfcfcf;"|chassis_dummy | |style="background:#cfcfcf;"|chassis_dummy | ||
Line 101: | Line 101: | ||
|style="background:#cfcfcf;"|Rear tire | |style="background:#cfcfcf;"|Rear tire | ||
|- | |- | ||
|style="background:#cfcfcf;"| | |style="background:#cfcfcf;"|wheel_front | ||
|style="background:#cfcfcf;"|Front Tire | |style="background:#cfcfcf;"|Front Tire | ||
|- | |- | ||
Line 125: | Line 125: | ||
|- | |- | ||
|} | |} | ||
<!-- | |||
==Misc components for vehicles== | |||
<center> | |||
===misc_a=== | |||
</center> | |||
{|class="wikitable" style="text-align:center; margin: 1em auto 1em auto;" | |||
|- | |||
! width="150" scope="col" style="background:#8f8f8f;"| Vehicle ID | |||
! width="300" scope="col" style="background:#8f8f8f;"| Part name | |||
! width="150" scope="col" style="background:#8f8f8f;"| Preview | |||
|- | |||
|style="background:#cfcfcf;"|603 | |||
|style="background:#cfcfcf;"|Unknown element | |||
|[[File:603_misc_a.png]] | |||
|- | |||
|style="background:#cfcfcf;"|477 | |||
|style="background:#cfcfcf;"|Front lights | |||
|[[File:477_misc_a.png]] | |||
|- | |||
|style="background:#cfcfcf;"|536 | |||
|style="background:#cfcfcf;"|Suspension element | |||
|[[File:536_misc_a.png]] | |||
|- | |||
| | |||
|} | |||
<br/> | |||
<center> | |||
===misc_b=== | |||
</center> | |||
{|class="wikitable" style="text-align:center; margin: 1em auto 1em auto;" | |||
|- | |||
! width="150" scope="col" style="background:#8f8f8f;"| Vehicle ID | |||
! width="300" scope="col" style="background:#8f8f8f;"| Part name | |||
! width="150" scope="col" style="background:#8f8f8f;"| Preview | |||
|- | |||
|style="background:#cfcfcf;"|536, 575 | |||
|style="background:#cfcfcf;"|Suspension element | |||
|[[File:536_misc_a.png]] this is ok | |||
|- | |||
| | |||
|} | |||
--> | |||
==Component nodes== | |||
Component nodes for [[spawnVehicleFlyingComponent]] function. | |||
<div style="display:flex;flex-direction:column;> | |||
<div style="display:flex;justify-content:center;gap:20px;"> | |||
<div style="display:flex; flex-direction:column;"> | |||
<center> | |||
===Car (Automobile) & Trailer=== | |||
</center> | |||
{|class="wikitable" style="text-align:center; margin: 1em auto 1em auto;" | |||
|- | |||
! width="150" scope="col" style="background:#8f8f8f;"| Node index | |||
! width="300" scope="col" style="background:#8f8f8f;"| Component name | |||
|- | |||
|style="background:#cfcfcf;"|1 | |||
|style="background:#cfcfcf;"|chassis | |||
|- | |||
|style="background:#cfcfcf;"|2 | |||
|style="background:#cfcfcf;"|wheel_rf_dummy | |||
|- | |||
|style="background:#cfcfcf;"|3 | |||
|style="background:#cfcfcf;"|wheel_rm_dummy | |||
|- | |||
|style="background:#cfcfcf;"|4 | |||
|style="background:#cfcfcf;"|wheel_rb_dummy | |||
|- | |||
|style="background:#cfcfcf;"|5 | |||
|style="background:#cfcfcf;"|wheel_lf_dummy | |||
|- | |||
|style="background:#cfcfcf;"|6 | |||
|style="background:#cfcfcf;"|wheel_lm_dummy | |||
|- | |||
|style="background:#cfcfcf;"|7 | |||
|style="background:#cfcfcf;"|wheel_lb_dummy | |||
|- | |||
|style="background:#cfcfcf;"|8 | |||
|style="background:#cfcfcf;"|door_rf_dummy | |||
|- | |||
|style="background:#cfcfcf;"|9 | |||
|style="background:#cfcfcf;"|door_rr_dummy | |||
|- | |||
|style="background:#cfcfcf;"|10 | |||
|style="background:#cfcfcf;"|door_lf_dummy | |||
|- | |||
|style="background:#cfcfcf;"|11 | |||
|style="background:#cfcfcf;"|door_lr_dummy | |||
|- | |||
|style="background:#cfcfcf;"|12 | |||
|style="background:#cfcfcf;"|bump_front_dummy | |||
|- | |||
|style="background:#cfcfcf;"|13 | |||
|style="background:#cfcfcf;"|bump_rear_dummy | |||
|- | |||
|style="background:#cfcfcf;"|14 | |||
|style="background:#cfcfcf;"|wing_rf_dummy | |||
|- | |||
|style="background:#cfcfcf;"|15 | |||
|style="background:#cfcfcf;"|wing_lf_dummy | |||
|- | |||
|style="background:#cfcfcf;"|16 | |||
|style="background:#cfcfcf;"|bonnet_dummy | |||
|- | |||
|style="background:#cfcfcf;"|17 | |||
|style="background:#cfcfcf;"|boot_dummy | |||
|- | |||
|style="background:#cfcfcf;"|18 | |||
|style="background:#cfcfcf;"|windscreen_dummy | |||
|- | |||
|style="background:#cfcfcf;"|19 | |||
|style="background:#cfcfcf;"|exhaust_ok | |||
|- | |||
|style="background:#cfcfcf;"|20 | |||
|style="background:#cfcfcf;"|misc_a | |||
|- | |||
|style="background:#cfcfcf;"|21 | |||
|style="background:#cfcfcf;"|misc_b | |||
|- | |||
|style="background:#cfcfcf;"|22 | |||
|style="background:#cfcfcf;"|misc_c | |||
|- | |||
|style="background:#cfcfcf;"|23 | |||
|style="background:#cfcfcf;"|misc_d | |||
|- | |||
|style="background:#cfcfcf;"|24 | |||
|style="background:#cfcfcf;"|misc_e | |||
| | |||
|} | |||
</div> | |||
<div style="display:flex; flex-direction:column;"> | |||
<center> | |||
===Bike=== | |||
</center> | |||
{|class="wikitable" style="text-align:center; margin: 1em auto 1em auto;" | |||
|- | |||
! width="150" scope="col" style="background:#8f8f8f;"| Node index | |||
! width="300" scope="col" style="background:#8f8f8f;"| Component name | |||
|- | |||
|style="background:#cfcfcf;"|1 | |||
|style="background:#cfcfcf;"|chassis | |||
|- | |||
|style="background:#cfcfcf;"|2 | |||
|style="background:#cfcfcf;"|forks_front | |||
|- | |||
|style="background:#cfcfcf;"|3 | |||
|style="background:#cfcfcf;"|forks_rear | |||
|- | |||
|style="background:#cfcfcf;"|4 | |||
|style="background:#cfcfcf;"|wheel_front | |||
|- | |||
|style="background:#cfcfcf;"|5 | |||
|style="background:#cfcfcf;"|wheel_rear | |||
|- | |||
|style="background:#cfcfcf;"|6 | |||
|style="background:#cfcfcf;"|mudguard | |||
|- | |||
|style="background:#cfcfcf;"|7 | |||
|style="background:#cfcfcf;"|handlebars | |||
|- | |||
|style="background:#cfcfcf;"|8 | |||
|style="background:#cfcfcf;"|misc_a | |||
|- | |||
|style="background:#cfcfcf;"|9 | |||
|style="background:#cfcfcf;"|misc_b | |||
|- | |||
| | |||
|} | |||
</div> | |||
</div> | |||
<div style="display:flex;justify-content:center;gap:20px;"> | |||
<div style="display:flex; flex-direction: column;"> | |||
<center> | |||
===Bicycle (BMX)=== | |||
</center> | |||
{|class="wikitable" style="text-align:center; margin: 1em auto 1em auto;" | |||
|- | |||
! width="150" scope="col" style="background:#8f8f8f;"| Node index | |||
! width="300" scope="col" style="background:#8f8f8f;"| Component name | |||
|- | |||
|style="background:#cfcfcf;"|1 | |||
|style="background:#cfcfcf;"|chassis | |||
|- | |||
|style="background:#cfcfcf;"|2 | |||
|style="background:#cfcfcf;"|forks_front | |||
|- | |||
|style="background:#cfcfcf;"|3 | |||
|style="background:#cfcfcf;"|forks_rear | |||
|- | |||
|style="background:#cfcfcf;"|4 | |||
|style="background:#cfcfcf;"|wheel_front | |||
|- | |||
|style="background:#cfcfcf;"|5 | |||
|style="background:#cfcfcf;"|wheel_rear | |||
|- | |||
|style="background:#cfcfcf;"|6 | |||
|style="background:#cfcfcf;"|handlebars | |||
|- | |||
|style="background:#cfcfcf;"|7 | |||
|style="background:#cfcfcf;"|chainset | |||
|- | |||
|style="background:#cfcfcf;"|8 | |||
|style="background:#cfcfcf;"|pedal_r | |||
|- | |||
|style="background:#cfcfcf;"|9 | |||
|style="background:#cfcfcf;"|pedal_b | |||
|- | |||
| | |||
|} | |||
</div> | |||
<div style="display:flex; flex-direction: column;"> | |||
<center> | |||
===Quadbike=== | |||
</center> | |||
{|class="wikitable" style="text-align:center; margin: 1em auto 1em auto;" | |||
|- | |||
! width="150" scope="col" style="background:#8f8f8f;"| Node index | |||
! width="300" scope="col" style="background:#8f8f8f;"| Component name | |||
|- | |||
|style="background:#cfcfcf;"|1 | |||
|style="background:#cfcfcf;"|chassis | |||
|- | |||
|style="background:#cfcfcf;"|2 | |||
|style="background:#cfcfcf;"|wheel_rf | |||
|- | |||
|style="background:#cfcfcf;"|3 | |||
|style="background:#cfcfcf;"|wheel_rm | |||
|- | |||
|style="background:#cfcfcf;"|4 | |||
|style="background:#cfcfcf;"|wheel_rb | |||
|- | |||
|style="background:#cfcfcf;"|5 | |||
|style="background:#cfcfcf;"|wheel_lf | |||
|- | |||
|style="background:#cfcfcf;"|6 | |||
|style="background:#cfcfcf;"|wheel_lm | |||
|- | |||
|style="background:#cfcfcf;"|7 | |||
|style="background:#cfcfcf;"|wheel_lb | |||
|- | |||
|style="background:#cfcfcf;"|8 | |||
|style="background:#cfcfcf;"|door_rf | |||
|- | |||
|style="background:#cfcfcf;"|9 | |||
|style="background:#cfcfcf;"|door_rr | |||
|- | |||
|style="background:#cfcfcf;"|10 | |||
|style="background:#cfcfcf;"|door_lf | |||
|- | |||
|style="background:#cfcfcf;"|11 | |||
|style="background:#cfcfcf;"|door_lr | |||
|- | |||
|style="background:#cfcfcf;"|12 | |||
|style="background:#cfcfcf;"|body_front | |||
|- | |||
|style="background:#cfcfcf;"|13 | |||
|style="background:#cfcfcf;"|body_rear | |||
|- | |||
|style="background:#cfcfcf;"|14 | |||
|style="background:#cfcfcf;"|suspension_rf | |||
|- | |||
|style="background:#cfcfcf;"|15 | |||
|style="background:#cfcfcf;"|suspension_lf | |||
|- | |||
|style="background:#cfcfcf;"|16 | |||
|style="background:#cfcfcf;"|rear_axle | |||
|- | |||
|style="background:#cfcfcf;"|17 | |||
|style="background:#cfcfcf;"|handlebars | |||
|- | |||
|style="background:#cfcfcf;"|18 | |||
|style="background:#cfcfcf;"|misc_a | |||
|- | |||
|style="background:#cfcfcf;"|19 | |||
|style="background:#cfcfcf;"|misc_b | |||
|- | |||
| | |||
|} | |||
</div> | |||
</div> | |||
<div style="display:flex;justify-content:center;gap:20px;"> | |||
<div style="display-flex;flex-direction:column;"> | |||
<center> | |||
===Monster Truck=== | |||
</center> | |||
{|class="wikitable" style="text-align:center; margin: 1em auto 1em auto;" | |||
|- | |||
! width="150" scope="col" style="background:#8f8f8f;"| Node index | |||
! width="300" scope="col" style="background:#8f8f8f;"| Component name | |||
|- | |||
|style="background:#cfcfcf;"|1 | |||
|style="background:#cfcfcf;"|chassis | |||
|- | |||
|style="background:#cfcfcf;"|2 | |||
|style="background:#cfcfcf;"|wheel_rf | |||
|- | |||
|style="background:#cfcfcf;"|3 | |||
|style="background:#cfcfcf;"|wheel_rm | |||
|- | |||
|style="background:#cfcfcf;"|4 | |||
|style="background:#cfcfcf;"|wheel_rb | |||
|- | |||
|style="background:#cfcfcf;"|5 | |||
|style="background:#cfcfcf;"|wheel_lf | |||
|- | |||
|style="background:#cfcfcf;"|6 | |||
|style="background:#cfcfcf;"|wheel_lm | |||
|- | |||
|style="background:#cfcfcf;"|7 | |||
|style="background:#cfcfcf;"|wheel_lb | |||
|- | |||
|style="background:#cfcfcf;"|8 | |||
|style="background:#cfcfcf;"|door_rf | |||
|- | |||
|style="background:#cfcfcf;"|9 | |||
|style="background:#cfcfcf;"|door_rr | |||
|- | |||
|style="background:#cfcfcf;"|10 | |||
|style="background:#cfcfcf;"|door_lf | |||
|- | |||
|style="background:#cfcfcf;"|11 | |||
|style="background:#cfcfcf;"|door_lr | |||
|- | |||
|style="background:#cfcfcf;"|12 | |||
|style="background:#cfcfcf;"|bump_front | |||
|- | |||
|style="background:#cfcfcf;"|13 | |||
|style="background:#cfcfcf;"|bump_rear | |||
|- | |||
|style="background:#cfcfcf;"|14 | |||
|style="background:#cfcfcf;"|wing_rf | |||
|- | |||
|style="background:#cfcfcf;"|15 | |||
|style="background:#cfcfcf;"|wing_lf | |||
|- | |||
|style="background:#cfcfcf;"|16 | |||
|style="background:#cfcfcf;"|bonnet | |||
|- | |||
|style="background:#cfcfcf;"|17 | |||
|style="background:#cfcfcf;"|boot | |||
|- | |||
|style="background:#cfcfcf;"|18 | |||
|style="background:#cfcfcf;"|windscreen | |||
|- | |||
|style="background:#cfcfcf;"|19 | |||
|style="background:#cfcfcf;"|transmission_f | |||
|- | |||
|style="background:#cfcfcf;"|20 | |||
|style="background:#cfcfcf;"|transmission_r | |||
|- | |||
|style="background:#cfcfcf;"|21 | |||
|style="background:#cfcfcf;"|loadbay | |||
|- | |||
|style="background:#cfcfcf;"|22 | |||
|style="background:#cfcfcf;"|misc_a | |||
|- | |||
| | |||
|} | |||
</div> | |||
<div style="display:flex; flex-direction: column;"> | |||
<center> | |||
===Boat=== | |||
</center> | |||
{{Note|'''Jetmax''' and '''Tropic''' cannot spawn any components.}} | |||
{|class="wikitable" style="text-align:center; margin: 1em auto 1em auto;" | |||
|- | |||
! width="150" scope="col" style="background:#8f8f8f;"| Node index | |||
! width="300" scope="col" style="background:#8f8f8f;"| Component name | |||
|- | |||
|style="background:#cfcfcf;"|1 | |||
|style="background:#cfcfcf;"|moving | |||
|- | |||
|style="background:#cfcfcf;"|2 | |||
|style="background:#cfcfcf;"|windscreen | |||
|- | |||
|style="background:#cfcfcf;"|3 | |||
|style="background:#cfcfcf;"|rudder | |||
|- | |||
|style="background:#cfcfcf;"|4 | |||
|style="background:#cfcfcf;"|flap_left | |||
|- | |||
|style="background:#cfcfcf;"|5 | |||
|style="background:#cfcfcf;"|flap_right | |||
|- | |||
|style="background:#cfcfcf;"|6 | |||
|style="background:#cfcfcf;"|rearflap_left | |||
|- | |||
|style="background:#cfcfcf;"|7 | |||
|style="background:#cfcfcf;"|rearflap_right | |||
|- | |||
|style="background:#cfcfcf;"|8 | |||
|style="background:#cfcfcf;"|static_prop | |||
|- | |||
|style="background:#cfcfcf;"|9 | |||
|style="background:#cfcfcf;"|moving_prop | |||
|- | |||
|style="background:#cfcfcf;"|10 | |||
|style="background:#cfcfcf;"|static_prop2 | |||
|- | |||
|style="background:#cfcfcf;"|11 | |||
|style="background:#cfcfcf;"|moving_prop2 | |||
|- | |||
| | |||
|} | |||
</div> | |||
</div> | |||
<div style="display:flex;justify-content:center;gap:20px;"> | |||
<div style="display:flex;flex-direction:column;"> | |||
<center> | |||
===Train & Tram=== | |||
</center> | |||
{|class="wikitable" style="text-align:center; margin: 1em auto 1em auto;" | |||
|- | |||
! width="150" scope="col" style="background:#8f8f8f;"| Node index | |||
! width="300" scope="col" style="background:#8f8f8f;"| Component name | |||
|- | |||
|style="background:#cfcfcf;"|1 | |||
|style="background:#cfcfcf;"|door_lf | |||
|- | |||
|style="background:#cfcfcf;"|2 | |||
|style="background:#cfcfcf;"|door_rf | |||
|- | |||
|style="background:#cfcfcf;"|3 | |||
|style="background:#cfcfcf;"|wheel_rf1 | |||
|- | |||
|style="background:#cfcfcf;"|4 | |||
|style="background:#cfcfcf;"|wheel_rf2 | |||
|- | |||
|style="background:#cfcfcf;"|5 | |||
|style="background:#cfcfcf;"|wheel_rf3 | |||
|- | |||
|style="background:#cfcfcf;"|6 | |||
|style="background:#cfcfcf;"|wheel_rb1 | |||
|- | |||
|style="background:#cfcfcf;"|7 | |||
|style="background:#cfcfcf;"|wheel_rb2 | |||
|- | |||
|style="background:#cfcfcf;"|8 | |||
|style="background:#cfcfcf;"|wheel_rb3 | |||
|- | |||
|style="background:#cfcfcf;"|9 | |||
|style="background:#cfcfcf;"|wheel_lf1 | |||
|- | |||
|style="background:#cfcfcf;"|10 | |||
|style="background:#cfcfcf;"|wheel_lf2 | |||
|- | |||
|style="background:#cfcfcf;"|11 | |||
|style="background:#cfcfcf;"|wheel_lf2 | |||
|- | |||
|style="background:#cfcfcf;"|12 | |||
|style="background:#cfcfcf;"|wheel_lf3 | |||
|- | |||
|style="background:#cfcfcf;"|13 | |||
|style="background:#cfcfcf;"|wheel_lb1 | |||
|- | |||
|style="background:#cfcfcf;"|14 | |||
|style="background:#cfcfcf;"|wheel_lb2 | |||
|- | |||
|style="background:#cfcfcf;"|15 | |||
|style="background:#cfcfcf;"|wheel_lb3 | |||
|- | |||
|style="background:#cfcfcf;"|16 | |||
|style="background:#cfcfcf;"|bogie_front | |||
|- | |||
|style="background:#cfcfcf;"|17 | |||
|style="background:#cfcfcf;"|bogie_rear | |||
|- | |||
| | |||
|} | |||
</div> | |||
<div style="display:flex;flex-direction:column;"> | |||
<center> | |||
===Plane=== | |||
</center> | |||
{|class="wikitable" style="text-align:center; margin: 1em auto 1em auto;" | |||
|- | |||
! width="150" scope="col" style="background:#8f8f8f;"| Node index | |||
! width="300" scope="col" style="background:#8f8f8f;"| Component name | |||
|- | |||
|style="background:#cfcfcf;"|1 | |||
|style="background:#cfcfcf;"|chassis | |||
|- | |||
|style="background:#cfcfcf;"|2 | |||
|style="background:#cfcfcf;"|wheel_rf | |||
|- | |||
|style="background:#cfcfcf;"|3 | |||
|style="background:#cfcfcf;"|wheel_rm | |||
|- | |||
|style="background:#cfcfcf;"|4 | |||
|style="background:#cfcfcf;"|wheel_rb | |||
|- | |||
|style="background:#cfcfcf;"|5 | |||
|style="background:#cfcfcf;"|wheel_lf | |||
|- | |||
|style="background:#cfcfcf;"|6 | |||
|style="background:#cfcfcf;"|wheel_lm | |||
|- | |||
|style="background:#cfcfcf;"|7 | |||
|style="background:#cfcfcf;"|wheel_lb | |||
|- | |||
|style="background:#cfcfcf;"|8 | |||
|style="background:#cfcfcf;"|door_rf | |||
|- | |||
|style="background:#cfcfcf;"|9 | |||
|style="background:#cfcfcf;"|door_rr | |||
|- | |||
|style="background:#cfcfcf;"|10 | |||
|style="background:#cfcfcf;"|door_lf | |||
|- | |||
|style="background:#cfcfcf;"|11 | |||
|style="background:#cfcfcf;"|door_lr | |||
|- | |||
|style="background:#cfcfcf;"|12 | |||
|style="background:#cfcfcf;"|static_prop | |||
|- | |||
|style="background:#cfcfcf;"|13 | |||
|style="background:#cfcfcf;"|moving_prop | |||
|- | |||
|style="background:#cfcfcf;"|14 | |||
|style="background:#cfcfcf;"|static_prop2 | |||
|- | |||
|style="background:#cfcfcf;"|15 | |||
|style="background:#cfcfcf;"|moving_prop2 | |||
|- | |||
|style="background:#cfcfcf;"|16 | |||
|style="background:#cfcfcf;"|rudder | |||
|- | |||
|style="background:#cfcfcf;"|17 | |||
|style="background:#cfcfcf;"|elevator_l | |||
|- | |||
|style="background:#cfcfcf;"|18 | |||
|style="background:#cfcfcf;"|elevator_r | |||
|- | |||
|style="background:#cfcfcf;"|19 | |||
|style="background:#cfcfcf;"|aileron_l | |||
|- | |||
|style="background:#cfcfcf;"|20 | |||
|style="background:#cfcfcf;"|aileron_r | |||
|- | |||
|style="background:#cfcfcf;"|21 | |||
|style="background:#cfcfcf;"|gear_l | |||
|- | |||
|style="background:#cfcfcf;"|22 | |||
|style="background:#cfcfcf;"|gear_r | |||
|- | |||
|style="background:#cfcfcf;"|23 | |||
|style="background:#cfcfcf;"|misc_a | |||
|- | |||
|style="background:#cfcfcf;"|23 | |||
|style="background:#cfcfcf;"|misc_b | |||
|- | |||
| | |||
|} | |||
</div> | |||
</div> | |||
<div style="display:flex;justify-content:center;gap:20px;"> | |||
<div style="display:flex;flex-direction:column;"> | |||
<center> | |||
===Helicopter=== | |||
</center> | |||
{|class="wikitable" style="text-align:center; margin: 1em auto 1em auto;" | |||
|- | |||
! width="150" scope="col" style="background:#8f8f8f;"| Node index | |||
! width="300" scope="col" style="background:#8f8f8f;"| Component name | |||
|- | |||
|style="background:#cfcfcf;"|1 | |||
|style="background:#cfcfcf;"|chassis | |||
|- | |||
|style="background:#cfcfcf;"|2 | |||
|style="background:#cfcfcf;"|wheel_rf | |||
|- | |||
|style="background:#cfcfcf;"|3 | |||
|style="background:#cfcfcf;"|wheel_rm | |||
|- | |||
|style="background:#cfcfcf;"|4 | |||
|style="background:#cfcfcf;"|wheel_rb | |||
|- | |||
|style="background:#cfcfcf;"|5 | |||
|style="background:#cfcfcf;"|wheel_lf | |||
|- | |||
|style="background:#cfcfcf;"|6 | |||
|style="background:#cfcfcf;"|wheel_lm | |||
|- | |||
|style="background:#cfcfcf;"|7 | |||
|style="background:#cfcfcf;"|wheel_lb | |||
|- | |||
|style="background:#cfcfcf;"|8 | |||
|style="background:#cfcfcf;"|door_rf | |||
|- | |||
|style="background:#cfcfcf;"|9 | |||
|style="background:#cfcfcf;"|door_rr | |||
|- | |||
|style="background:#cfcfcf;"|10 | |||
|style="background:#cfcfcf;"|door_lf | |||
|- | |||
|style="background:#cfcfcf;"|11 | |||
|style="background:#cfcfcf;"|door_lr | |||
|- | |||
|style="background:#cfcfcf;"|12 | |||
|style="background:#cfcfcf;"|static_rotor | |||
|- | |||
|style="background:#cfcfcf;"|13 | |||
|style="background:#cfcfcf;"|moving_rotor | |||
|- | |||
|style="background:#cfcfcf;"|14 | |||
|style="background:#cfcfcf;"|static_rotor2 | |||
|- | |||
|style="background:#cfcfcf;"|15 | |||
|style="background:#cfcfcf;"|moving_rotor2 | |||
|- | |||
|style="background:#cfcfcf;"|16 | |||
|style="background:#cfcfcf;"|rudder | |||
|- | |||
|style="background:#cfcfcf;"|17 | |||
|style="background:#cfcfcf;"|elevators | |||
|- | |||
|style="background:#cfcfcf;"|18 | |||
|style="background:#cfcfcf;"|misc_a | |||
|- | |||
|style="background:#cfcfcf;"|19 | |||
|style="background:#cfcfcf;"|misc_b | |||
|- | |||
|style="background:#cfcfcf;"|20 | |||
|style="background:#cfcfcf;"|misc_c | |||
|- | |||
|style="background:#cfcfcf;"|21 | |||
|style="background:#cfcfcf;"|misc_d | |||
|- | |||
| | |||
|} | |||
</div> | |||
<div style="display:flex;flex-direction:column;"> | |||
<div style="width:450px;"></div> | |||
</div> | |||
</div> | |||
</div> | |||
==Code that shows all the components of the vehicle you are inside.== | |||
There are more components that are not yet in these tables above, and if you want to know all of them use this code below. This code works as follows: you enter / climb the vehicle and it will show you all the components as in the image above. | |||
<section name="Client" class="client" show="true"> | |||
<syntaxhighlight lang="lua"> | |||
addEventHandler ( "onClientRender", root, | |||
function() | |||
countTest = 0 | |||
if isPedInVehicle ( localPlayer ) and getPedOccupiedVehicle ( localPlayer ) then | |||
local veh = getPedOccupiedVehicle ( localPlayer ) | |||
for v in pairs ( getVehicleComponents(veh) ) do | |||
countTest = countTest + 1 | |||
local x,y,z = getVehicleComponentPosition ( veh, v, "world" ) | |||
local sx,sy = getScreenFromWorldPosition ( x, y, z ) | |||
if sx and sy then | |||
dxDrawRectangle(sx,sy, 10, 10) | |||
dxDrawLine(sx, sy, sx - (100 + (countTest * 5)), sy-(200+ (countTest * 10))) | |||
dxDrawText ( v, (sx-(120 + (countTest * 5))) -1, (sy-(220 + (countTest * 10))) -1, 0 -1, 0 -1, tocolor(0,0,0), 1, "default-bold" ) | |||
dxDrawText ( v, (sx-(120 + (countTest * 5))) +1, (sy-(220 + (countTest * 10))) -1, 0 +1, 0 -1, tocolor(0,0,0), 1, "default-bold" ) | |||
dxDrawText ( v, (sx-(120 + (countTest * 5))) -1, (sy-(220 + (countTest * 10))) +1, 0 -1, 0 +1, tocolor(0,0,0), 1, "default-bold" ) | |||
dxDrawText ( v, (sx-(120 + (countTest * 5))) +1, (sy-(220 + (countTest * 10))) +1, 0 +1, 0 +1, tocolor(0,0,0), 1, "default-bold" ) | |||
dxDrawText ( v, (sx-(120 + (countTest * 5))), (sy-(220 + (countTest * 10))), 0, 0, tocolor(0,255,255), 1, "default-bold" ) | |||
end | |||
end | |||
end | |||
end) | |||
</syntaxhighlight> | |||
</section> | |||
==Related scripting functions== | ==Related scripting functions== | ||
Line 131: | Line 812: | ||
*[[setVehicleComponentRotation]] | *[[setVehicleComponentRotation]] | ||
*[[setVehicleComponentScale]] | *[[setVehicleComponentScale]] | ||
*[[resetVehicleComponentPosition]] | *[[resetVehicleComponentPosition]] | ||
*[[resetVehicleComponentRotation]] | *[[resetVehicleComponentRotation]] | ||
*[[resetVehicleComponentScale]] | *[[resetVehicleComponentScale]] | ||
*[[getVehicleComponents]] | *[[getVehicleComponents]] | ||
*[[getVehicleComponentVisible]] | *[[getVehicleComponentVisible]] | ||
Line 142: | Line 825: | ||
*[[getVehicleComponentPosition]] | *[[getVehicleComponentPosition]] | ||
*[[spawnVehicleFlyingComponent]] | |||
==Vehicle functions | == See Also == | ||
* [[Vehicle]] | |||
* [[Vehicle IDs]] | |||
* [[Template:Vehicle functions|Vehicle functions]] | |||
* [[id|ID Lists]] |
Latest revision as of 22:09, 12 October 2024
This page aims to provide an overview of vehicle components. The list is currently incomplete.
Component Name | Description |
---|---|
boot_dummy | Trunk door |
ug_nitro | Nitro (tuning part) |
wheel_rf_dummy | Right Front Wheel |
wheel_lf_dummy | Left Front Wheel |
wheel_rb_dummy | Right Back Wheel |
wheel_lb_dummy | Left Back Wheel |
chassis | Chassis |
chassis_vlo | Chassis (lod)[Can't be hid] |
ug_roof | Roof [Can't be hid] |
door_rf_dummy | Right Front Door |
door_lf_dummy | Left Front Door |
door_rr_dummy | Right Back Door |
door_lr_dummy | Left Back Door |
bonnet_dummy | Hood |
ug_wing_right | Right wing (tuning part) [Can't be hid] |
bump_front_dummy | Front bumper |
bump_rear_dummy | Back bumper |
windscreen_dummy | Windscreen |
misc_a | Tow bar position on models: 514, 515, 403, 591, 552, 485, 583, 606, 607, 608. |
ug_wing_left | Leftwing (tuning part) [Can't be hid] |
exhaust_ok | Exhausts |
Bike Components
Many different:
Component Name | Description |
---|---|
chassis_dummy | Vehicle chassis |
plate_rear | Back plate |
handlebars | Handlebars |
mudguard | Mudguard |
wheel_rear | Rear tire |
wheel_front | Front Tire |
froks_rear | Froks rear |
froks_front | Froks front |
Equals:
Component Name |
---|
chassis |
chassis_vlo |
Component nodes
Component nodes for spawnVehicleFlyingComponent function.
Car (Automobile) & Trailer
Node index | Component name | |
---|---|---|
1 | chassis | |
2 | wheel_rf_dummy | |
3 | wheel_rm_dummy | |
4 | wheel_rb_dummy | |
5 | wheel_lf_dummy | |
6 | wheel_lm_dummy | |
7 | wheel_lb_dummy | |
8 | door_rf_dummy | |
9 | door_rr_dummy | |
10 | door_lf_dummy | |
11 | door_lr_dummy | |
12 | bump_front_dummy | |
13 | bump_rear_dummy | |
14 | wing_rf_dummy | |
15 | wing_lf_dummy | |
16 | bonnet_dummy | |
17 | boot_dummy | |
18 | windscreen_dummy | |
19 | exhaust_ok | |
20 | misc_a | |
21 | misc_b | |
22 | misc_c | |
23 | misc_d | |
24 | misc_e |
Bike
Node index | Component name |
---|---|
1 | chassis |
2 | forks_front |
3 | forks_rear |
4 | wheel_front |
5 | wheel_rear |
6 | mudguard |
7 | handlebars |
8 | misc_a |
9 | misc_b |
Bicycle (BMX)
Node index | Component name |
---|---|
1 | chassis |
2 | forks_front |
3 | forks_rear |
4 | wheel_front |
5 | wheel_rear |
6 | handlebars |
7 | chainset |
8 | pedal_r |
9 | pedal_b |
Quadbike
Node index | Component name |
---|---|
1 | chassis |
2 | wheel_rf |
3 | wheel_rm |
4 | wheel_rb |
5 | wheel_lf |
6 | wheel_lm |
7 | wheel_lb |
8 | door_rf |
9 | door_rr |
10 | door_lf |
11 | door_lr |
12 | body_front |
13 | body_rear |
14 | suspension_rf |
15 | suspension_lf |
16 | rear_axle |
17 | handlebars |
18 | misc_a |
19 | misc_b |
Monster Truck
Node index | Component name |
---|---|
1 | chassis |
2 | wheel_rf |
3 | wheel_rm |
4 | wheel_rb |
5 | wheel_lf |
6 | wheel_lm |
7 | wheel_lb |
8 | door_rf |
9 | door_rr |
10 | door_lf |
11 | door_lr |
12 | bump_front |
13 | bump_rear |
14 | wing_rf |
15 | wing_lf |
16 | bonnet |
17 | boot |
18 | windscreen |
19 | transmission_f |
20 | transmission_r |
21 | loadbay |
22 | misc_a |
Boat
Node index | Component name |
---|---|
1 | moving |
2 | windscreen |
3 | rudder |
4 | flap_left |
5 | flap_right |
6 | rearflap_left |
7 | rearflap_right |
8 | static_prop |
9 | moving_prop |
10 | static_prop2 |
11 | moving_prop2 |
Train & Tram
Node index | Component name |
---|---|
1 | door_lf |
2 | door_rf |
3 | wheel_rf1 |
4 | wheel_rf2 |
5 | wheel_rf3 |
6 | wheel_rb1 |
7 | wheel_rb2 |
8 | wheel_rb3 |
9 | wheel_lf1 |
10 | wheel_lf2 |
11 | wheel_lf2 |
12 | wheel_lf3 |
13 | wheel_lb1 |
14 | wheel_lb2 |
15 | wheel_lb3 |
16 | bogie_front |
17 | bogie_rear |
Plane
Node index | Component name |
---|---|
1 | chassis |
2 | wheel_rf |
3 | wheel_rm |
4 | wheel_rb |
5 | wheel_lf |
6 | wheel_lm |
7 | wheel_lb |
8 | door_rf |
9 | door_rr |
10 | door_lf |
11 | door_lr |
12 | static_prop |
13 | moving_prop |
14 | static_prop2 |
15 | moving_prop2 |
16 | rudder |
17 | elevator_l |
18 | elevator_r |
19 | aileron_l |
20 | aileron_r |
21 | gear_l |
22 | gear_r |
23 | misc_a |
23 | misc_b |
Helicopter
Node index | Component name |
---|---|
1 | chassis |
2 | wheel_rf |
3 | wheel_rm |
4 | wheel_rb |
5 | wheel_lf |
6 | wheel_lm |
7 | wheel_lb |
8 | door_rf |
9 | door_rr |
10 | door_lf |
11 | door_lr |
12 | static_rotor |
13 | moving_rotor |
14 | static_rotor2 |
15 | moving_rotor2 |
16 | rudder |
17 | elevators |
18 | misc_a |
19 | misc_b |
20 | misc_c |
21 | misc_d |
Code that shows all the components of the vehicle you are inside.
There are more components that are not yet in these tables above, and if you want to know all of them use this code below. This code works as follows: you enter / climb the vehicle and it will show you all the components as in the image above.
Click to collapse [-]
ClientaddEventHandler ( "onClientRender", root, function() countTest = 0 if isPedInVehicle ( localPlayer ) and getPedOccupiedVehicle ( localPlayer ) then local veh = getPedOccupiedVehicle ( localPlayer ) for v in pairs ( getVehicleComponents(veh) ) do countTest = countTest + 1 local x,y,z = getVehicleComponentPosition ( veh, v, "world" ) local sx,sy = getScreenFromWorldPosition ( x, y, z ) if sx and sy then dxDrawRectangle(sx,sy, 10, 10) dxDrawLine(sx, sy, sx - (100 + (countTest * 5)), sy-(200+ (countTest * 10))) dxDrawText ( v, (sx-(120 + (countTest * 5))) -1, (sy-(220 + (countTest * 10))) -1, 0 -1, 0 -1, tocolor(0,0,0), 1, "default-bold" ) dxDrawText ( v, (sx-(120 + (countTest * 5))) +1, (sy-(220 + (countTest * 10))) -1, 0 +1, 0 -1, tocolor(0,0,0), 1, "default-bold" ) dxDrawText ( v, (sx-(120 + (countTest * 5))) -1, (sy-(220 + (countTest * 10))) +1, 0 -1, 0 +1, tocolor(0,0,0), 1, "default-bold" ) dxDrawText ( v, (sx-(120 + (countTest * 5))) +1, (sy-(220 + (countTest * 10))) +1, 0 +1, 0 +1, tocolor(0,0,0), 1, "default-bold" ) dxDrawText ( v, (sx-(120 + (countTest * 5))), (sy-(220 + (countTest * 10))), 0, 0, tocolor(0,255,255), 1, "default-bold" ) end end end end)
Related scripting functions
- setVehicleComponentVisible
- setVehicleComponentPosition
- setVehicleComponentRotation
- setVehicleComponentScale
- getVehicleComponents
- getVehicleComponentVisible
- getVehicleComponentScale
- getVehicleComponentRotation
- getVehicleComponentPosition