Garry's Mod

Garry's Mod

Srlion's Hook Library
159 Comments
=>PR<= HavenOnline 21 Sep @ 9:19am 
lol this ruined everything
Saturn's Ring 16 Aug @ 2:24am 
This mod hasn't seemingly broken anything, and has very much bumped up my performance- ARC9 weapons used to cause a frame drop of up to 10 frames less by merely holding them, and now I can keep at my 60fps lock consistently, only dropping when firing, as an example.

I did get one peculiar error, and I looked back in the comments to see if this was mentioned, and there it is.

[Srlion's Hook Library] Srlion Hook Library: DLib is installed, you should remove the bloated addon!

1. unknown - lua/includes/modules/hook.lua:473

I know Dlib takes performance down from experience, but calling it out here seems a bit much. I'm only currently running it for their EFT Footsteps addon, which is the most detailed & best sounding addon of it's type. This is a shame, really. Again, nothing seems to break- I presume it's safe to keep the two loaded with your hook library?
Cyberdome 3 Aug @ 10:33pm 
Thanks i put it in my server and it works but i dont notice a different immediately because i dont know anything. About hooks
Saltfony  [author] 29 Jul @ 7:42am 
It also breaks the PC and entire homes.
99%, and I mean it, 99% when someone reports something is not working and I look into it, it turns to be some addon conflicts that are just waiting for more hooks to break down the server.
PixelTheCollie ΘΔ 28 Jul @ 5:34pm 
Yeqh this mod seem to break like everything
FyreDust 28 Jul @ 2:29pm 
This addon makes my crowbar kill icon disappear. I don't remember downloading it, and I CANNOT get rid of it.
I used menu_cleanupgmas, it just made the problems menu say "Other". I went to my game files, it's not even there.
Neyzox 29 Jun @ 5:09pm 
[Srlion's Hook Library] HTTP failed - ISteamHTTP isn't available!
1. Fetch - lua/includes/modules/http.lua:42
2. unknown - lua/autorun/playerstats.lua:2
3. unknown - lua/includes/modules/hook.lua:313
Nesk 23 Jun @ 1:58pm 
causes absence of playermodel/any weapons at spawn when hosting server
C1TY 30 May @ 1:04am 
[Srlion's Hook Library] bad argument #3 to 'Add' (function expected, got nil)
1. Add - lua/includes/modules/hook.lua:185
2. unknown - lua/autorun/ac_explosions_enhancer.lua:193
[Srlion's Hook Library] bad argument #3 to 'Add' (function expected, got nil)
1. Add - lua/includes/modules/hook.lua:185
2. unknown - lua/autorun/ac_explosions_enhancer.lua:200
Galaxy Man 7 May @ 12:49am 
[hook_library] gamemodes/sandbox/gamemode/spawnmenu/creationmenu/content/contentsearch.lua:70: Tried to use a NULL Panel!

__newindex - [C]:-1
unknown - gamemodes/sandbox/gamemode/spawnmenu/creationmenu/content/contentsearch.lua:70
3. Run - addons/hook_library/lua/includes/modules/hook.lua:313
4. unknown - gamemodes/sandbox/gamemode/cl_search_models.lua:47

Conflict with searching in spawnmenu
Saltfony  [author] 30 Apr @ 10:40am 
"try to find first error that happens" "Also disable stormfox debug thing as it could be one of the reasons."
I didn't say that it aint the hook library, I said that all these errors you sent are unrelated to the hook library and show no help to try to figure out the issue.
PixelTheCollie ΘΔ 29 Apr @ 8:07pm 
Are you sure there unrelated how can they not. When they only so far seem to appear and happen when I use ur mod. Those mods work just fine and without error but when I subscribe and use ur mod I see those errors there. Anyways Yeah
Saltfony  [author] 29 Apr @ 11:07am 
@Cherrie_The_Shifter ΘΔ these errors seem to be useless to track on what causes them, try to find first error that happens, as all these errors are unrelated to the hook library, ofc the hook library will always show in the stack when a hook errors when all hooks are being called, doesn't mean it's the reason though. Also disable stormfox debug thing as it could be one of the reasons.

@Wanso Same thing, it's not the cause for this thing to fail, it literally says file not found, what does this have to do with the hook library?
PAPAI GALO 29 Apr @ 8:37am 
[Srlion's Hook Library] AddCSLuaFile: Couldn't find 'darkrp_modules/tbfy_bountyhunter/sh_init.lua'
1. loadModules - gamemodes/darkrp/gamemode/libraries/modificationloader.lua:83
2. gm_func - gamemodes/darkrp/gamemode/libraries/modificationloader.lua:148
3. Call - lua/includes/modules/hook.lua:324
4. unknown - gamemodes/darkrp/gamemode/init.lua:113
PixelTheCollie ΘΔ 29 Apr @ 1:43am 
More down below, thats all errors i get, then other mods, just wont load. get no errors nope just gone, also stuff oddly seems slow idk. again sorry for bothering you, thanks and yeah!. also i did send all these errors and stuff to the mods that yk. Anyways Yeah!.
PixelTheCollie ΘΔ 29 Apr @ 1:38am 
then heres stormfox
[StormFox - Environment mod] lua/stormfox/framework/sh_util_map.lua:56: Tried to use a NULL entity!
1. GetSaveTable - [C]:-1
2. unknown - lua/stormfox/framework/sh_util_map.lua:56
3. _SF_OLDHOOKCALL - lua/includes/modules/hook.lua:313
4. Run - lua/stormfox/sh_debugcompatibility.lua:48
5. unknown - lua/autorun/stormfox_autorun.lua:113
6. _SF_OLDHOOKCALL - lua/includes/modules/hook.lua:313
7. unknown - lua/stormfox/sh_debugcompatibility.lua:48
PixelTheCollie ΘΔ 29 Apr @ 1:38am 
Then zbase
[ZBASE [CONTROLLER UPDATE]] lua/zbase/sh_hooks.lua:635: attempt to compare number with nil
1. unknown - lua/zbase/sh_hooks.lua:635
2. _SF_OLDHOOKCALL - lua/includes/modules/hook.lua:313
3. unknown - lua/stormfox/sh_debugcompatibility.lua:48

[[ACF] Armored Combat Framework] lua/acf/contraption/contraption_sv.lua:322: bad argument #2 to 'SetModel' (string expected, got nil)
1. SetModel - [C]:-1
2. SetModel - lua/acf/contraption/contraption_sv.lua:322
3. unknown - lua/entities/pill_ent_costume.lua:645
PixelTheCollie ΘΔ 29 Apr @ 1:37am 
so g weather with ur mod this happens, but theres more
[gWeather] lua/gweather/map/map.lua:20: Tried to use a NULL entity!
1. GetInternalVariable - [C]:-1
2. GetWorldBounds - lua/gweather/map/map.lua:20
3. unknown - lua/gweather/map/map.lua:104
4. _SF_OLDHOOKCALL - lua/includes/modules/hook.lua:313
5. unknown - lua/stormfox/sh_debugcompatibility.lua:48
PixelTheCollie ΘΔ 28 Apr @ 7:56pm 
okay so, when i have it with things like stormfox it gives me erros and ntohing works. like keeps saying something about hook, here let me redownload it later and get errors again and show it to you
Saltfony  [author] 28 Apr @ 11:56am 
how does it break them? it's just a hook library really, what error you getting so I can tell how it breaks them? I have lots of clients use this hook library with similar addons installed
PixelTheCollie ΘΔ 28 Apr @ 6:05am 
this also seems to break so much other mods, like for example. storm fox and alot of other, then when the errors appear things get slow of, not laggy nah slow and odd. this saddens me:(
PixelTheCollie ΘΔ 28 Apr @ 5:41am 
Damn i only has 3 mods used dlib great amazing mods I just deleted them ur mod will hopefully make running my 1k mods better and help my shirty computer cuz yk fatser. Also a mod called glue patches need this mod which does bunch of fixes and performance improvements and optimizations and so i got these 2 mods to help things so I got rid of dlib sadly. Sorry for bothering you. Amazing mod btw^^
Saltfony  [author] 28 Apr @ 5:38am 
addons that make use of dlib require it, i dont think you would benefit from this hook library if you you use lots of addons that depend on dlib
PixelTheCollie ΘΔ 28 Apr @ 2:43am 
what if dlib removed the hooks stuff just kept the rest would urs be able to work with it, plus ur hooks stuff is better faster and safer right, im trying to find a solution. gah, oof, sad
PixelTheCollie ΘΔ 1 Apr @ 3:43am 
damn okay, oof, sad, sadly cant use any mod that uses urs. alright thanks for like answering me and stuff
Saltfony  [author] 1 Apr @ 2:30am 
nope, dlib does too much, it's not easy to support it
PixelTheCollie ΘΔ 31 Mar @ 8:06am 
so theres no way to make this work with dlib i need dlib but i need this for glua patches, but ur mod breaks stuff and makes dlib break stuff, there has to be a way right? sorry and thanks. please
PixelTheCollie ΘΔ 29 Mar @ 5:56pm 
Why tho:(. Okay...
Saltfony  [author] 29 Mar @ 5:21pm 
lol, this hook library doesn't even load if dlib is installed
`lua/dlib/modules/hook.lua:904` sigh
PixelTheCollie ΘΔ 29 Mar @ 10:06am 
this mod seems to break so much:(
PixelTheCollie ΘΔ 29 Mar @ 10:06am 
[My Little Pony NEXTBOTS] lua/autorun/drg_mlp_particles.lua:10: Tried to use a NULL entity!
1. GetModel - [C]:-1
2. unknown - lua/autorun/drg_mlp_particles.lua:10
3. Run - lua/dlib/modules/hook.lua:904
4. old_renderhalos - lua/includes/modules/halo.lua:140
5. unknown - lua/wire/client/cl_wirelib.lua:251
6. unknown - lua/dlib/modules/hook.lua:904
keeps spamming this
PixelTheCollie ΘΔ 29 Mar @ 10:06am 
[Draconic Base] lua/draconic/drc_lib.lua:2780: Tried to use a NULL entity!
1. GetNWInt - [C]:-1
2. GetShield - lua/draconic/drc_lib.lua:2780
3. unknown - lua/draconic/cl/library.lua:205
4. unknown - lua/dlib/modules/hook.lua:904
Saltfony  [author] 15 Mar @ 6:46pm 
@miorineXIII I just tested it and just works fine, it could be an addon causing that conflict.
@Osakze try with latest version that I pushed recently because it contains bug fixes
kamillebidan 14 Mar @ 8:45pm 
using this and pressing q doesnt bring up the spawn menu any help?
Osaka 22 Feb @ 6:12pm 
Whenever this add-on is enabled, I can't use the context menu right click function.
Davv 16 Feb @ 11:48pm 
32-bit version is only for cracked clients if I recall correctly, so I don't think there's should even be support, especially we live in 2025.
Kippy 16 Jan @ 7:23am 
Cause players were timing out on the 32 bit version
Saltfony  [author] 12 Jan @ 11:35pm 
How/Why would a hook library timeout players lol, it was something added by gmod itself for security reasons iirc
Kippy 12 Jan @ 3:01pm 
does it support 32-bit version of gmod cause some players time out upon joining my gm server.
pigeonlover1000 5 Jan @ 10:24pm 
WHAT THE HELL IS THIS IS A VIRUS:steamfacepalm:
Saltfony  [author] 25 Dec, 2024 @ 2:13pm 
@somefoolouthere done
somefoolouthere 24 Dec, 2024 @ 2:54pm 
You should update the description to remove the notice about ULX/ULib, since you updated this version and it works with it now.
Winn 11 Nov, 2024 @ 5:26pm 
I'm not entirely sure, but it might be "lf_playermodel_desktop_hook"
Saltfony  [author] 11 Nov, 2024 @ 5:21pm 
If your able to assist, which hook does the loading for the menu or whatever to open the selector so I can track it down?
Winn 11 Nov, 2024 @ 5:18pm 
Initialize hook is running. Just not the playermodel selector's with this library installed.
Saltfony  [author] 11 Nov, 2024 @ 5:17pm 
I'm not following, is the Initialize hook running or not?
Winn 11 Nov, 2024 @ 5:15pm 
sv_playermodel_selector_debug is set to 1, and so is sv_playermodel_selector_force. Initialize hooks are running however, because with other addons the printtable is giving messages.
Saltfony  [author] 11 Nov, 2024 @ 5:08pm 
Also make sure that you add debugging inside this hook to make sure it's being ran or not, I don't care if initVOX is called or not, just need to know if the initialize hook runs or not:
https://github.com/LibertyForce-Gmod/Enhanced-PlayerModel-Selector/blob/f22c5b7996f39acc60bd59990dbe76f92773cc43/lua/autorun/lf_playermodel_selector.lua#L308