public void OnPlayerBoughtVehicleHandler(Client sender, params object[] arguments)
        {
            //arguments[0] to nazwa pojazdu

            if (!Enum.TryParse(arguments[0].ToString(), out VehicleHash vehicleHash))
            {
                return;
            }

            CarshopVehicleModel vehicle = Vehicles.First(v => v.Name == arguments[0].ToString());

            CharacterEntity character = sender.GetAccountEntity().CharacterEntity;

            if (character.HasMoney(vehicle.Cost))
            {
                character.RemoveMoney(vehicle.Cost);

                VehicleEntity.Create(new FullPosition(new Vector3(-50, -1680, 29.5), new Vector3(0, 0, 0)),
                                     vehicleHash, "", 0, null, ApiExtensions.GetRandomColor(), ApiExtensions.GetRandomColor(), 0f, 0f, sender.GetAccountEntity().CharacterEntity.DbModel);
                sender.SendInfo($"Pojazd {vehicleHash.ToString()} zakupiony pomyślnie.");
            }
            else
            {
                sender.SendError("Nie posiadasz wystarczającej ilości gotówki.");
            }
        }
        public void SpawnCarCommand(Client sender, VehicleHash model)
        {
            AccountModel   accountModel   = sender.GetAccountEntity().DbModel;
            CharacterModel characterModel = sender.GetAccountEntity().CharacterEntity.DbModel;

            FullPosition position = new FullPosition(sender.Position, sender.Rotation);

            var vehicle = VehicleEntity.Create(position, model, "Test", 1, accountModel.Id, ApiExtensions.GetRandomColor(),
                                               ApiExtensions.GetRandomColor(), 0F, 0F, characterModel);

            vehicle.Spawn();

            sender.SendInfo($"Utworzono pojazd: {model}!");
        }