Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 21 additions & 21 deletions frontend/docs/scripting/resources/carcomponentid.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ description: Information about car component IDs, model names, parts, types, sup
| 1005 | bnt_b_sc_l | Hood | Fury Scoop | Certain Transfender cars | $150 |
| 1006 | rf_b_sc_r | Roof | Roof Scoop | Certain Transfender cars | $80 |
| 1007 | wg_l_b_ssk | Sideskirt | Right Sideskirt | Certain Transfender cars | $500 |
| 1008 | nto_b_l | Nitro | 5 times | Most cars, Most planes and Most Helicopters | $500 |
| 1009 | nto_b_s | Nitro | 2 times | Most cars, Most planes and Most Helicopters | $200 |
| 1010 | nto_b_tw | Nitro | 10 times | Most cars, Most planes and Most Helicopters | $1000 |
| 1008 | nto_b_l | Nitro | 5 times | Most cars, most planes and most helicopters | $500 |
| 1009 | nto_b_s | Nitro | 2 times | Most cars, most planes and most helicopters | $200 |
| 1010 | nto_b_tw | Nitro | 10 times | Most cars, most planes and most helicopters | $1000 |
| 1011 | bnt_b_sc_p_m | Hood | Race Scoop | Certain Transfender cars | $220 |
| 1012 | bnt_b_sc_p_l | Hood | Worx Scoop | Certain Transfender cars | $250 |
| 1013 | lgt_b_rspt | Lamps | Round Fog | Certain Transfender cars | $100 |
Expand All @@ -42,23 +42,23 @@ description: Information about car component IDs, model names, parts, types, sup
| 1033 | rf_c_s | Roof | X-Flow Roof Vent | Sultan | $120 |
| 1034 | exh_a_l | Exhaust | Alien | Elegy | $790 |
| 1035 | rf_c_l | Roof | X-Flow Roof Vent | Elegy | $150 |
| 1036 | wg_l_a_l | SideSkirt | Right Alien Sideskirt | Elegy | $500 |
| 1036 | wg_l_a_l | Sideskirt | Right Alien Sideskirt | Elegy | $500 |
| 1037 | exh_c_l | Exhaust | X-Flow | Elegy | $690 |
| 1038 | rf_a_l | Roof | Alien Roof Vent | Elegy | $190 |
| 1039 | wg_l_c_l | SideSkirt | Left X-Flow Sideskirt | Elegy | $390 |
| 1040 | wg_r_a_l | SideSkirt | Left Alien Sideskirt | Elegy | $500 |
| 1041 | wg_r_c_l | SideSkirt | Right X-Flow Sideskirt | Elegy | $390 |
| 1042 | wg_l_lr_br1 | SideSkirt | Right Chrome Sideskirt | Broadway | $1000 |
| 1039 | wg_l_c_l | Sideskirt | Left X-Flow Sideskirt | Elegy | $390 |
| 1040 | wg_r_a_l | Sideskirt | Left Alien Sideskirt | Elegy | $500 |
| 1041 | wg_r_c_l | Sideskirt | Right X-Flow Sideskirt | Elegy | $390 |
| 1042 | wg_l_lr_br1 | Sideskirt | Right Chrome Sideskirt | Broadway | $1000 |
| 1043 | exh_lr_br2 | Exhaust | Slamin | Broadway | $500 |
| 1044 | exh_lr_br1 | Exhaust | Chrome | Broadway | $500 |
| 1045 | exh_c_f | Exhaust | X-Flow | Flash | $510 |
| 1046 | exh_a_f | Exhaust | Alien | Flash | $710 |
| 1047 | wg_l_a_f | SideSkirt | Right Alien Sideskirt | Flash | $670 |
| 1048 | wg_l_c_f | SideSkirt | Right X-Flow Sideskirt | Flash | $530 |
| 1047 | wg_l_a_f | Sideskirt | Right Alien Sideskirt | Flash | $670 |
| 1048 | wg_l_c_f | Sideskirt | Right X-Flow Sideskirt | Flash | $530 |
| 1049 | spl_a_f_r | Spoiler | Alien | Flash | $810 |
| 1050 | spl_c_f_r | Spoiler | X-Flow | Flash | $620 |
| 1051 | wg_r_a_f | SideSkirt | Left Alien Sideskirt | Flash | $670 |
| 1052 | wg_r_c_f | SideSkirt | Left X-Flow Sideskirt | Flash | $530 |
| 1051 | wg_r_a_f | Sideskirt | Left Alien Sideskirt | Flash | $670 |
| 1052 | wg_r_c_f | Sideskirt | Left X-Flow Sideskirt | Flash | $530 |
| 1053 | rf_c_f | Roof | X-Flow | Flash | $130 |
| 1054 | rf_a_f | Roof | Alien | Flash | $210 |
| 1055 | rf_a_st | Roof | Alien | Stratum | $230 |
Expand Down Expand Up @@ -109,7 +109,7 @@ description: Information about car component IDs, model names, parts, types, sup
| 1100 | misc_c_lr_rem1 | Bullbar | Chrome Grill | Remington | $940 |
| 1101 | wg_r_lr_rem1 | Sideskirt | Left `Chrome Flames` Sideskirt | Remington | $780 |
| 1102 | wg_r_lr_sv | Sideskirt | Left `Chrome Strip` Sideskirt | Savanna | $830 |
| 1103 | rf_lr_bl2 | Roof | Covertible | Blade | $3250 |
| 1103 | rf_lr_bl2 | Roof | Convertible | Blade | $3250 |
| 1104 | exh_lr_bl1 | Exhaust | Chrome | Blade | $1610 |
| 1105 | exh_lr_bl2 | Exhaust | Slamin | Blade | $1540 |
| 1106 | wg_l_lr_rem2 | Sideskirt | Right `Chrome Arches` Sideskirt | Remington | $780 |
Expand Down Expand Up @@ -140,18 +140,18 @@ description: Information about car component IDs, model names, parts, types, sup
| 1131 | rf_lr_sv2 | Roof | Softtop | Savanna | $3290 |
| 1132 | exh_lr_sv2 | Exhaust | Slamin | Savanna | $1590 |
| 1133 | wg_l_lr_sv | Sideskirt | Right `Chrome Strip` Sideskirt | Savanna | $830 |
| 1134 | wg_l_lr_t1 | SideSkirt | Right `Chrome Strip` Sideskirt | Tornado | $800 |
| 1134 | wg_l_lr_t1 | Sideskirt | Right `Chrome Strip` Sideskirt | Tornado | $800 |
| 1135 | exh_lr_t2 | Exhaust | Slamin | Tornado | $1500 |
| 1136 | exh_lr_t1 | Exhaust | Chrome | Tornado | $1000 |
| 1137 | wg_r_lr_t1 | Sideskirt | Left `Chrome Strip` Sideskirt | Tornado | $800 |
| 1138 | spl_a_s_b | Spoiler | Alien | Sultan | $580 |
| 1139 | spl_c_s_b | Spoiler | X-Flow | Sultan | $470 |
| 1140 | rbmp_c_s | Rear Bumper | X-Flow | Sultan | $870 |
| 1141 | rbmp_a_s | Rear Bumper | Alien | Sultan | $980 |
| 1142 | bntr_b_ov | Vents | Left Oval Vents | Certain Transfender Cars | $150 |
| 1143 | bntl_b_ov | Vents | Right Oval Vents | Certain Transfender Cars | $150 |
| 1144 | bntr_b_sq | Vents | Left Square Vents | Certain Transfender Cars | $100 |
| 1145 | bntl_b_sq | Vents | Right Square Vents | Certain Transfender Cars | $100 |
| 1142 | bntr_b_ov | Vents | Left Oval Vents | Certain Transfender cars | $150 |
| 1143 | bntl_b_ov | Vents | Right Oval Vents | Certain Transfender cars | $150 |
| 1144 | bntr_b_sq | Vents | Left Square Vents | Certain Transfender cars | $100 |
| 1145 | bntl_b_sq | Vents | Right Square Vents | Certain Transfender cars | $100 |
| 1146 | spl_c_l_b | Spoiler | X-Flow | Elegy | $490 |
| 1147 | spl_a_l_b | Spoiler | Alien | Elegy | $600 |
| 1148 | rbmp_c_l | Rear Bumper | X-Flow | Elegy | $890 |
Expand All @@ -160,7 +160,7 @@ description: Information about car component IDs, model names, parts, types, sup
| 1151 | rbmp_c_f | Rear Bumper | X-Flow | Flash | $840 |
| 1152 | fbmp_c_f | Front Bumper | X-Flow | Flash | $910 |
| 1153 | fbmp_a_f | Front Bumper | Alien | Flash | $1200 |
| 1154 | rbmp_a_s | tRear Bumper | Alien | Stratum | $1030 |
| 1154 | rbmp_a_st | Rear Bumper | Alien | Stratum | $1030 |
| 1155 | fbmp_a_st | Front Bumper | Alien | Stratum | $1030 |
| 1156 | rbmp_c_st | Rear Bumper | X-Flow | Stratum | $920 |
| 1157 | fbmp_c_st | Front Bumper | X-Flow | Stratum | $930 |
Expand Down Expand Up @@ -209,7 +209,7 @@ description: Information about car component IDs, model names, parts, types, sup
| Bravura | 401 | 1001, 1003, 1004, 1005, 1006, 1007, 1008, 1009, 1010, 1013, 1017, 1019, 1020, 1025, 1073, 1074, 1075, 1076, 1077, 1078, 1079, 1080, 1081, 1082, 1083, 1084, 1085, 1086, 1087, 1096, 1097, 1098, 1142, 1143, 1144, 1145 |
| Buffalo | 402 | 1008, 1009, 1010, 1025, 1073, 1074, 1075, 1076, 1077, 1078, 1079, 1080, 1081, 1082, 1083, 1084, 1085, 1086, 1087, 1096, 1097, 1098 |
| Linerunner | 403 | 1008, 1009, 1010, 1025, 1073, 1074, 1075, 1076, 1077, 1078, 1079, 1080, 1081, 1082, 1083, 1084, 1085, 1086, 1087, 1096, 1097, 1098 |
| Perrenial | 404 | 1000, 1002, 1007, 1008, 1009, 1010, 1013, 1016, 1017, 1019, 1020, 1021, 1025, 1073, 1074, 1075, 1076, 1077, 1078, 1079, 1080, 1081, 1082, 1083, 1084, 1085, 1086, 1087, 1096, 1097, 1098 |
| Perennial | 404 | 1000, 1002, 1007, 1008, 1009, 1010, 1013, 1016, 1017, 1019, 1020, 1021, 1025, 1073, 1074, 1075, 1076, 1077, 1078, 1079, 1080, 1081, 1082, 1083, 1084, 1085, 1086, 1087, 1096, 1097, 1098 |
| Sentinel | 405 | 1000, 1001, 1008, 1009, 1010, 1014, 1018, 1019, 1020, 1021, 1023, 1025, 1073, 1074, 1075, 1076, 1077, 1078, 1079, 1080, 1081, 1082, 1083, 1084, 1085, 1086, 1087, 1096, 1097, 1098 |
| Dumper | 406 | 1008, 1009, 1010, 1025, 1073, 1074, 1075, 1076, 1077, 1078, 1079, 1080, 1081, 1082, 1083, 1084, 1085, 1086, 1087, 1096, 1097, 1098 |
| Firetruck | 407 | 1008, 1009, 1010, 1025, 1073, 1074, 1075, 1076, 1077, 1078, 1079, 1080, 1081, 1082, 1083, 1084, 1085, 1086, 1087, 1096, 1097, 1098 |
Expand Down Expand Up @@ -418,6 +418,6 @@ description: Information about car component IDs, model names, parts, types, sup
| Farm Plow | 610 | None |
| Utility Trailer | 611 | None |

