1. Trouble with the game?
    Try the troubleshooter!

    Dismiss Notice
  2. Issues with the game?
    Check the Known Issues list before reporting!

    Dismiss Notice
  3. Before reporting issues or bugs, please check the up-to-date Bug Reporting Thread for the current version.
    0.36 Bug Reporting thread
    Solutions and more information may already be available.

Any way to take fuel from a car?

Discussion in 'Troubleshooting: Bugs, Questions and Support' started by CrinEx, Jan 8, 2023.

  1. CrinEx

    CrinEx
    Expand Collapse

    Joined:
    Feb 20, 2022
    Messages:
    4
    Someone asked this a while ago, but the answer doesn't seem to work anymore (at least for me). Does anyone know how to do it with the current version?
     
  2. Gamergull

    Gamergull
    Expand Collapse
    BeamNG Team

    Joined:
    Jun 3, 2018
    Messages:
    460
    The fuel code got updated. In the console, select "Current Vehicle" (or whatever vehicle) in the bottom left, and do:
    Code:
    energyStorage.getStorage("mainTank").storedEnergy=1e8
    In this case, 1e8 is equivalent to a few litres of gas.

    Here is some more advanced code that sets the gas tank to be 25% full:
    Code:
    value=0.25 storage=energyStorage.getStorage("mainTank") storage.storedEnergy=storage.energyCapacity * value
     
    • Like Like x 3
  3. CrinEx

    CrinEx
    Expand Collapse

    Joined:
    Feb 20, 2022
    Messages:
    4
    Nice, thanks for the help :D
     
  4. emzdog gaming

    emzdog gaming
    Expand Collapse

    Joined:
    Feb 16, 2024
    Messages:
    2
    It worked last week but now its not working?
     
  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