Jump to content
Message added by IIIaKa,

In case you don't have AdvancedStatus, you should purchase the Bundle. The price is the same, but additionally, you'll receive AdvancedStatus.
P.S. Any suggestions for improvement will be taken into consideration.

1 Screenshot

  • 21.1k
  • 216
  • 31.03 kB

About Balance Bar

The plugin displays the player's balance in the status bar. Depends on AdvancedStatus plugin.

P.S. I've asked the author of the ServerRewards plugin to add a new hook called OnPointsUpdated to track points updates. Until they decide to add the new hook, if you want point updates, you'll need to manually add 2 lines to the ServerRewards plugin.

On lines 1840 and 1865, you need to add the code(below) before "return true;"

Interface.CallHook("OnPointsUpdated", ID, playerRP[ID]);

pQCAZ5g.png
 

Ji0XU4D.png

  • The ability to add and modify any economic plugins;
  • The ability to automatically generate code for balance update hooks;
  • The ability to automatically generate language files for different languages(filled in English);
  • The ability to display the status bar to everyone or only based on permissions;
  • The ability to display the status bar always or only in safe zones and building privileges;
  • The ability to display the status bar via a command for a short period if permanent display is disabled;
  • The ability to display the status bar when the balance is non-zero;
  • The ability to display all or part of the bars simultaneously;
  • The ability to customize the bar for each plugin;
  • The ability to specify the currency symbol;
  • The ability to specify the display side of the currency symbol;
  • The ability to display text if the balance exceeds a specified value(useful for very large balances);
  • The ability to specify the order of the bar;
  • The ability to change the height of the bar;
  • The abillity to customize the color and transparency of the background;
  • The ability to set a material for the background;
  • The ability to switch between CuiRawImageComponent and CuiImageComponent for the image;
  • The ability to get images from the local folder(*SERVER*\oxide\data\AdvancedStatus\Images);
  • The abillity to set own image and customize the color, transparency and outline of the image;
  • The abillity to set sprite instead of the image;
  • The ability to customize the color, size, font and outline of the text.

 

n8420aH.png

  • balancebar.use - Grants the right to display the status bar if display is enabled only for permissions.

 

MOEpxmo.png

