Garry's Mod

Garry's Mod

147 ratings
Srlion's Hook Library
2
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: ServerContent
Addon Tags: Cartoon, Fun
File Size
Posted
Updated
0.007 MB
Nov 5, 2019 @ 1:28pm
Jul 7, 2021 @ 5:09am
3 Change Notes ( view )

Subscribe to download
Srlion's Hook Library

In 1 collection by meow
test
4 items
Description


This hook library is a lot faster than default hook library, which can improve your server performance.

THIS WON'T WORK IF YOU HAVE ULX/ULIB INSTALLED, READ THE THREAD BELOW TO KNOW WHY!

Github[github.com]
Check this thread[www.gmodstore.com] for more info!

Credits:
This idea[github.com] (Used in my hook library) - Meepen[github.com]
Billy for telling me to upload this :D
< >
62 Comments
Saltine Cracker Sep 20, 2022 @ 11:51am 
Does this also provide a performance increase on the client side?
Fives Gaming Network Jul 22, 2022 @ 3:46pm 
I keep seeing that this is overriding the file for VManip Dynamic Kicking. Would you be able to possibly apply a fix? Here is error

Local file is overriding addon's file! lua/includes/modules/hook.lua (Srlion's Hook Library)

[[VManip] Dynamic Kicking] lua/autorun/sh_schedule_player_activity.lua:50: bad argument #1 to 'SelectWeightedSequence' (number expected, got nil)
1. SelectWeightedSequence - [C]:-1
2. v - lua/autorun/sh_schedule_player_activity.lua:50
3. unknown - lua/includes/modules/hook.lua:96
Brandonius Feb 6, 2022 @ 4:46am 
02/06/2022 - 13:45:47: Lua Error: [Srlion's Hook Library] [string "--[[-------------------------------------------------------------------]]--[[..."]:705: bad argument #2 to 'remove' (number expected, got userdata) 1. remove - [C]:-1 2. func - [string "--[[-------------------------------------------------------------------]]--[[..."]:705 3. unknown - lua/includes/modules/hook.lua:241
Synk Jan 2, 2022 @ 7:51pm 
This seems to run really good honestly. Tested on a sandbox server with quite a bit of players. I made a PR in ulx too. It also removes the cpu spikes when new players connect and is basically unnoticeable when someone connects
Synk Jan 2, 2022 @ 5:07pm 
Took like 30 seconds to do
Synk Jan 2, 2022 @ 5:06pm 
I got this stuff to work with ULX lmao modified the hook.lua in ulib
FelixKLG Aug 20, 2021 @ 4:55pm 
After some testing I have discovered it is Billy's gmsv_reqwest
https://github.com/WilliamVenner/gmsv_reqwest/
meow  [author] Aug 20, 2021 @ 5:30am 
I tried to replicate that error and it has to be a module you have installed on your server that is adding a fucked up hook
1. func - [C]:-1
This line means it's a hook from "C" side, check your modules in "garrysmod/lua/bin"
meow  [author] Aug 20, 2021 @ 5:09am 
Did you read the message before yours?