FXServer Integration
Server Exports
Exports to handle server actions
serverStop
Gracefully shuts down the running server environment.
Payload:
Prop
Type
local by = 1
local response = exports.fxManager:serverStop(by)
if response.ok then
print("Server stop command processed successfully.")
else
print("Failed to stop server:", response.error)
endserverRestart
Triggers a complete cycle sequence of stopping and booting the server back up.
Payload:
Prop
Type
local by = 1
local response = exports.fxManager:serverRestart(by)
if response.ok then
print("Server restart command processed successfully.")
else
print("Failed to restart server:", response.error)
end