Key Values - lnx00/Lmaobox-Library GitHub Wiki
lnxLib.Utils.KeyValues
Easily serialize tables into KeyValue strings
Functions
.Serialize(name, data)
Serializes the givendata
table.
Examples
local kv = KeyValues.Serialize("VertexLitGeneric", {
["$basetexture"] = "vgui/white_additive"
["$selfillum"] = 1
})
will result in:
"VertexLitGeneric" {
"$basetexture" "vgui/white_additive"
"$selfillum" "1"
}