Sintaks
setfflag(name: string, value: any): booleanArgumen
| Nama | Tipe | Deskripsi |
|---|---|---|
name | string | Exact fast flag name to set. |
value | any | Value to write. Accepted types depend on the detected flag type. |
Return
| Nama | Tipe | Deskripsi |
|---|---|---|
updated | boolean | true when a supported flag value was written, otherwise false. |
Deskripsi
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.
Panggil dengan 2 parameter: name, value. Tabel argumen menjelaskan nilai wajib dan nilai yang hanya menyempurnakan perilaku.
Mengembalikan updated (boolean). Gunakan tabel returns untuk memisahkan nilai sukses, hasil nil, dan error yang bisa dipulihkan.
Contoh
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