## All vehicle costs separated by comma
## All component costs separated by comma

`400, 550, 200, 250, 100, 150, 80, 500, 500, 200, 1000, 220, 250, 100, 400, 500, 200, 500, 350, 300, 250, 200, 150, 350, 50, 1000, 480, 480, 770, 680, 370, 370, 170, 120, 790, 150, 500, 690, 190, 390, 500, 390, 1000, 500, 500, 510, 710, 670, 530, 810, 620, 670, 530, 130, 210, 230, 520, 430, 620, 720, 530, 180, 550, 430, 830, 850, 750, 250, 200, 550, 450, 550, 450, 1100, 1030, 980, 1560, 1620, 1200, 1030, 900, 1230, 820, 1560, 1350, 770, 100, 1500, 150, 650, 450, 100, 750, 350, 450, 350, 1000, 620, 1140, 1000, 940, 780, 830, 3250, 1610, 1540, 780, 780, 780, 1610, 1540, 0, 0, 3340, 3250, 2130, 2050, 2040, 780, 940, 780, 940, 780, 860, 780, 1120, 3340, 3250, 3340, 1650, 3380, 3290, 1590, 830, 800, 1500, 1000, 800, 580, 470, 870, 980, 150, 150, 100, 100, 490, 600, 890, 1000, 1090, 840, 910, 1200, 1030, 1030, 920, 930, 550, 1050, 1050, 950, 650, 450, 550, 850, 950, 850, 950, 970, 880, 990, 900, 950, 1000, 900, 1000, 900, 2050, 2150, 2130, 2050, 2130, 2040, 2150, 2040, 2095, 2175, 2080, 2200, 1200, 1040, 940, 1100`
12 changes: 6 additions & 6 deletions frontend/docs/scripting/resources/colorslist.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ For the Hex code for these colors, go to the [Hex colors](hexcolors) page.

