renamed hooks (with compatibility), added new hook: character.giveJobItems (because of how often its used) and updated hook docs
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user