Server
OnRefresh
Function to register a callback function into the event onResourceListRefresh's handler which is being triggered when the resource list is being refreshed
Parameters description
cb
- the callback function to add into the event's handler
OnPlConnecting
Function to add a callback function into the event playerConnecting's handler which is being triggered when a player starts connecting to the server
Parameters description
cb
- the callback function to add into the event's handler
OnPlJoining
Function to add a callback function into the event playerJoining's handler which is being triggered when a player starts joining in the server (it's triggered when the player starts to load the loadingscreen)
Parameters description
cb
- the callback function to add into the event's handler
OnPlDisc
Function to add a callback function into the event playerJoining's handler which is being triggered when a player disconnected from the server
Parameters description
cb
- the callback function to add into the event's handler
StopMyself
Function to stop the current resource
(which is unavailable with the method StopResource(GetCurrentResourceName())
)
Parameters description
msgtype
- the type of the message reasonmsg
- the message reason
OnServer
Last updated