Adapting your NUI
getTelemetryData()
local telemetryData = {
engineRpm = rpm, -- Numerical RPM, not normalized.
gear = currentVehicleGear,
escActive = isEscActive,
tcsActive = isTcsActive,
tcsLevel = vehicleCurrentTcsLevel,
tractionLossRatio = vehicleEffectiveTractionLossRatio,
}
return telemetryData 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))Last updated