General > Off-Topic
Hook.lua
LoloMan2:
Hi, i know thats a weird question, but I need do it for test a thing, what happens if I delete hook.lua? Every stop work?
iViscosity:
Ulib's hook.lua? I think it just overwrites gmods hook.lua so I think you'd be okay but I don't know for sure. You could try and see the repercussions for it, but I'd back it up first.
Sent using Tapatalk. Owner of iViscosity Gaming.
BlueNova:
But if you deleted Gmod's default hook.lua then you'd likely not be able to make or call hooks or do whatever to them. Hooks in Gmod, afaik, are there so you don't have to overwrite Gmod's default functions. I wouldn't go about deleting that file, would probably end up breaking something rather important.
JamminR:
Stuff can break, especially our hook calls that require prioritization.
Why/what are you testing?
If you're getting some error stating ulib/hook.lua is mentioned 4-5 lines down in the error trace stack, it's 99% not ULib, but the code before it.
Our hook.lua grabs all hook.add calls and allows for prioritization.
If you remove it, stuff may still work, but your error isn't going to go away, it will just mention Gmod's default hook.lua or file containing hook.add
LoloMan2:
i get infinite loop error on hook.lua
Navigation
[0] Message Index
[#] Next page
Go to full version