# timer.Exists

- **Ortam:** İstemci, Sunucu, Menü
- **İngilizce aslı:** https://wiki.facepunch.com/gmod/timer.Exists
- **Çeviri tarihi:** 2025-09-08

```lua
boolean timer.Exists( string identifier )
```

## Açıklama

Belirtilen zamanlayıcının var olup olmadığını döndürür.

Hata ayıklama amacıyla aşağıdaki komutları kullanabilirsiniz:

- `lua_dumptimers_cl`
- `lua_dumptimers_sv`
- `lua_dumptimers_menu`

Bunlar, her alandaki (realm) tüm aktif zamanlayıcıları listeler.

## Argümanlar

1. [string](https://gmod.tr/wiki/string) **identifier**: Zamanlayıcının tanımlayıcısı.

## Döndürülen Değerler

1. [boolean](https://gmod.tr/wiki/boolean): Zamanlayıcı varsa true, yoksa false döndürür.

### Örnek

Zamanlayıcının var olup olmadığını kontrol eder.

```lua
if ( timer.Exists( "TimerName" ) ) then

	-- Zamanlayıcı var
	print( "Zamanlayıcı var" )

else
	-- Zamanlayıcı mevcut değil
	print( "Zamanlayıcı mevcut değil!" )

	-- Bir zamanlayıcı oluştur
	timer.Create( "TimerName", 1, 0, function() print( "Ben bir Zamanlayıcıyım" ) end)
end
```

**Çıktı:**

```lua
The timer does not exist!
I'm a Timer
I'm a Timer
I'm a Timer
I'm a Timer
```

- [GMod Wiki ana sayfası](https://gmod.tr/wiki)

---

[Tüm sunucular](https://gmod.tr/) · [GmodTR Launcher](https://gmod.tr/launcher) · [Rehber](https://gmod.tr/rehber) · [GMod Wiki](https://gmod.tr/wiki) · [GmodTR nedir?](https://gmod.tr/hakkinda) · [Sunucu ekle](https://gmod.tr/sunucu-ekle) · [Discord](https://discord.gg/gmodtr)

Kaynak: https://gmod.tr/wiki/timer.Exists
