• GM:OnReloaded not working
    3 replies, posted
Hey guys! I'm trying to make a notification for players when the gamemode reloads so they know its not a super big lagspike. I made this code but it doesn't work but I don't see errors in SRCDS or the client at all. Heres my code: [CODE] function GM:OnReloaded() GAMEMODE:Notify(ply, 1, 4, "Gamemode refreshed") end [/CODE]
Have you tried like the first step of debugging anything: print("test") in that hook?
Yes, that didnt work either.
Try this just to see if you get any results at all, even know it might seem like a dumb idea: [lua] hook.Add( "OnReloaded", "Test", function() print( "test" ) end ) [/lua]
Sorry, you need to Log In to post a reply to this thread.