Unsolved How to get current drive mode of active vehicle?

Discussion in 'Mod Support' started by 24trees, Jan 24, 2023.

  1. 24trees

    24trees
    Expand Collapse

    Joined:
    Dec 6, 2022
    Messages:
    1
    Dear BeamNG community,

    I'm trying to get the current drive mode with the following command in lua:
    Code:
    controller.getController('driveModes').getCurrentDriveModeKey()
    This works great up to the point where I spawn normal traffic through the radial menu.
    I then get the drive modes of all spawned vehicles - which are "nil".

    Is there any way to get only the drive mode of the vehicle I'm currently driving?

    Thanks a lot :)
     
  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