From 6bf113d0ffd82daac8bfead653eaac6efe72ceed Mon Sep 17 00:00:00 2001 From: Indev Date: Fri, 28 Jun 2024 18:00:49 +0300 Subject: [PATCH] Add info about ServerJoin into LUASTUFF.md (so i don't forget to do it later) --- LUASTUFF.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/LUASTUFF.md b/LUASTUFF.md index 79e2a2545..e72ae4c2a 100644 --- a/LUASTUFF.md +++ b/LUASTUFF.md @@ -130,3 +130,8 @@ if rawget(_G, "S_StopSoundByNum") ~= nil then ... -- Can use it end ``` + +## addHook("ServerJoin", function()) + +ServerJoin hook called when client joins server (starting a listen server also calls it for host). +Generally it was made to make loading custom config files less hacky, but can be used for anything else too.