User

Server events that are in some way related to the user aspects.

On user connect

This event is triggered when a user is connecting to the server.

The server id of the user who is connecting to the server.

AddEventHandler('__WOSA:SERVER:USER_CONNECTING', function(playerID, playerLicense, playerRank, isPlayerNew)

end)

On user leave

This event is triggered when a user is leaving the server.

The server id of the user who is connecting to the server.

AddEventHandler('__WOSA:SERVER:USER_LEAVING', function(playerID, playerLicense, playerRank, leaveReason)

end)

Last updated

Was this helpful?