EZ4Patapon Posted May 17, 2019 Share Posted May 17, 2019 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 Share on other sites More sharing options...
Ultroman Posted May 17, 2019 Share Posted May 17, 2019 (edited) If you're in modmain.lua, then you need to do GLOBAL.require "os" Edited May 17, 2019 by Ultroman Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now