{
  "Chat command": "balances",
  "Time in seconds during which the status bar will be displayed after entering the command": 5.0,
  "Is it worth generating update hooks? 0 - disabled, 1 - one-time activation, 2 - always enabled": 2,
  "Is it worth displaying the status bar only when players are in the safe zone or have building privilege?": true,
  "Is it worth displaying the status bar at a 0 balance?": true,
  "Is it worth displaying the status bar without permission?": true,
  "Value after which text will be displayed instead of balance": 1000000000.0,
  "List of language keys for creating language files": [
    "en"
  ],
  "The list of economy plugins for displaying the balance bar. Note: When adding or changing hooks, don't forget to enable hook generation": {
    "Economics": {
      "Is it worth enabling the plugin for display?": true,
      "Language key for the main text": "BarEconomics",
      "Balance format": "${0}",
      "Language key for the subtext when the balance is high": "BarEconomicsOverLimit",
      "API method for retrieving the balance": "Balance",
      "Hook that triggers on balance update": "OnEconomicsBalanceUpdated",
      "List of argument types in the hook in order": [
        "string",
        "double"
      ],
      "BarSettings": {
        "Order": 20,
        "Height": 26,
        "Main_Color(Hex or RGBA)": "#6375B3",
        "Main_Transparency": 0.8,
        "Main_Material(empty to disable)": "",
        "Image_Url": "https://i.imgur.com/jKeUqSD.png",
        "Image_Local(Leave empty to use Image_Url)": "BalanceBar_Default",
        "Image_Sprite(Leave empty to use Image_Local or Image_Url)": "",
        "Image_IsRawImage": false,
        "Image_Color(Hex or RGBA)": "#A1DBE6",
        "Image_Transparency": 1.0,
        "Is it worth enabling an outline for the image?": false,
        "Image_Outline_Color(Hex or RGBA)": "0.1 0.3 0.8 0.9",
        "Image_Outline_Transparency": 1.0,
        "Image_Outline_Distance": "0.75 0.75",
        "Text_Size": 12,
        "Text_Color(Hex or RGBA)": "#FFFFFF",
        "Text_Font(https://umod.org/guides/rust/basic-concepts-of-gui#fonts)": "RobotoCondensed-Bold.ttf",
        "Text_Offset_Horizontal": 0,
        "Is it worth enabling an outline for the text?": false,
        "Text_Outline_Color(Hex or RGBA)": "#000000",
        "Text_Outline_Transparency": 1.0,
        "Text_Outline_Distance": "0.75 0.75",
        "SubText_Size": 12,
        "SubText_Color(Hex or RGBA)": "#FFFFFF",
        "SubText_Font": "RobotoCondensed-Bold.ttf",
        "Is it worth enabling an outline for the sub text?": false,
        "SubText_Outline_Color(Hex or RGBA)": "0.5 0.6 0.7 0.5",
        "SubText_Outline_Transparency": 1.0,
        "SubText_Outline_Distance": "0.75 0.75"
      }
    },
    "ServerRewards": {
      "Is it worth enabling the plugin for display?": true,
      "Language key for the main text": "BarServerRewards",
      "Balance format": "{0} RP",
      "Language key for the subtext when the balance is high": "BarServerRewardsOverLimit",
      "API method for retrieving the balance": "CheckPoints",
      "Hook that triggers on balance update": "OnPointsUpdated",
      "List of argument types in the hook in order": [
        "ulong",
        "int"
      ],
      "BarSettings": {
        "Order": 20,
        "Height": 26,
        "Main_Color(Hex or RGBA)": "#6375B3",
        "Main_Transparency": 0.8,
        "Main_Material(empty to disable)": "",
        "Image_Url": "https://i.imgur.com/jKeUqSD.png",
        "Image_Local(Leave empty to use Image_Url)": "BalanceBar_Default",
        "Image_Sprite(Leave empty to use Image_Local or Image_Url)": "",
        "Image_IsRawImage": false,
        "Image_Color(Hex or RGBA)": "#A1DBE6",
        "Image_Transparency": 1.0,
        "Is it worth enabling an outline for the image?": false,
        "Image_Outline_Color(Hex or RGBA)": "0.1 0.3 0.8 0.9",
        "Image_Outline_Transparency": 1.0,
        "Image_Outline_Distance": "0.75 0.75",
        "Text_Size": 12,
        "Text_Color(Hex or RGBA)": "#FFFFFF",
        "Text_Font(https://umod.org/guides/rust/basic-concepts-of-gui#fonts)": "RobotoCondensed-Bold.ttf",
        "Text_Offset_Horizontal": 0,
        "Is it worth enabling an outline for the text?": false,
        "Text_Outline_Color(Hex or RGBA)": "#000000",
        "Text_Outline_Transparency": 1.0,
        "Text_Outline_Distance": "0.75 0.75",
        "SubText_Size": 12,
        "SubText_Color(Hex or RGBA)": "#FFFFFF",
        "SubText_Font": "RobotoCondensed-Bold.ttf",
        "Is it worth enabling an outline for the sub text?": false,
        "SubText_Outline_Color(Hex or RGBA)": "0.5 0.6 0.7 0.5",
        "SubText_Outline_Transparency": 1.0,
        "SubText_Outline_Distance": "0.75 0.75"
      }
    },
    "BankSystem": {
      "Is it worth enabling the plugin for display?": true,
      "Language key for the main text": "BarBankSystem",
      "Balance format": "${0}",
      "Language key for the subtext when the balance is high": "BarBankSystemOverLimit",
      "API method for retrieving the balance": "Balance",
      "Hook that triggers on balance update": "OnBalanceChanged",
      "List of argument types in the hook in order": [
        "ulong",
        "int"
      ],
      "BarSettings": {
        "Order": 20,
        "Height": 26,
        "Main_Color(Hex or RGBA)": "#6375B3",
        "Main_Transparency": 0.8,
        "Main_Material(empty to disable)": "",
        "Image_Url": "https://i.imgur.com/jKeUqSD.png",
        "Image_Local(Leave empty to use Image_Url)": "BalanceBar_Default",
        "Image_Sprite(Leave empty to use Image_Local or Image_Url)": "",
        "Image_IsRawImage": false,
        "Image_Color(Hex or RGBA)": "#A1DBE6",
        "Image_Transparency": 1.0,
        "Is it worth enabling an outline for the image?": false,
        "Image_Outline_Color(Hex or RGBA)": "0.1 0.3 0.8 0.9",
        "Image_Outline_Transparency": 1.0,
        "Image_Outline_Distance": "0.75 0.75",
        "Text_Size": 12,
        "Text_Color(Hex or RGBA)": "#FFFFFF",
        "Text_Font(https://umod.org/guides/rust/basic-concepts-of-gui#fonts)": "RobotoCondensed-Bold.ttf",
        "Text_Offset_Horizontal": 0,
        "Is it worth enabling an outline for the text?": false,
        "Text_Outline_Color(Hex or RGBA)": "#000000",
        "Text_Outline_Transparency": 1.0,
        "Text_Outline_Distance": "0.75 0.75",
        "SubText_Size": 12,
        "SubText_Color(Hex or RGBA)": "#FFFFFF",
        "SubText_Font": "RobotoCondensed-Bold.ttf",
        "Is it worth enabling an outline for the sub text?": false,
        "SubText_Outline_Color(Hex or RGBA)": "0.5 0.6 0.7 0.5",
        "SubText_Outline_Transparency": 1.0,
        "SubText_Outline_Distance": "0.75 0.75"
      }
    },
    "IQEconomic": {
      "Is it worth enabling the plugin for display?": true,
      "Language key for the main text": "BarIQEconomic",
      "Balance format": "${0}",
      "Language key for the subtext when the balance is high": "BarIQEconomicOverLimit",
      "API method for retrieving the balance": "API_GET_BALANCE",
      "Hook that triggers on balance update": "OnEconomicsBalanceUpdated",
      "List of argument types in the hook in order": [
        "ulong",
        "int"
      ],
      "BarSettings": {
        "Order": 20,
        "Height": 26,
        "Main_Color(Hex or RGBA)": "#6375B3",
        "Main_Transparency": 0.8,
        "Main_Material(empty to disable)": "",
        "Image_Url": "https://i.imgur.com/jKeUqSD.png",
        "Image_Local(Leave empty to use Image_Url)": "BalanceBar_Default",
        "Image_Sprite(Leave empty to use Image_Local or Image_Url)": "",
        "Image_IsRawImage": false,
        "Image_Color(Hex or RGBA)": "#A1DBE6",
        "Image_Transparency": 1.0,
        "Is it worth enabling an outline for the image?": false,
        "Image_Outline_Color(Hex or RGBA)": "0.1 0.3 0.8 0.9",
        "Image_Outline_Transparency": 1.0,
        "Image_Outline_Distance": "0.75 0.75",
        "Text_Size": 12,
        "Text_Color(Hex or RGBA)": "#FFFFFF",
        "Text_Font(https://umod.org/guides/rust/basic-concepts-of-gui#fonts)": "RobotoCondensed-Bold.ttf",
        "Text_Offset_Horizontal": 0,
        "Is it worth enabling an outline for the text?": false,
        "Text_Outline_Color(Hex or RGBA)": "#000000",
        "Text_Outline_Transparency": 1.0,
        "Text_Outline_Distance": "0.75 0.75",
        "SubText_Size": 12,
        "SubText_Color(Hex or RGBA)": "#FFFFFF",
        "SubText_Font": "RobotoCondensed-Bold.ttf",
        "Is it worth enabling an outline for the sub text?": false,
        "SubText_Outline_Color(Hex or RGBA)": "0.5 0.6 0.7 0.5",
        "SubText_Outline_Transparency": 1.0,
        "SubText_Outline_Distance": "0.75 0.75"
      }
    }
  },
  "Version": {
    "Major": 0,
    "Minor": 1,
    "Patch": 7
  }
}

 

DxI83SK.png

EN:
{
  "BarEconomics": "Balance",
  "BarEconomicsOverLimit": "> $1kkk",
  "BarServerRewards": "Points",
  "BarServerRewardsOverLimit": "> 1kkk RP",
  "BarBankSystem": "Balance",
  "BarBankSystemOverLimit": "> $1kkk",
  "BarIQEconomic": "Balance",
  "BarIQEconomicOverLimit": "> $1kkk"
}
RU:
{
  "BarEconomics": "Баланс",
  "BarEconomicsOverLimit": "> $1 млрд",
  "BarServerRewards": "Очки",
  "BarServerRewardsOverLimit": "> 1 млрд RP",
  "BarBankSystem": "Баланс",
  "BarBankSystemOverLimit": "> $1 млрд",
  "BarIQEconomic": "Баланс",
  "BarIQEconomicOverLimit": "> $1 млрд"
}

 

OxWiTBA.png

  • balances - Displays available status bars for a short period if permanent bar display is disabled.

 

  • Love 1

User Feedback

1.7m

Downloads

Total number of downloads.

8k

Customers

Total customers served.

121.3k

Files Sold

Total number of files sold.

2.5m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.