debug.setupvalue
Örnek
Bir fonksiyonun üzerine yazılmasını gösteren bir örnek.
local function my_isfunction(f)
return type(f) == "function" or f == "coolguy"
end
print(debug.setupvalue(hook.Add, 1, my_isfunction))
Tüm sunucular · GmodTR Launcher · Rehber · GMod Wiki · GmodTR nedir? · Sunucu ekle · Discord