문법
setfflag(name: string, value: any): boolean인수
| 이름 | 타입 | 설명 |
|---|---|---|
name | string | Exact fast flag name to set. |
value | any | Value to write. Accepted types depend on the detected flag type. |
반환값
| 이름 | 타입 | 설명 |
|---|---|---|
updated | boolean | true 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