> For the complete documentation index, see [llms.txt](https://legacydmc.gitbook.io/dynamic/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://legacydmc.gitbook.io/dynamic/ecu-exports/getvehicledata.md).

# getVehicleData

This function returns the data of the vehicleData.lua to the specified vehicle.\
\
Preferably, you should input the vehicle hash as "elegy" for example.&#x20;

However if you input it's hash "196747873" it will also work, but will have the function to take longer to execute.

```lua
local currentCarModel = GetEntityModel(GetVehiclePedIsIn(PlayerPedId(),false))
local currentCarData = dynamic:getVehicleData(currentCarModel)
```

\
\
\ <br>
