# NPC:IsCurrentSchedule

- **Ortam:** Sunucu
- **İngilizce aslı:** https://wiki.facepunch.com/gmod/NPC:IsCurrentSchedule
- **Çeviri tarihi:** 2025-09-08

```lua
boolean NPC:IsCurrentSchedule( number schedule )
```

## Açıklama

NPC'nin belirtilen görevi (schedule) yerine getirip getirmediğini döndürür.

## Argümanlar

1. [number](https://gmod.tr/wiki/number) **schedule**: Görevin (schedule) numarası, [SCHED enum](https://gmod.tr/wiki/Enums/SCHED) sayfasına bakın.

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

1. [boolean](https://gmod.tr/wiki/boolean): Eğer NPC belirtilen görevi yerine getiriyorsa true, aksi takdirde false döndürür.

### Örnek

Bir NPC'nin hangi görevi yerine getirdiğini döndüren bir fonksiyon.

```lua
function GetNPCSchedule(npc)

	if(!IsValid(npc)) then return end

	for s = 0, LAST_SHARED_SCHEDULE-1 do
		if(npc:IsCurrentSchedule(s)) then return s end
	end

	return 0

end
```

- [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/NPC:IsCurrentSchedule
