Adapting your NUI

Dynamic uses it's own simulation for most of the car features, meaning common natives will not be able to gather it's data properly. In order to collect data for your NUI to display the vehicle info correctly, using the following export:

getTelemetryData()

This export returns possible useful information about the current client vehicle, as a table.

local telemetryData = {
    engineRpm = rpm, -- Numerical RPM, not normalized.
    gear = currentVehicleGear,
    escActive = isEscActive,
    tcsActive = isTcsActive,
    tcsLevel = vehicleCurrentTcsLevel, 
    tractionLossRatio = vehicleEffectiveTractionLossRatio,
}

return telemetryData

So you can use it to get the current gear for example, like this:

        local dynamic = exports["legacydmc_dynamic"]
        local currentCarTelemetry = dynamic:getTelemetryData()
        
        print("Engine RPM: "..math.round(currentCarTelemetry.engineRpm))
        print("Current Gear: "..currentCarTelemetry.gear)
        print("TCS Actuating: "..tostring(currentCarTelemetry.tcsActive))
        print("ESC Actuating: "..tostring(currentCarTelemetry.escActive))