Jump to content

Recommended Posts

Hi,

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

Quote

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
https://forums.kleientertainment.com/forums/topic/106266-cannot-import-os-module/
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...