Skip to main content

Client

Client-related APIs.

Client.Version

Returns the current JC4MP client version (eg. 1.0.0) as a string.

Example:

-- Get the current client version
print("JC4MP Client Version: " .. Client.Version)

Client.GetElapsedSeconds(): number

Returns the number of seconds that have passed since the client connected to the server.

Example:

-- Get elapsed time since connecting to server
local elapsed = Client.GetElapsedSeconds()
print("Connected for " .. elapsed .. " seconds")