ConVar = {}
ConVar.__index = ConVar
function ConVar.new(name, value, flag, helpString, bmin, fmin, bmax, fmax, class)
local newConVar = {}
setmetatable(newConVar, ConVar)
newConVar.name = name
newConVar.value = value
newConVar.flag = flag
newConVar.helpString = helpString or "No given info"
newConVar.bmin = bmin or nil
newConVar.fmin = fmin or nil
newConVar.bmax = bmax or nil
newConVar.fmax = fmax or nil
newConVar.class = class
return newConVar
end
function ConVar:Create(class)
class = Instance.new(class)
self.class = class
end
-- EX.
local debugMode = ConVar.new("debug", false, "Server", "Uses debug mode")
local hairball = ConVar.new("ent_objCreateHairball", 0, "Cheat" "Create a massive hairball for the fun of it.")
To embed this project on your website, copy the following code and paste it into your website's HTML: