Miscellaneous

setfflag

Sets a Roblox fast flag by exact name.

문법

setfflag(name: string, value: any): boolean

인수

이름타입설명
namestringExact fast flag name to set.
valueanyValue to write. Accepted types depend on the detected flag type.

반환값

이름타입설명
updatedbooleantrue when a supported flag value was written, otherwise false.

설명

Sets a Roblox fast flag by exact name. Accepted value types depend on the detected flag type. The function returns true after a supported write and false when the flag is missing, unsupported, or the value is not accepted.

2개 파라미터로 호출합니다: name, value. 인수 표는 필수 값과 동작을 조정하는 값을 설명합니다.

updated (boolean)을 반환합니다. 반환 표를 사용해 성공 값, nil 결과, 복구 가능한 오류를 구분하세요.

예제

Write a fast flag only after checking the flag type that Real detected for the exact name.

local flagName = "SomeFFlagName"
local flagType = getfflagtype(flagName)

if flagType == "bool" then
    print(setfflag(flagName, true))
elseif flagType == "int" then
    print(setfflag(flagName, 60))
elseif flagType == "string" then
    print(setfflag(flagName, "Enabled"))
else
    print(false)
end