Hooks
To attach a hook:
server.hook(<name of the hook>,<a unique name>,<function callback>)
The unique name is there to prevent hooking the same hook multiple times. You just make one up.
List of hooks (Only shows IMPLEMENTED hooks):
| Hook | Parameters | Description |
|---|---|---|
| onDisable | none | Fires off when the script gets disabled |
| onPlayerJoin | Player | Fires off whenever a player join with that player as parameter |
| onPlayerLeave | Player | Fires off whenever a player leaves with that player as parameter |
Comments