isConnected

Export, used to check if user is connected to a network

Reference

---@return boolean | nil
function isConnected() end

Usage example

client.lua
  local isConnected = exports.fd_laptop:isConnected()

  if not isConnected then
      print('not connected')
  end