getServerHttpPort | Multi Theft Auto: Wiki Skip to content

getServerHttpPort

Client-side
Server-side
Shared

This page is incomplete! Help wanted!

Please finish this page using the corresponding Old Wiki article.
Go to Contribution guidelines for more information.


This function retrieves the server's HTTP port.

Syntax

getServerHttpPort ( )

Code Examples

server

This example outputs server's HTTP port to the chat box when player uses commandgetHttpPort

addCommandHandler("getHttpPort",
function(player, command)
outputChatBox("HTTP port of this server is: " .. getServerHttpPort(), player, 0, 255, 0)
end)