Using require "resources/mymod/myluafile" in my server scripts works fine. But trying to do the same in a client script doesn’t seem to want to cooperate. I’ve tried adding “myluafile” to files {} in the __resources.lua but it still doesnt work. Gives an error on the client saying its calling with a nil value.
Clientside scripting can’t use require ( from my knowledge ). If you really wan’t it to be in diffrent files you should use events to execute after everything has loaded.