renamed hooks (with compatibility), added new hook: character.giveJobItems (because of how often its used) and updated hook docs

This commit is contained in:
Evil Factory
2022-05-17 12:24:52 -03:00
parent fd6b833c98
commit cf500081d1
6 changed files with 51 additions and 16 deletions
@@ -76,4 +76,20 @@ end
compatibilityLib["Player"] = luaPlayer
Hook.Add("character.created", "compatibility.character.created", function (character)
Hook.Call("characterCreated", character)
end)
Hook.Add("character.death", "compatibility.character.death", function (character, causeOfDeathAffliction)
Hook.Call("characterDeath", character, causeOfDeathAffliction)
end)
Hook.Add("client.connected", "compatibility.client.connected", function (client)
Hook.Call("clientConnected", client)
end)
Hook.Add("client.disconnected", "compatibility.client.disconnected", function (client)
Hook.Call("clientDisconnected", client)
end)
return compatibilityLib