### Alpha values (transparency)

The following images display the effect of transparency values used with a white quare under the player marker and left to the saving floppy icon. Increments of 0x11 (decimal 17) are used for demonstration, but of course you can use any value.
The following images display the effect of transparency values used with a white square under the player marker and left to the saving floppy icon. Increments of 0x11 (decimal 17) are used for demonstration, but of course you can use any value.

![Image:trans_matrix.png](https://assets.open.mp/assets/images/colorList/transparency/trans_matrix.png)

---

### Doing math

Since colors are just numbers it is possible to calculate with them, although it may not always make sense. For example, it is possible to adjust the player's radar marker visibility (see above) while keeping their current color the same, regardless of what is is.
Since colors are just numbers it is possible to calculate with them, although it may not always make sense. For example, it is possible to adjust the player's radar marker visibility (see above) while keeping their current color the same, regardless of what it is.

```c
SetPlayerMarkerVisibility(playerid, alpha = 0xFF)
Expand All @@ -34,7 +34,7 @@ SetPlayerMarkerVisibility(playerid, alpha = 0xFF)
alpha = clamp(alpha, 0x00, 0xFF); // if an out-of-range value is supplied we'll fix it here first
oldcolor = GetPlayerColor(playerid); // get their color - Note: SetPlayerColor must have been used beforehand

newcolor = (oldcolor & ~0xFF) | alpha; // first we strip of all alpha data (& ~0xFF) and then we replace it with our desired value (| alpha)
newcolor = (oldcolor & ~0xFF) | alpha; // first we strip off all alpha data (& ~0xFF) and then we replace it with our desired value (| alpha)
return SetPlayerColor(playerid, newcolor); // returns 1 if it succeeded, 0 otherwise
}
```
Expand Down Expand Up @@ -121,7 +121,7 @@ Or
SendClientMessage(playerid, -1, "This is white and {"COLOR_RED_EMBED"}this is red.");
```

The second example would be better as is it clearer that embedding is used.
The second example would be better as it is clearer that embedding is used.

---

Expand Down Expand Up @@ -193,12 +193,12 @@ Game text colour tags can be used to form different colours easily. The below co
~w~Hello this is ~b~blue ~w~and this is ~r~red
```

[![Image:Blueandred.png](https://assets.open.mp/assets/images/colorList/Blueandred.png)
![Image:Blueandred.png](https://assets.open.mp/assets/images/colorList/Blueandred.png)

Now these colors are pretty dark. You can make them brighter by using **`~h~`** after the color code:

```c
~w~Hello this is ~b~~h~blue ~w~and this is ~r~~h~red
```

[![Image:Blueandred2.png](https://assets.open.mp/assets/images/colorList/Blueandred2.png)
![Image:Blueandred2.png](https://assets.open.mp/assets/images/colorList/Blueandred2.png)
Loading
Loading