https://github.com/Chessnut/NutScript/blob/bcd21e7b587e4cba19e26f770cc639a98a8df49b/gamemode/core/hooks/sh_hooks.lua Look at this mate.