All pastes #75136 Raw Edit

Andy

public text v1 · immutable
#75136 ·published 2006-06-29 20:35 UTC
rendered paste body

local test = [[

"menu"
{
	"main"
	{
		"items"
		{
			"1"	"#BountyMenu_Weapons"
			"2"	"#BountyMenu_Equipment"
			"0"	"#BountyMenu_Exit"
		}
		"commands"
		{
			"1"	"bty_menu weapons"
			"2"	"bty_menu equipment"
			"0"	"bty_menu"
		}
	}
	"weapons"
	{
		"items"
		{
			"1"	"#BountyMenu_Melee"
			"2"	"#BountyMenu_Pistols"
			"3"	"#BountyMenu_Shotguns"
			"4"	"#BountyMenu_Automatic"
			"5"	"#BountyMenu_Explosives"
			"0"	"#BountyMenu_Back"
		}
		"commands"
		{
			"1"	"bty_menu melee"
			"2"	"bty_menu pistols"
			"3"	"bty_menu shotguns"
			"4"	"bty_menu automatic"
			"5"	"bty_menu explosives"
			"0"	"bty_menu main"
		}
	}
}

]]

local function KVTest( player, command, arguments )


	local newtab = utilx.KeyValuesToTable( test )

	PrintTable( newtab )


end




concommand.Add( "KVTest", KVTest )