Miscellaneous

setfflag

Sets a Roblox fast flag by exact name.

Cú pháp

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

Đối số

TênKiểuMô tả
namestringExact fast flag name to set.
valueanyValue to write. Accepted types depend on the detected flag type.

Giá trị trả về

TênKiểuMô tả
updatedbooleantrue when a supported flag value was written, otherwise false.

Mô tả

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.

Goi voi 2 parameter: name, value. Bang arguments giai thich gia tri nao bat buoc va gia tri nao chi tinh chinh hanh vi.

Tra ve updated (boolean). Dung bang returns de tach gia tri thanh cong, ket qua nil va loi co the xu ly.

Ví dụ

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