local StatSources = {
    "RankedWZLoadout",
    "PrivateWZLoadout",
    "RankedLoadout",
    "PrivateLoadout",
}

local function GetStatsSource( index )
    return StatSources[ index ]
end

local CurrentName = ""
callbacks.Add( "Menu", function()

    imgui.BeginGroup( "Loadouts", 80 )

    CurrentName = imgui.InputText( "New Name", CurrentName, 32 )
 
    if ( imgui.Button( "Set Name", 0, 0 ) ) then
        for i = 1, #StatSources, 1 do        
            local StatsSource = GetStatsSource( i )
            for j = 0, 9, 1 do
                game.CBuf_AddText( 'set'..StatsSource..'_loc "loadouts" '..tostring( j )..' "name" "'..CurrentName..'";' )
            end
        end
    end

    imgui.EndGroup()

end )

Embed on website

To embed this program on your website, copy the following code and paste it into your website's HTML: