Unsolved clutchInRate in vehicle extension

Discussion in 'Mod Support' started by fillman86, Sep 7, 2025.

  1. fillman86

    fillman86
    Expand Collapse

    Joined:
    Apr 18, 2020
    Messages:
    212
    I want to get the duration of the gear change speed in an extension, and I'm trying to get clutchInRate/clutchOutRate but I can't figure out how.

    I see that it's meant to be in jbeamData, but I can't get init in extensions, and I can't think of another way of getting jbeamData into my extension.
     
  2. SineMatic

    SineMatic
    Expand Collapse

    Joined:
    Nov 17, 2022
    Messages:
    68
    Hi! From file \lua\vehicle\controller\vehicleController\shiftLogic\manualGearbox.lua, line 660:
    Code:
    clutchHandling.clutchInRate = jbeamData.clutchInRate or 25
    clutchHandling.clutchOutRate = jbeamData.clutchOutRate or 25
    It seems like only a couple of vehicles have this parameter defined in jbeam, for example Autobello Piccolina Baja (for other vehicles it will be nil). If you spawn this vehicle, you can get the value by running this code in the console:
    Code:
    print(core_vehicle_manager.getPlayerVehicleData().vdata.vehicleController.clutchInRate) -- ge
    or
    print(v.data.vehicleController.clutchInRate) -- vlua
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice