I try to learn ^^:D Please help me with CUI ^^.

#region > Extra
namespace Oxide.Plugins

extern alias References;

using Oxide.Core;
using References::Newtonsoft.Json;
using References::Newtonsoft.Json.Converters;
using References::Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using Oxide.Game.Rust.Cui;

private void RustUI(BasePlayer player)
{
var container = new CuiElementContainer();
container.Add(new CuiPanel
{
CursorEnabled = false,
Image = { Color = "0.1792453 0.1792453 0.1792453 0.01960784" },
RectTransform = { AnchorMin = "0 0", AnchorMax = "1 1", OffsetMin = "0 0", OffsetMax = "0 0" }
}, "Overlay", "BleedingPanel");

container.Add(new CuiElement
{
Name = "BleedingOutText",
Parent = "BleedingPanel",
Components = {
new CuiTextComponent { Text = "Factions", Font = "robotocondensed-bold.ttf", FontSize = 50, Align = TextAnchor.MiddleCenter, Color = "1 1 1 1" },
new CuiOutlineComponent { Color = "0 0 0 1", Distance = "1 1" },
new CuiRectTransformComponent { AnchorMin = "0.5 0.5", AnchorMax = "0.5 0.5", OffsetMin = "-139.073 -28.75", OffsetMax = "308.873 115.75" }
}
});

container.Add(new CuiButton
{
Button = { Color = "1 1 1 1", Command = "chat.say /faction create" },
Text = { Text = "Create new Faction.", Font = "robotocondensed-regular.ttf", FontSize = 18, Align = TextAnchor.MiddleCenter, Color = "0 0 0 1" },
RectTransform = { AnchorMin = "0.5 0.5", AnchorMax = "0.5 0.5", OffsetMin = "8.582 -30.568", OffsetMax = "151.418 28.516" }
}, "BleedingPanel", "CreateFaction");

container.Add(new CuiElement
{
Name = "FactionName",
Parent = "Overlay",
Components = {
new CuiInputFieldComponent { Color = "1 1 1 1", Font = "Font Not Supported", FontSize = 14, Align = TextAnchor.UpperLeft, CharsLimit = 0, IsPassword = false },
new CuiRectTransformComponent { AnchorMin = "0.5 0.5", AnchorMax = "0.5 0.5", OffsetMin = "32.372 -31.356", OffsetMax = "127.619 -7.422" }
}
});

CuiHelper.DestroyUI(player, "RustUI");
CuiHelper.AddUi(player, container);
}
#endregion

I am try to Display a custom CUI, the Reson i want to make a Cui there is a text input field box and press the button send the Command example: chat.say /faction create and than its mustt be filled by the CuiInputFieldComponent, but i dont see the cui ^^ first i have to start with see ^^ 

Hello,

First of all, please use the uMod code sample button provided to put your code.

I must suggest you use Visual Studio if you don't already use it and adding the ReSharper addon to it, it will help you find the coding errors.

About your code. if you want to destroy UI, you must specify the UI Name and not the function you call to display it.
Like you named your UI "BleedingPanel", so your destroy must be 

CuiHelper.DestroyUi(player, "BleedingPanel");

For your last CuiElement, you set Parent to "Overlay", but as it's a part of your UI, you must set parent to "BleedingPanel"

            container.Add(new CuiElement
            {
                Name = "FactionName",
                Parent = "BleedingPanel",
                Components = {
                    new CuiInputFieldComponent { Color = "1 1 1 1", Font = "Font Not Supported", FontSize = 14, Align = TextAnchor.UpperLeft, CharsLimit = 0, IsPassword = false },
                    new CuiRectTransformComponent { AnchorMin = "0.5 0.5", AnchorMax = "0.5 0.5", OffsetMin = "32.372 -31.356", OffsetMax = "127.619 -7.422" }
                }
            });

Finally, to display your UI, you have to call it once

void OnPlayerConnected(BasePlayer player) => RustUI(player);

 

Thanks for the Help, i have to learn more ^^