Overview Chart
This function displays a chart showing the business activity over the past 7 days. By default, the tracked transactions include:
Sells
Deliveries
Supplies Bought
Paid Invoices
However, you can also add your own custom types, such as:
Tuned Vehicles
Treated Patients
or any other you can think of...

Custom Transactions
To register a new type go to
config/_overview.lua
Here you will find a table with the default transactions, for this example we are adding a new one named Tuned Vehicles:

name:
string
- This is an unique identifier, keep it simple.label:
string
- Label to display when hover it.color:
string
- The color used for this data, use HEX values.
Now we need to trigger the following export from our own resource:
addTransaction(business,name,amount)
params:
business:
string
The job name ("police", "ambulance", "mechanic", etc....)name:
string
The transaction name (NOT label).amount:
number
The amount of transactions to add (1 by default)
Since we are doing an example for Tuned Vehicles, we want to trigger the export from av_tuning, go to
av_tuning/server/framework/_framework.lua > line 72
, add the export inside function ProcessPayment, after all the Society logic, something like this:

Now, your new transaction should look something like this after some uses:

Last updated