
Originally Posted by
penis922
It doesnt break any gamemodes even go try it (atleast the mains ones, i have tryed murder ttt darkrp prophunt and it works).
Since you obviously have no idea what hooking means, allow me to demonstrate to you why you're wrong.
Here is hook_test.lua:
Code:
function GAMEMODE:Think()
print("Original hook!")
end
The ouput:
Here is hook_test2.lua:
Code:
function GAMEMODE:Think()
print("Oh shit, original hook is gone!")
end
Now here's what happens when I run hook_test2.lua:
Notice something? The original hook isn't being called anymore, here's what happens when I hook HUDPaint using your shitty method on DarkRP:
Congratz, my HUD is gone. The reason it doesn't break gamemodes such as Tyler's DM is because he probably uses hook.Add.
If you want to properly hook with gamemode hooks, you would have to do something like this:
Code:
OLD_THINK = OLD_THINK or GAMEMODE.Think
function GAMEMODE:Think()
print("hooked!")
OLD_THINK()
end
Now both of our hooks our working
