ULX Ban Event

Hello. I would like to do something on my server every time a player gets banned in ULX. So for example can I have something printed to the chat when a player is banned? (This is not what a plan to do, I just wanna know if it’s possible). Sorry if this is a stupid question which I’m sure it is, I’m a complete lua noob and this is one of the first things I’ve done.

Unless ULX has some kind of hook that’s called when a player is banned, you will have to overwrite the ban function to include one.

I’m looking at the documentation and it doesn’t look like there is one for bans.

I can’t figure out for the life of me how the ULX hook system works, but you need to add a hook.Call to this function to know when a player is banned: https://github.com/Nayruden/Ulysses/blob/31f292516f7d6b379cdcaaedc5e6921ff58db306/ulx/lua/ulx/modules/sh/util.lua#L69

Was just looking for that exactly, saved me some time. Thank you!