Пример #1
0
        public static bool DrawPrimitive(PrimitiveType primitiveType, List <Vertice> vertices, bool postGui = false)
        {
            List <Vector2> vectors = new List <Vector2>();
            List <int>     colors  = new List <int>();

            foreach (Vertice vertice in vertices)
            {
                vectors.Add(vertice.Position);
                colors.Add(vertice.Color.Hex);
            }

            return(MtaClient.DxDrawPrimitive(primitiveType.ToString().ToLower(), postGui, vertices.Count, vectors, colors));
        }