Benny/gamemodes/benny/gamemode/convars.lua

16 lines
573 B
Lua

---------------------
-- Your Name is Benny
---------------------
function BENNY.AddConvar( name, value, flags, mins, maxs )
local CV = CreateConVar( "b-" .. name, value, flags, l8( "#Convar." .. name .. ".Description" ), mins, maxs )
_G["c_" .. name] = CV
-- print( "Created Convar: " .. name .. " : " .. l8( "#Convar." .. name .. ".Name" ) .. " : " .. l8( "#Convar." .. name .. ".Description" ) )
return CV
end
function BENNY.AddClientConvar( name, value, flags, mins, maxs )
if SERVER then return end
return BENNY.AddConvar( name, value, flags, mins, maxs )
end