SHOWCASE VIDEO
About Mayor - Economy DLC

- Mayoral events are made up scenarios that the mayor has to address.
- An event is triggered after x amount of time (configurable) by the server owner.
- The mayor will be prompt with a scenario and multiple options that they can choose.
- The outcome of every event is different and the mayor can either loose or gain economy points.

- Realistic events are similar to mayoral events. They appear on the screen just like normal events.
- However, realistic events causes lua code to run and performs an action on the server.
- An example could be the fuel problems event. If the mayor chooses the incorrect answer, all VCMod fuel pumps become out-of-order for x amount of seconds (configurable).
- Another example could be the forest fire event. If they choose the wrong answer, fires will spawn around the forest (DarkRP Fire System compatible).
- Or a realistic war event where citizens will be equipped with weapons and bombs will drop around in the city.

- From the economy centre menu the mayor is able to view his event logs.
- For every event the mayor answers, the event name, their answer, the price of the event and eco point gain/loss is logged in the menu.
- The event log is only present and networked to the current mayor efficiently. When a new mayor is elected the log is also emptied to avoid abuse.

- Economy points define how well the city economy is doing.
- The HUD bar at the top will show the current economy status to everyone.
- The economy has a direct impact on players paychecks.
- When the mayor answers events the city will either gain or loose economy points depending on what he chooses.

- Different from the salary taxation with the default addon, this DLC offers wallet and ATM taxation (compatible with ATM).
- Wallet and ATM taxation will charge a tax from a selection of teams every x seconds.
- You can configure which teams are taxed and the interval between the individual taxations.
- The mayor is able to adjust the tax and the tax interval directly in-game via the economy centre menu.

- You're able to auto balance the economy with or without a mayor. Meaning that every x seconds it will adjust the economy points slowly towards 0 (neutral).
- You can also set a point at where the mayor is automatically demoted if the economy reaches a certain low point (for example -40 points).
- You're also able to reset the economy if the mayor is demoted/leaves.

- The economy HUD (default top right corner) can be configured.
- You can enable/disable the visual HUD for players in the config. It will still show in the mayors economy centre dashboard regardless.
- You're also able to adjust the horizontal and vertical position of the HUD from your configuration if you have other HUD elements.

- The addon supports bLogs.
- Logs when the mayor answers an event (mayor name, event name, correct/wrong, price of answer and eco point gain/loss/neutral)
INSTALLATION
This addon supports DarkRP 2.7.0+ and requires the primary mayor addon.
Extract
Please visit the Setup & Customizing tab to see how you configure the addon.
CONTENT
The DLC uses the content pack of the primary addon.
You can find the content pack that you must add to your servers workshop collection here:
https://steamcommunity.com/sharedfiles/filedetails/?id=2925952159
This addon supports DarkRP 2.7.0+ and requires the primary mayor addon.
Extract
ch_mayor_economy_dlc
to your addons folder.Please visit the Setup & Customizing tab to see how you configure the addon.
CONTENT
The DLC uses the content pack of the primary addon.
You can find the content pack that you must add to your servers workshop collection here:
https://steamcommunity.com/sharedfiles/filedetails/?id=2925952159
Setup & Customizing
There is a single configuration file to modify various parts of the addon.
Configure the general settings of the addon in
View the configuration HERE
Mayoral events
There are many mayoral events that you can configure.
You will find all the events in
Every event has it's own separate file. The realistic events are pre-fixed with
If you need help configuring or adding new events then please submit a support ticket and I will gladly help you!
There is a single configuration file to modify various parts of the addon.
Configure the general settings of the addon in
lua/ch_adv_mayor_eco/shared/config/ch_mayor_eco_config.lua
View the configuration HERE
Mayoral events
There are many mayoral events that you can configure.
You will find all the events in
lua/ch_adv_mayor_eco/shared/events/xxx.lua
Every event has it's own separate file. The realistic events are pre-fixed with
real_event_x.lua
and regular events are pre-fixed withevent_x.lua
If you need help configuring or adding new events then please submit a support ticket and I will gladly help you!
Events
Mayoral events are a core feature of the addon.
Events appear on the screen as prompts for the mayor after a certain time. The time is randomized between a minimum and maximum config.
A scenario is present to the mayor and they must make a decision. Some decisions cost money, some does not.
Based on their answer they will then either receive or loose economy points (or neutral = no gain/loss). It's completely configurable.
Below is an example of a mayor event.
Option 1 rewards the mayor with 6 eco points and costs 400 dollars
Option 2 is free but the mayor loose 2 eco points.
You can add as many answers as you want.
There's also options for rewarding XP, money and even a custom function to run lua code. Below is an example of that.
Please see this knowledge base article for more information about realistic events and the EventFunction variable
https://www.gmodstore.com/help/addon/mayor-economy-dlc-realistic-events-salaries-economy-points-more/mayoral-events/topics/realistic-events
Mayoral events are a core feature of the addon.
Events appear on the screen as prompts for the mayor after a certain time. The time is randomized between a minimum and maximum config.
A scenario is present to the mayor and they must make a decision. Some decisions cost money, some does not.
Based on their answer they will then either receive or loose economy points (or neutral = no gain/loss). It's completely configurable.
Below is an example of a mayor event.
Option 1 rewards the mayor with 6 eco points and costs 400 dollars
Option 2 is free but the mayor loose 2 eco points.
Code:
CH_Mayor.Economy.Events["event_citylights"] = {
Name = "City Power Consumption",
Desc = "Your advisory council has noticed that the lights in your city consume an excess of power. Your advisory council and the national power grid want to help you get rid of these high consumption bulbs and replace them with green energy efficient bulbs!",
Choices = {
[1] = {
Name = "Back the great cause.",
Reward = true,
EcoPoints = 6,
Price = 400,
AnswerText = "The latest electric bill states that power consumption is now at an all time low, meaning more money can go towards the community!",
},
[2] = {
Name = "I'm happy with what I have.",
Reward = false,
EcoPoints = 2,
AnswerText = "Unfourtunatly, because you didnt replace the bulbs, power consumption kept at the same rate, causing more money to be spent on it.",
},
},
}
There's also options for rewarding XP, money and even a custom function to run lua code. Below is an example of that.
Code:
[2] = {
Name = "Accept the offer.",
Reward = true,
EcoPoints = 7,
XPReward = 750,
MoneyReward = 2500,
Price = 550,
AnswerText = "For just $550 you invested in the right company, they got big and in just 2 weeks you got a return of $2500. Good choice! .",
EventFunction = function()
for k, v in ipairs( player.GetAll() ) do
v:addMoney( 2500 )
DarkRP.notify( v, 1, 5, "[Mayoral Event] Due to recent actions taken by the mayor the economy has raised. You've all gotten a bonus!" )
end
end,
},
https://www.gmodstore.com/help/addon/mayor-economy-dlc-realistic-events-salaries-economy-points-more/mayoral-events/topics/realistic-events
Discord Server & Support
I own a Discord server for customers and anyone else who wish to join. I will occasionally provide exclusive offers and help with minor issues that might occur with my scripts. If you have a more serious problem, please create a conversation with me onsite.Conflicting addons is not to be said if I will support that or not. This is something I will decide upon confrontation about a conflicting addon. If you have found a conflicting addon, then feel free to create a conversation and I'll see if I can assist with solving the conflict.