# getTimers (Shared)

> Lists the calling resource's active timers.

- **Platform**: MY Multiplayer (MYMP)
- **Kind**: Lua Function
- **Side**: Shared
- **Category**: Timers and async
- **URL**: https://wiki.mymp.gg/en/getTimers

## Syntax

```lua
table getTimers()
```

## Returns

A table of the timers.

## Example

```lua
for _, timer in ipairs(getTimers()) do
    killTimer(timer)
end
```

### Coming from MTA

It takes no arguments and only sees the resource's own timers.

## See also

- [setTimer (Shared)](https://wiki.mymp.gg/en/setTimer.md): Calls a function after an interval, once or repeatedly.
- [getTimerDetails (Shared)](https://wiki.mymp.gg/en/getTimerDetails.md): Reads a timer's state: how long is left, how many repeats remain and its interval.
- [killTimer (Shared)](https://wiki.mymp.gg/en/killTimer.md): Cancels a timer before it ends.
