I have been trying to get this thing working for more hours than I care to admit, and I have no idea why it refuses to function. Here is the scenario:
I wrote a custom moderation tool for my server. It is actually really simple, primarily to help me understand lua/addons.
So I test out the addon using a garrysmod multiplayer server. It works fine for me. (presumably because it is in my addons folder).
Next I uninstall the custom addon from my personal computer and slap it onto a dedicated server I have.
Whenever I try to join said dedicated server, my client doesn’t appear to download the client lua scripts contained in my addon.
Here is a bit of code.
// Client scripts
Msg("Loading REM Module…
if CLIENT then
initialized = false
/* Some logic here */
Msg("Loading Client Module…
if ( false ) then return end
REM_Init_Shared() concommand.Add("+REM_Menu", REM_ShowMenu) concommand.Add("-REM_Menu", REM_HideMenu) initialized = true
RPLAYER = nil
Msg("Client Module Loaded!
As far as I know, there is absolutely no reason the client script shouldn’t be loading. Am I missing something?
Any help is greatly GREATLY appreciated, thanks for taking a look!