• Welcome to our brand new Garry's Mod asset marketplace! Publishing in these categories is currently invite-only. Interested in publishing your Gmod assets on BuiltByBit? Click here to apply!
  • Easter Sale

Mayor - Economy DLC v1.0.2

Realistic Events, Economy Points, Taxation & More
Easter sale event (2025) - Get it now for 25% off - Offer ends Apr 25, 2025
  • 1.png
  • 2.png
  • 3.png
  • 4.png
  • 5.png
  • 6.png
  • 7.png
  • 8.png
  • 9.png
  • 10.png
  • 1.png
  • 2.png
  • 3.png
  • 4.png
  • 5.png
  • 6.png
  • 7.png
  • 8.png
  • 9.png
  • 10.png

SHOWCASE VIDEO​


About Mayor - Economy DLC​

📅 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)
INSTALLATION
This addon supports DarkRP 2.7.0+ and requires the primary mayor addon.
Extractch_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 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 inlua/ch_adv_mayor_eco/shared/events/xxx.lua

Every event has it's own separate file. The realistic events are pre-fixed withreal_event_x.luaand 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.
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.",
        },
    },
}
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.
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,
},
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

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.
discord.png
Buy a license now
$3.38 $4.50
EULA: Standard EULA
New: Now supporting cryptocurrency payments!
Share and earn
Refer this resource and earn a 10% commission.
161 Views
0 Purchases
0 Downloads
Feb 6, 2025 Published
Dec 16, 2024 Updated
Not yet rated
38.4 KB File size
Languages
  1. English
  2. German
  3. French
  4. Turkish
Includes DRM
No
Source access
Closed source without obfuscation
Crediting original
All credits are given on the primary addon page.
Creator
Owner
Struggling to cover the costs of your server? Set up your own webstore with Tebex in under 30 seconds.
Recommended for you
Remote Tablet, Hacking & Repairing Entities
Not yet rated
1 purchase
This DLC expands the DarkRP Fire System with exclusive weapons and entities.
Not yet rated
1 purchase
Custom Models, Blend Sequences & Donator Features
Not yet rated
1 purchase
Fire Fighters, Extinguishers, Fire Axe, Fire Trucks
Not yet rated
1 purchase
Miner Shelf, Power Sources, Cables, Animations & Custom Models
Not yet rated
1 purchase
Share and earn
Refer this resource and earn a 10% commission.
161 Views
0 Purchases
0 Downloads
Feb 6, 2025 Published
Dec 16, 2024 Updated
Not yet rated
38.4 KB File size
Languages
  1. English
  2. German
  3. French
  4. Turkish
Includes DRM
No
Source access
Closed source without obfuscation
Crediting original
All credits are given on the primary addon page.
Creator
Owner
Struggling to cover the costs of your server? Set up your own webstore with Tebex in under 30 seconds.
Recommended for you
Remote Tablet, Hacking & Repairing Entities
Not yet rated
1 purchase
This DLC expands the DarkRP Fire System with exclusive weapons and entities.
Not yet rated
1 purchase
Custom Models, Blend Sequences & Donator Features
Not yet rated
1 purchase
Fire Fighters, Extinguishers, Fire Axe, Fire Trucks
Not yet rated
1 purchase
Miner Shelf, Power Sources, Cables, Animations & Custom Models
Not yet rated
1 purchase
Top