From Multi Theft Auto: Wiki
|This event is deprecated. This means that its use is discouraged and that it might not exist in future versions.|
Please use onPlayerLogout instead.
This event is triggered when a user logs out of their account in-game.
account thePreviousAccount, account theCurrentAccount
- thePreviousAccount: The account the client was logged in as
- theCurrentAccount: The account the client is a part of now (usually a guest account)
This example displays a message if the client logs out.
function loggedOut() outputChatBox( "You have successfully logged out!", source ) end addEventHandler("onClientLogout",getRootElement(),loggedOut)