---
title: "getfpscap"
description: "Reads TaskSchedulerTargetFps and converts it to a number when possible."
---

```lua
getfpscap(): number | string
```

---

## Aliases

None.

---

## Arguments

This function takes no arguments.

---

## Returns

<ResponseField name="fps" type="number | string">
  The configured FPS cap, or its raw string when numeric parsing fails.
</ResponseField>

Raises if the native flag is absent; malformed numeric content remains a string.

---

## Example

```lua
print("FPS cap:", getfpscap())
```
