Skip to content

Commit 899952c

Browse files
authored
readme: update README lua hook names (#1)
1 parent 9002a90 commit 899952c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ playerQueue = playerQueue or {
109109
count = 0
110110
}
111111

112-
hook.Add("HolyLib:OnSetSignonState", "Example", function(cl, state, c)
112+
hook.Add("PlayerQueue:OnSetSignonState", "Example", function(cl, state, c)
113113
print(cl, state, c)
114114

115115
local fullServer = #player.GetAll() >= 128 -- Can't exceed 128 players.
@@ -124,7 +124,7 @@ hook.Add("HolyLib:OnSetSignonState", "Example", function(cl, state, c)
124124
end
125125
end)
126126

127-
hook.Add("HolyLib:OnClientDisconnect", "Example", function(client)
127+
hook.Add("PlayerQueue:OnClientDisconnect", "Example", function(client)
128128
timer.Simple(0, function() -- Just to be sure that the client was really disconnected.
129129
if playerQueue.count <= 0 then return end
130130

@@ -142,7 +142,7 @@ hook.Add("HolyLib:OnClientDisconnect", "Example", function(client)
142142
end)
143143
end)
144144

145-
hook.Add("HolyLib:OnPlayerChangedSlot", "Example", function(oldPlayerSlot, newPlayerSlot)
145+
hook.Add("PlayerQueue:OnPlayerChangedSlot", "Example", function(oldPlayerSlot, newPlayerSlot)
146146
print("Client was moved from slot " .. oldPlayerSlot .. " to slot " .. newPlayerSlot)
147147
end)
148-
```
148+
```

0 commit comments

Comments
 (0)