// Can been triggered from a custom Client Event, if you want to parse the
        // MValueList on your own
        private void OnPlayerCustomEvent(IPlayer player, string eventName,
                                         ref AltV.Net.Native.MValueArray mValueArray)
        {
            switch (eventName)
            {
            case "playerEventA":
            {
                Alt.Log(player.Name + " has triggered Custom Event A, "
                        + "with following Args:");
                foreach (var arg in mValueArray.ToArray())
                {
                    Alt.Log(arg + " - Type: " + arg.GetType());
                }
                break;
            }

            case "playerEventB":
            {
                Alt.Log(player.Name + " has triggered Custom Event B, "
                        + "with following Args:");
                foreach (var arg in mValueArray.ToArray())
                {
                    Alt.Log(arg + " - Type: " + arg.GetType());
                }
                break;
            }
            }
        }
        // Can been triggered from a custom Server Event, if you want to parse the
        // MValueList on your own
        private void OnServerCustomEvent(string eventName,
                                         ref AltV.Net.Native.MValueArray mValueArray)
        {
            switch (eventName)
            {
            case "eventCustomA":
            {
                Alt.Log("Custom Server Event A has been triggered, " +
                        "with following Args:");
                foreach (var arg in mValueArray.ToArray())
                {
                    Alt.Log(arg + " - Type: " + arg.GetType());
                }
                break;
            }

            case "eventCustomB":
            {
                Alt.Log("Custom Server Event B has been triggered, " +
                        "with following Args:");
                foreach (var arg in mValueArray.ToArray())
                {
                    Alt.Log(arg + " - Type: " + arg.GetType());
                }
                break;
            }
            }
        }