Jump to content

Cannot import os module

Recommended Posts


I'm trying to create a mod that uses the 'os' module (to access system time).


require "os"

It doesn't work because of the following error:

[string "../mods/Show Time/modmain.lua"]:1: attempt to call global 'require' (a nil value)

Are these modules not accessible? Is there any other way to access system time?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...