Server

Server

A Server object

Constructor

# new Server()

Extends

  • Base

Members

# clients :number

The amount of clients connected to this server

Type:
  • number

# connectEndPoints :Array.<string>

The endpoints used to connect to this server

Type:
  • Array.<string>

# enhancedHostSupport :boolean

Undocumented

Type:
  • boolean

# fallback :boolean

Whether this server is a fallback server

Type:
  • boolean

# gametype :string

This server's game type

Type:
  • string

# hostname

Alias for this.name

# id :string

The server's id

Type:
  • string

# lastSeen :Date

The last time this server was seen online

Type:
  • Date

# mapname :string

This server's map name

Type:
  • string

# maxClients :number

The server's max client limit

Type:
  • number

# name :string

This server's name

Type:
  • string

# ownerAvatar :string

The URL to the server owner's FiveM profile avatar

Type:
  • string

# ownerID :number

The fivem ID of the server's owner

Type:
  • number

# ownerName :string

The server owner's FiveM username

Type:
  • string

# ownerProfile :string

The URL to the server owner's FiveM profile

Type:
  • string

# players :PlayerManager

The players this server has

# private :boolean

Whether this server is a private server

Type:
  • boolean

# resources :Array.<string>

The resources this server uses

Type:
  • Array.<string>

# selfReportedClients :number

The amount of clients this server has, reported by the server itself

Type:
  • number

# server :string

The server's user-agent, I think

Type:
  • string

# supportStatus :string

Undocumented

Type:
  • string

# upvotePower :number

The amount of boosts this server has

Type:
  • number

# vars :Object.<string, string>

The variables this server shares with clients

Type:
  • Object.<string, string>