ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server functions
  3. getServerHttpPort

Function

getServerHttpPort

ServerServerIdentical to MTA:SA

Returns the HTTP server port. The Trilogy Hub server has no separate HTTP server (resource files reach players through the game connection), so it usually returns 0.

Syntax

int getServerHttpPort()

Returns

The port, or 0.

Example

outputServerLog("HTTP: " .. getServerHttpPort())

See also