Support IQEconomicSuggestion

Hi, can u add support IQEconomic or help for configure it? thanks a lot

HOOK:

API_REMOVE_BALANCE

i tried it on recall command, i was change hook in plugin, and i think make correctly config, in config IQEconomic i try change to Economics back, dont work

 



Merged post

        private bool TryPay(BasePlayer player, Dictionary<string, PriceInfo> prices, out string resources)
        {
            if (permission.UserHasPermission(player.UserIDString, PERMISSION_BYPASS_COST))
            {
                resources = null;
                return true;
            }

            if (!CanPay(player, prices, out resources))
            {
                return false;
            }

            var collect = Pool.GetList<Item>();
            foreach (var entry in prices)
            {
                if (entry.Value.amount <= 0)
                {
                    continue;
                }
                var itemDefinition = ItemManager.FindItemDefinition(entry.Key);
                if (itemDefinition != null)
                {
                    player.inventory.Take(collect, itemDefinition.itemid, entry.Value.amount);
                    player.Command("note.inv", itemDefinition.itemid, -entry.Value.amount);
                    continue;
                }
                switch (entry.Key.ToLower())
                {
                    case "economics":
                        Economics?.Call("API_REMOVE_BALANCE", player.userID, (double)entry.Value.amount);
                        continue;

                    case "serverrewards":
                        ServerRewards?.Call("TakePoints", player.userID, entry.Value.amount);
                        continue;
                }
            }

 

  "Normal Vehicle Settings": {
    "Sedan Vehicle": {
      "Purchasable": true,
      "Display Name": "Sedan",
      "Use Permission": true,
      "Permission": "vehiclelicence.sedan",
      "Distance To Spawn": 5.0,
      "Time Before Vehicle Wipe (Seconds)": 0.0,
      "Exclude cupboard zones when wiping": false,
      "Maximum Health": 0.0,
      "Can Recall Maximum Distance": 0.0,
      "Can Kill Maximum Distance": 0.0,
      "Minimum distance from player to recall or spawn": 3.0,
      "Remove License Once Crashed": false,
      "Commands": [
        "car",
        "sedan"
      ],
      "Purchase Prices": {
        "scrap": {
          "amount": 300,
          "displayName": "Scrap"
        }
      },
      "Spawn Prices": {},
      "Recall Prices": {
		"IQEconomic": {
		"amount": 100,
		"displayName": "Money"
		}
	  },
      "Recall Cooldown Bypass Prices": {},
      "Spawn Cooldown Bypass Prices": {},
      "Spawn Cooldown (Seconds)": 300.0,
      "Recall Cooldown (Seconds)": 30.0,
      "Cooldown Permissions": {
        "vehiclelicence.vip": {
          "spawnCooldown": 150.0,
          "recallCooldown": 10.0
        }
      }
    },