GetServerPath

From Onset Developer Wiki
GetServerPath

Type: Function
Context: Server
Introduced: v1.5.0

Description

Gets the absolute path to the server executable.

Syntax

GetServerPath()

Parameters

  • This function has no parameters.

Return Value

  • Returns the absolute path to the server as a string

Example

function OnPackageStart()
    print("Running from directory", GetServerPath())
end
AddEvent("OnPackageStart", OnPackageStart)

See also