Skip to content

Commit

Permalink
Update about DLC Vehicle function (#653)
Browse files Browse the repository at this point in the history
* Update about DLC Vehicle function

* Update GetNumDlcVehicles.md

* Fix formatting

Co-authored-by: stannum <[email protected]>
  • Loading branch information
LaFouine25 and stannum-cfx authored Mar 12, 2022
1 parent 0f59982 commit 10518e8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
13 changes: 5 additions & 8 deletions FILES/GetDlcVehicleData.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,14 @@ ns: FILES

```c
// 0x33468EDC08E371F6 0xCF428FA4
BOOL GET_DLC_VEHICLE_DATA(int dlcVehicleIndex, int* outData);
BOOL GET_DLC_VEHICLE_DATA(int dlcVehicleIndex, Any* outData);
```
```
dlcVehicleIndex takes a number from 0 - GET_NUM_DLC_VEHICLES() - 1.
outData is a struct of 3 8-byte items.
The Second item in the struct *(Hash *)(outData + 1) is the vehicle hash.
```
The Second item in the struct `*(Hash *)(outData + 1)` is the vehicle hash.
## Parameters
* **dlcVehicleIndex**:
* **outData**:
* **dlcVehicleIndex**: takes a number from 0 to `GET_NUM_DLC_VEHICLES()` - 1.
* **outData**: a struct of 3 8-byte items.
## Return value
A boolean value return if find or not the dlcVehicleIndex.
1 change: 1 addition & 0 deletions FILES/GetNumDlcVehicles.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ ns: FILES
int GET_NUM_DLC_VEHICLES();
```

Returns the total number of DLC vehicles.

## Return value

0 comments on commit 10518e8

Please sign in to comment.