> ## Documentation Index
> Fetch the complete documentation index at: https://docs.projectreal.gg/llms.txt
> Use this file to discover all available pages before exploring further.

# setfflag

> 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.

<div className="real-function-page">
  ```lua theme={null}
  setfflag(name: string, value: any): boolean
  ```

  ## Argumentos

  <ParamField path={"name"} type={"string"} required>
    Exact fast flag name to set.
  </ParamField>

  <ParamField path={"value"} type={"any"} required>
    Value to write. Accepted types depend on the detected flag type.
  </ParamField>

  ## Retornos

  <ResponseField name={"updated"} type={"boolean"}>
    true when a supported flag value was written, otherwise false.
  </ResponseField>

  ## Exemplo

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

  ```lua theme={null}
  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
  ```
</div>
