Mayor - Economy DLC (Realistic Events, Economy Points, Taxation & More)

(3)
(6)
You can always read the reviews or discuss this product
Media gallery
No description
Buy product
This product is DLC for the product Mayor (Taxes, Vault, Laws, Leaderboards, Licenses & More). You need to purchase the core product before you can purchase this one.
In short

This DLC gives the mayor full control over the citys economy by prompting him to make decision on events that will have an effect on the citys economy.

πŸ“… Mayoral Events
  • 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
  • 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.


πŸ“˜ Event Logs
  • 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
  • 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.


πŸ’΅ Taxation
  • 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.


πŸ“ Economy Configs
  • 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.


🎨 HUD Option
  • 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.


πŸ’» bLogs Support
  • 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)


🌎 Language System
  • English
  • French
  • German
  • Turkish

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

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 with event_x.lua

If you need help configuring or adding new events then please submit a support ticket and I will gladly help you!

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.

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.",
		},
	},
}

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.

[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,
},

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

If you find any problems with the script, please create a support ticket with details of the situation and a copypaste of the error in console. I am also not interested in modifying you a custom version of the addon. Also not upon payment. Sorry!

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 some sort of proof that an addon is conflicting with my addon, please send me a PM with the details you might have.

Thank you!

Credits

All credits are given on the primary addon page.

If you like this script, you should check out some of my other addons for DarkRP. Just click the banner to open the script page in a new tab.

Product reviews

5.00 average based on 3 reviews

Sweet
Additional functionality
This DLC for the mayor addon add's so much more functionality to the already feature rich Mayor addon, from random events to setting custom tax rates, this addon is a great addition to the Mayor addon as well as any DarkRP server!
This product was received for free
By Sweet -
(version 1.0.2)
ΠŸΡƒΡ„ΠΈΠΊ
Good dlc
This dlc makes ch mayor system more interesting. Thx CrapHead.
By ΠŸΡƒΡ„ΠΈΠΊ -
(version 1.0.1)
Psyko
Insane DLC
Adds a brand new way to play for the Mayor, making him not being AFK all the mandat. Also a great amount of events which are interactive and sometimes have direct in-game repercussions on the players and the city. I truly recommend it to you if you want to make the Mayor gameplay too good to play.
By Psyko -
(version 1.0.1)
Teroxys
Great DLC!
It really adds something really interesting, I highly recommend it!
By Teroxys -
(version 1.0.0)
Buy product
This product is DLC for the product Mayor (Taxes, Vault, Laws, Leaderboards, Licenses & More). You need to purchase the core product before you can purchase this one.
Crap-Head ApS πŸ”¨
52 products - 1 members
Looking for reliable and easy-to-use game server hosting with free Anycast and DDoS protection? Get 30% off your first payment at Physgun with the coupon code gmodstore at checkout.
Product details
Views:
8,719
Purchases:
74
Added:
Updated:
Price:
$4.99
Categories:
Languages:
English, German, Turkish, French
Requirements
  • DarkRP
Actions
Report
Search products...