To determine the problem, I tried re-creating the gamemode using your code, using ‘test’ as gamemode name. Got the following errors, which would obviously stop the game from processing the files:
[gamemodes est\gamemode\init.lua:19] '=' expected near 'end'
There was a problem opening the gamemode file 'test/gamemode/init.lua'
Clientside, I got this error:
[gamemodes est\gamemode\shared.lua:12] 'end' expected (to close 'function' at line 7) near '<eof>'
I had to fix a buttload of simple errors, like ‘then’ missing after if conditionals, and ‘spawns[random]’ expecting an operator. After fixing those simple errors, I ran the gamemode just fine. No complaints from the engine.
I never encountered the specific error in the OP - LuaGetfile: Not Loading Deathrun\gamemode\cl_init.lua, Couldn’t include file ‘Deathrun\gamemode\cl_init.lua’ (File not found) (<nowhere>)[cpp]
Anyway, there’s three reasons why a file would error out on include.
1: You forgot to AddCSLuaFile it
2: You messed up the file path
3: The file itself has critical errors that prevents it from running.
You’ve got 1 and 2 down, my guess is the third. Just to run this code, I had to fix 6-7 errors. Check your console ingame as you launch it. Don’t stop reading at the OP error, but look for other errors as well. If the file has critical errors, the lua engine will refuse to run the file!
Also, a friendly tip: The code you’ve presented through pastebin reveals you are very new to this. Being new is fine, but you’ll do yourself a favor by starting with something simpler.
An entire gamemode, built from scratch nonetheless, isn’t exactly the first thing you want to dive into.
If you still want to continue, and still can’t fix the problem in the OP after this, feel free to add me to steam, and I’ll do what I can to get you started.