Jump to content

Something wrong with "require"


NCrawler

Recommended Posts

I've created a new ISAutomaticWeapon.lua file in my mods 'shared\Reloading' folder.  When I try to use: require "Reloading/ISAutomaticWeapon" in my ISReloadUtil.lua file, it will not load the file.  If I move the ISAutomaticWeapon.lua to the games main 'media\lua\shared\reloading' folder then it loads perfectly fine.  I guess my question is, is there a problem with 'require' loading custom .lua files?

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...