IsColor

  boolean IsColor( any Object )

Açıklama

Verilen nesnenin bir renk metatablosuna sahip olup olmadığını döndürür.

Argümanlar

1 any Object
Test edilecek nesne

Döndürülen Değer

1 boolean
Verilen nesnenin bir renk olup olmadığı

Örnek

'IsColor' fonksiyonu nasıl çalışır?

local color = Color(255, 255, 255) print(IsColor(color) or "This variable is not a colour")
Çıktı:
true

Tüm sunucular · GmodTR Launcher · Rehber · GMod Wiki · GmodTR nedir? · Sunucu ekle · Discord