Unsolved Vehicle extension has to be started manually

Discussion in 'Mod Support' started by Octothorp Obelus, Jun 7, 2023.

  1. Octothorp Obelus

    Octothorp Obelus
    Expand Collapse

    Joined:
    Jan 24, 2014
    Messages:
    268
    I've created a mod in my mods/unpacked folder that is essentially a copy of the outgauge.lua script with some extensions to the struct that gets sent as a UDP packet. That works all fine and dandy, but in order for it to start running, I have to manually start it in the 'Current Vehicle' console, and have to do this every time I change vehicles. I attempted to utilize a Lua file in the scripts folder of the mod and using onInit(), but it does not load my extension. I'm sure I'm just loading it wrong, but here's the code (Line 5 is what I normally run in the console to load it and afterwards it's self-sufficient, but I suspect this does not work since I assume scripts run in the global environment console).
    upload_2023-6-6_21-47-18.png

    Here is my mod's folder structure:
    upload_2023-6-6_21-48-14.png
     
    • Like Like x 2
  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