Skip to content

Commit e922e8b

Browse files
authored
Merge pull request #1176 from leamir/patch-2
Update (Update/Get)VehicleDamageStatus documentation
2 parents d0a1d28 + 10a1ab5 commit e922e8b

File tree

2 files changed

+16
-8
lines changed

2 files changed

+16
-8
lines changed

frontend/docs/scripting/functions/GetVehicleDamageStatus.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ Retrieve the damage statuses of a vehicle.
1818
| Name | Description |
1919
| --------------------------- | ------------------------------------------------------------------ |
2020
| vehicleid | The ID of the vehicle to get the damage statuses of. |
21-
| VEHICLE_PANEL_STATUS:panels | A variable to store the panel damage data in, passed by reference. |
22-
| VEHICLE_DOOR_STATUS:doors | A variable to store the door damage data in, passed by reference. |
23-
| VEHICLE_LIGHT_STATUS:lights | A variable to store the light damage data in, passed by reference. |
24-
| VEHICLE_TYRE_STATUS:tyres | A variable to store the tire damage data in, passed by reference. |
21+
| VEHICLE_PANEL_STATUS:panels | A set of bits containing the panel damage status. See [Panel States](../resources/panelstates) |
22+
| VEHICLE_DOOR_STATUS:doors | A set of bits containing the door damage status. See [Door States](../resources/doorstates) |
23+
| VEHICLE_LIGHT_STATUS:lights | A set of bits containing the light damage status. See [Light States](../resources/lightstates) |
24+
| VEHICLE_TIRE_STATUS:tires | A set of bits containing the tire damage status. See [Tire States](../resources/tirestates) |
2525

2626
## Returns
2727

@@ -57,6 +57,10 @@ printf("Vehicle Status: [Panels]: %d - [Doors]: %d - [Lights]: %d - [Tyres]: %d"
5757
5858
- [Damage Status](../resources/damagestatus)
5959
- [Vehicle Panel Status](../resources/vehicle-panel-status)
60+
- [Panel States](../resources/panelstates)
6061
- [Vehicle Door Status](../resources/vehicle-door-status)
62+
- [Door States](../resources/doorstates)
6163
- [Vehicle Light Status](../resources/vehicle-light-status)
64+
- [Light States](../resources/lightstates)
6265
- [Vehicle Tire Status](../resources/vehicle-tire-status)
66+
- [Tire States](../resources/tirestates)

frontend/docs/scripting/functions/UpdateVehicleDamageStatus.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ Sets the various visual damage statuses of a vehicle, such as popped tires, brok
1818
| Name | Description |
1919
| --------------------------- | ------------------------------------------------- |
2020
| vehicleid | The ID of the vehicle to set the damage of. |
21-
| VEHICLE_PANEL_STATUS:panels | A set of bits containing the panel damage status. |
22-
| VEHICLE_DOOR_STATUS:doors | A set of bits containing the door damage status. |
23-
| VEHICLE_LIGHT_STATUS:lights | A set of bits containing the light damage status. |
24-
| VEHICLE_TIRE_STATUS:tires | A set of bits containing the tire damage status. |
21+
| VEHICLE_PANEL_STATUS:panels | A set of bits containing the panel damage status. See [Panel States](../resources/panelstates) |
22+
| VEHICLE_DOOR_STATUS:doors | A set of bits containing the door damage status. See [Door States](../resources/doorstates) |
23+
| VEHICLE_LIGHT_STATUS:lights | A set of bits containing the light damage status. See [Light States](../resources/lightstates) |
24+
| VEHICLE_TIRE_STATUS:tires | A set of bits containing the tire damage status. See [Tire States](../resources/tirestates) |
2525

2626
## Returns
2727

@@ -61,6 +61,10 @@ UpdateVehicleDamageStatus(vehicleid, panels, doors, lights, tires);
6161
6262
- [Damage Status](../resources/damagestatus)
6363
- [Vehicle Panel Status](../resources/vehicle-panel-status)
64+
- [Panel States](../resources/panelstates)
6465
- [Vehicle Door Status](../resources/vehicle-door-status)
66+
- [Door States](../resources/doorstates)
6567
- [Vehicle Light Status](../resources/vehicle-light-status)
68+
- [Light States](../resources/lightstates)
6669
- [Vehicle Tire Status](../resources/vehicle-tire-status)
70+
- [Tire States](../resources/tirestates)

0 commit comments

Comments
 (0)