• AddDeathNotice Hook problem
    0 replies, posted
So I have an addon that is completely client sided, just a bit of lua. I already have a HUDPaint hook that completely works whenever I use it. I recently tried adding a hook for AddDeathNotice the exact same way I added HUDPaint. It doesn't run, some friend and I have also experienced these problems with other hooks too. This is what I have: [lua]local function DrawAll() -- Draw stuff end function Death(Victim, Team1, Weapon, Attacker, Team2) print("Death\n") end hook.Add("HUDPaint", "JHud", DrawAll) hook.Add("AddDeathNotice", "DeathLog", Death)[/lua] Does anyone know why some GAMEMODE hooks work and some don't? Help would be greatly appreciated. [url]http://wiki.garrysmod.com/?title=Gamemode.AddDeathNotice[/url]
Sorry, you need to Log In to post a reply to this thread.