ReferenceEnvironment

getfflag

Reads an engine fast flag.

Syntax

getfflag(name: string) -> string

Also available as

get_fflag

Parameters

ParameterTypeDescription
namestringThe fast flag's name, without a prefix such as FFlag or DFInt.

Returns

TypeDescription
stringThe flag's current value as text.

Description

Fast flags are the client's tuning switches. The value is always returned as a string, so "true", "false" and numbers come back as text; convert them yourself when needed. An unknown name raises an error.

Example

local value = getfflag("TaskSchedulerTargetFps")
print(value, tonumber(value))

Notes

These are Game executor contracts. Check build requirements and session lifetimes before using them.