GetServerHttpPort
From Multi Theft Auto: Wiki
This function retrieves the server's HTTP port.
Syntax
int getServerHttpPort ( )
Returns
An integer corresponding to the server's HTTP port.
Example
This example outputs server's HTTP port to the chat box when player uses command getHttpPort
addCommandHandler("getHttpPort", function(player, command) outputChatBox("HTTP port of this server is: " .. getServerHttpPort(), player, 0, 255, 0) end)
See Also
- getFPSLimit
- getMaxPlayers
- getServerHttpPort
- getServerName
- getServerPassword
- getServerPort
- getVersion
- isGlitchEnabled
- setFPSLimit
- setGlitchEnabled
- setMaxPlayers
- setServerPassword
- shutdown