> 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/performance-index-exports/getperformanceindexcalibrationmetrics.md).

# getPerformanceIndexCalibrationMetrics

getPerformanceIndexCalibrationMetrics(vehicleHash \[string])

Prints in the F8 console data for calibrating the P.I in the "performanceIndexData.lua"

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.

Code Example:

```lua
        local piCalPressed = WarMenu.Button("Print PI Calibration Results")
        if WarMenu.IsItemHovered() then
            WarMenu.ToolTip('Prints in the F8 Console the data required for calibration.',nil,true)
        end
        if piCalPressed then 
            local currentCarModel = GetEntityModel(GetVehiclePedIsIn(PlayerPedId(),false))
            dynamic:getPerformanceIndexCalibrationMetrics(currentCarModel)
        end
```
