Syntax
setfflag(name: string, value: any): booleanArgumente
| Name | Typ | Beschreibung |
|---|---|---|
name | string | Exact fast flag name to set. |
value | any | Value to write. Accepted types depend on the detected flag type. |
Rückgaben
| Name | Typ | Beschreibung |
|---|---|---|
updated | boolean | true when a supported flag value was written, otherwise false. |
Beschreibung
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.
Rufe es mit 2 Parameter(n) auf: name, value. Die Argumenttabelle erklärt, welche Werte erforderlich sind und welche nur das Verhalten verfeinern.
Es gibt updated (boolean) zurück. Nutze die Rückgabetabelle, um erfolgreiche Werte von nil-Ergebnissen und behandelbaren Fehlern zu trennen.
Beispiel
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