Engine

core.engine.get_platform

Shared

Retrieves current platform type

Syntax

local platform = core.engine.get_platform()

Parameters

No parameters are accepted by this function

Returns

TypeNameDescription
stringplatformCurrent platform type:
• "client" - indicates client-side execution
• "server" - indicates server-side execution

Examples

Prints current platform type
core.engine.print("info", "Platform Type:", core.engine.get_platform())

On this page