Dismiss Notice

In the upcoming weeks mod approvals could be slower than normal.
Thank you for your patience.

Paddle Neutral Mod – Hold Both Paddle Shifters for Neutral 1.0

Paddle Neutral Mod – Hold Both Paddle Shifters for Neutral

Tags:
  1. csomi76
    A Lua-based mod that shifts the vehicle to neutral when both paddle shifters are held, and reverts to the previous gear when released. Designed for manual transmissions using Logitech G29 and similar controllers. (btw i made this mod with chatgpt and this description and the tags too) but sadly it doesnt work with automatic transmissions



    this is the lua code



    # Update the Lua file to include logic to prevent shifting up/down while both paddles are held

    updated_combo_lua = '''\
    local M = {}
    M.lastGear = nil
    M.prevShiftUp = nil
    M.prevShiftDown = nil

    function M.onInit()
    M.controller = obj:getController("mainController")
    end

    function M.onUpdate(dt)
    local bothHeld = core_input_actions.shiftBothPads or 0
    local shiftUp = core_input_actions.gearUp or 0
    local shiftDown = core_input_actions.gearDown or 0

    if bothHeld > 0.5 then
    -- Save the last gear once when both paddles are first pressed
    if not M.lastGear then
    M.lastGear = M.controller:getCurrentGearIndex()
    end
    M.controller:shiftToGearIndex(0) -- shift to neutral

    -- Prevent gear up/down from doing anything while both are held
    M.prevShiftUp = shiftUp
    M.prevShiftDown = shiftDown
    core_input_actions.gearUp = 0
    core_input_actions.gearDown = 0
    else
    if M.lastGear and M.lastGear ~= 0 then
    M.controller:shiftToGearIndex(M.lastGear)
    end
    M.lastGear = nil

    -- Restore gear up/down
    core_input_actions.gearUp = M.prevShiftUp or 0
    core_input_actions.gearDown = M.prevShiftDown or 0
    M.prevShiftUp = nil
    M.prevShiftDown = nil
    end
    end

    return M
    '''

    # Overwrite the Lua file with updated logic
    lua_file_path = "/mnt/data/NeutralShiftCombo/lua/vehicle/extensions/auto/comboNeutral.lua"
    with open(lua_file_path, "w") as lua_file:
    lua_file.write(updated_combo_lua)

    # Re-zip the updated mod
    shutil.make_archive("/mnt/data/NeutralShiftCombo", 'zip', "/mnt/data/NeutralShiftCombo")

    Images

    1. Screenshot2025-07-25190005.png

Recent Reviews

  1. MiniMine51
    MiniMine51
    2/5,
    Version: 1.0
    doesn't seem to work for me
  2. SupraTech
    SupraTech
    5/5,
    Version: 1.0
    Needed this
  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