Replies: 3 comments
-
Make sure they are properly named: Autorun just runs in an environment that inherits from _G, so there's nothing changed with require. Unless you mean sautorun.require, which is not meant to be used for binary modules |
Beta Was this translation helpful? Give feedback.
-
I'm afraid that's not enough, I still get the error that the module cannot be found |
Beta Was this translation helpful? Give feedback.
-
IIRC this also happens if the module you are trying to load has missing dependencies / that gmod can't access. Like in the case of my https://github.com/Vurv78/gfluid, you need to include Nvidia Flex's .dll's in your Garrysmod/Bin folder. |
Beta Was this translation helpful? Give feedback.
-
I want to load external modules which are located in my lua/bin folder but I don't understand how to do it with autorun.
yet in my lua file I indicate :
require("enginepred")
but the external console spits me "RunString:1: Module not found!
What to do ? I missed a step ? mhummmm
Beta Was this translation helpful? Give feedback.
All reactions