Hello there.
So, I’m in the process of making my first addon, but I’ve kind of hit a roadblock here.
So I am making a derma panel, meant to forcefully make people take a look at the information on the screen, like rules, or gamemode information if you will, for an ‘x’
amount of seconds. I’ve created clientside file for the derma panel, and a serverside to call upon the derma panel via. networking through a PlayerSpawn/PlayerSay-hook.
If you’re wondering, the directory of these files are “lua/autorun/client” and “lua/autorun/server/” respectively.
Since I want multiple pages of these information sections, I decided to create a function with the parameters: ‘title’, ‘time’, ‘text’. Title being the title of the page, time being the amount of time needed to wait until you can click the ‘Next’ button, and text being the… well, text.
Now that that’s out of the way, let me tell you want my actual issue is. So, I decided to try and make a seperate file to store the excessive calling of the function, otherwise it would
just stack immensely inside the main file, which I don’t want for the sake of simplicity. The actual issue is, that if I try and use the ‘include’ function on the main file to add the other file, so that whatever is declared in said file also becomes apart of the main file, the console will simply give me an error, saying the file wasn’t found, even though it is in the same directory. If I try and use ‘include’ on the other file to include the main file, my game will crash on attempting to join the server.
Thank you