public void LoadAllMySQLInformations()
        {
            ATMService.LoadAllATMs();
            BlipService.LoadCustomBlipsFromDatabase();
            ClothingService.LoadAllClothing();
            ItemService.LoadItemsFromDB();
            ShopService.LoadShopsFromDB();
            GarageService.LoadAllGarageFromDB();
            VehicleService.ResetAllVehicles();
            GasStationService.LoadAllGasStationsFromDB();
            VehicleService.LoadVehicleInformationsFromDB();
            VehicleShopService.LoadAllVehicleShopsFromDB();
            DoorService.LoadAllDoorsFromDB();
            ClothingShopService.LoadAllClothingShopsFromDB();

            API.delay(3000, true, () =>
            {
                API.setServerPassword(oldServerPassword);
                API.consoleOutput("Server is now unlocked..");
            });
        }
        public void OnClientEvent(Client client, string eventName, params object[] arguments)
        {
            if (!client.hasData("player"))
            {
                return;
            }
            Player player = client.getData("player");

            switch (eventName)
            {
            case "KeyboardKey_E_Pressed":
                if (client.isInVehicle)
                {
                    return;
                }
                VehicleShopService.OpenVehicleShop(client);
                break;

            case "VehicleShop_BuyVehicle":
                VehicleShopService.BuyVehicle(client, (string)arguments[0]);
                break;
            }
        }
Ejemplo n.º 3
0
 public void AddVehicleShopItem(Client client, int shopId, string modelName, double price)
 {
     VehicleShopService.AddShopItem(shopId, modelName, price);
     API.sendChatMessageToPlayer(client, modelName + " added to ShopID " + shopId + " for " + price + "$");
 }
Ejemplo n.º 4
0
 public void ChangeVehShopCamera(Client client, int shopId)
 {
     VehicleShopService.ChangePreviewCamera(shopId, client);
     API.sendChatMessageToPlayer(client, "Vehicle Shop Camera Changed");
 }
Ejemplo n.º 5
0
 public void AddVehicleShop(Client client, string shopName)
 {
     VehicleShopService.AddVehicleShop(client, shopName);
     API.sendChatMessageToPlayer(client, "Vehicle Shop added");
 }