GetServerPath: Difference between revisions
From Onset Developer Wiki
(Created page with "{{Info|Function|Server|1.5.0}} {{FuncDescription|Gets the absolute path to the server executable.}} {{FuncSyntax|GetServerPath()}} {{FuncParameters}} {{FuncNoParam}} {{Fun...") |
(No difference)
|
Latest revision as of 16:34, 30 June 2021
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)