Intergrations
Logout

Server Logout

⚠️

This feature is enabled by default and cannot be hidden/removed from the UI. You can definly prevent the user from logout on the open handler

Prevent a user from logout/disconnect

  • n_pause/server/open.lua
    • handler: n_pause:disconnect
    • default line: @20
  • By commenting out the function DropPlayer , it will not disconnect the user
    • Inform the user _source with your desired notification system that he is not allowed/able to disconnect from the server
      • open.lua
  • -- Handle disconnect
    RegisterServerEvent('n_pause:disconnect', function()
        local _source = source
        -- DropPlayer(_source, 'You have left the game.')
     
    end)
    Join Our Discord