Help on making hello world

Discussion in 'Programming' started by Leon 32, Apr 11, 2020.

  1. Leon 32

    Leon 32
    Expand Collapse

    Joined:
    Nov 11, 2019
    Messages:
    1
    Hello! I need a quick help or guide to make a lua mod. For now i want to just make a hello wolrd file.

    i have made a modScript.lua file and placed it on: C:\Users\x\Documents\BeamNG.drive\mods\unpacked\scripts\test
    here is its content:

    Code:
    local M = {}
    print("hello World")
    local function onScenarioChange(scenario)
        print("hello World2")
    end
    return M
    but when i open the game console with ~ i don`t see the string being printed...

    Thanks!
    --- Post updated ---
    Nevermind, it is working afterall.
    It's just that the console can't search for a string, but you can search "print" and it will show all prints
     
  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