Skip to content
M2O Scripting APIScripting reference
Global objectServer APIGenerated

ExecutionEnvironment

const ExecutionEnvironment: object

Defined in: server/api.d.ts:3912

Runtime-side flags exposed as the global ExecutionEnvironment.

readonly frameworkVersion: string

Local Framework release version.

readonly isClient: boolean

True in the sandboxed client scripting runtime.

readonly isServer: boolean

True in the authoritative server scripting runtime.

readonly modVersion: string

Local mod version from InstanceOptions.modVersion; empty when unset.