CreateConVar
Örnek
Bir Convar ve bu convar'ın içeriğini sohbete yazdıran bir komut oluşturan kod.
local convar_example = CreateConVar("convar_example", "1", {FCVAR_ARCHIVE, FCVAR_NOTIFY, FCVAR_REPLICATED}, "This is a server-side convar.")
concommand.Add("print_convar", function(ply)
ply:ChatPrint("Server ConVar value: " .. convar_example:GetString())
end)
Çıktı: Server ConVar value: 1
Tüm sunucular · GmodTR Launcher · Rehber · GMod Wiki · GmodTR nedir? · Sunucu ekle · Discord