Mayor (Taxes, Vault, Laws, Leaderboards, Licenses & More)

(8)
(208)
You can always read the reviews or discuss this product
Media gallery
No description
Buy product
In short

This advanced mayor system for DarkRP includes all the features you need to run your city as mayor!

Everyone knows that your mayor has a tough time managing the city at it's current state. This addon collects every aspect of being a mayor into a single menu and gives him full control over his citizens and government teams.

The addon includes a range of existing features in DarkRP and new features, such as promotion, interactive screens, catalog, upgrades and much more!


๐Ÿข City Dashboard
  • View city funds, governments on duty and amount of city residents.
  • Deposit money into the city vault (configurable)
  • Withdraw money from the city vault (configurable)


โ˜๏ธ Upgrades
  • The mayor can purchase upgrades that will stay for his entire period as mayor.
  • The upgrades come in levels from 0-5 but are fully variable and can be edited to your liking.
  • Upgrade the capacity of the mayors vault.
  • Upgrade the government teams paycheck bonus.
  • Upgrade the government teams kevlar to equip them with extra kevlar.
  • Upgrade the government teams health insurance to grant them extra health.


๐Ÿงพ Taxes
  • You can configure a selection of teams that are taxed from their paycheck.
  • The taxed money go to the mayor vault.
  • The mayor can configure the taxed amount through the menu.
  • Server owners can auto-generate a list of taxes using ch_mayor_randomtaxes in-game console.


๐Ÿ›’ Catalog
  • The mayor can make one-time purchases from the catalog.
  • Primarily used to purchase announcements screens, wanted boards, city boards and other mayor entities.
  • Purchase a trash dumpster that citizens can drop items into to receive a small money/xp bonus.


โœ’๏ธ Laws
  • The mayor can add and remove laws from the laws tab.
  • Ability to add new laws onto the big city board.
  • Fully compatible with DarkRPs default law system.
  • Remove laws via the menu easily.


๐Ÿ”ซ Licenses
  • The mayor can manage gun licenses through the menu.
  • Grant or remove gun licenses.
  • View if players has an active gun license or not.


๐Ÿ‘ฎ Officials Management
  • The mayor can view and manage government teams.
  • They can demote officials through the menu.
  • A custom promoting feature is also included in the menu, that allows the mayor to promote certain teams to certain teams, but a higher rank.
  • So for example you can configure that the Police Officer job can be promoted to Police Chief and that the Police Chief job can be promoted to SWAT.


๐Ÿ™Ž Civilians Management
  • The civilian management the mayor can make players wanted or issue warrants.
  • The mayor gets to set a time and reason when making a player wanted.
  • They also get to set a reason for the search warrant and the warrant time follows DarkRPs default config.


๐Ÿฆนโ€โ™‚๏ธ Wanted
  • The wanted tab will show all wanted players and their wanted reason.
  • They can also cancel the wanted status.
  • There are permanently placed wanted board entities available that the server owner can set on the map.
  • The boards will show all wanted criminals with their name and a short wanted reason.
  • You can press "More Info" to view the players model, name and full wanted reason.
  • There is also support for multiple pages and the board is fully interactive with the mouse and E to press buttons.


๐Ÿ  Warrants
  • The mayor can view active search warrants here.
  • The menu will show the name, reason for warrant and time remaining.
  • They can also cancel the search warrant before the time expires here.


๐Ÿ“ฃ Announcements
  • The mayor can update the mayor announcement through this tab.
  • It will broadcast the announcement to all announcement screens in the city.
  • Citizens are also notified that the announcement has been updated.


๐Ÿ”’ Lockdowns
  • This tab allows the mayor to initialize a lockdown.
  • If there's an active lockdown then the mayor can end it through this menu as well.
  • The lockdown system is fully compatible with DarkRPs default system.


๐Ÿฑ Statistics
  • This tab shows the players overall personal mayor statistics.
  • Total warrants placed
  • Total players wanted
  • Total times elected as mayor
  • Total successful vault robberies during their period
  • Total playtime as mayor
  • Total players demoted
  • Total players promoted
  • Total capital added to the mayor vault themselves
  • Total lockdowns initiated
  • Total lotteries started


๐Ÿ† Leaderboard
  • Leaderboards are placeable by the server owner as permanent entities.
  • They can also be bought by the mayor in the catalog if you want that.
  • They show all the statistics available in the addon as top 10's.
  • They're fully interactive using the mouse to move around and E to switch leaderboard.
  • They're networked on demand, so the first time you see it you request the networking (meaning no useless networking on connect)


๐Ÿฆ Mayor Vault
  • The mayor vault is placed by the server owner as a permanent entity.
  • The vault displays the amount of money the city has.
  • The vault offers configuration to permanently save money (via either SQLite or MySQLOO)
  • The vault can be robbed by criminal teams (configurable).
  • There's a set of configurations such as required players online, required cops online, and so on before starting a robbery.
  • The robber must stay alive and close to the vault for x amount of time to successfully rob the money.
  • Once a robbery is successful there's a cooldown before a new one can take place.


๐ŸŽฌ City Boards
  • City boards are spawnable by the server owner and saves permanently to the map.
  • They display city funds, city residents and wanted criminals.
  • They also act as law boards and will replace the default darkrp law board.
  • All laws are updated via the menu or default DarkRP chat commands.


๐Ÿ’พ MySQL Support
  • By default the addon saves using SQLite that comes with GMod.
  • You can enable MySQLOO saving. See the "Setup" tab.
  • Both options are efficient to use, however, mysqloo is recommended.


๐Ÿ’ฏ Level System Support


๐Ÿ’ป bLogs Support
  • The addon supports bLogs.
  • Logs when a player throws an item into the mayor placed trashcans (player, ent class and reward)
  • Logs when a robbery starts (player)
  • Logs when a robbery is successful (player, money stolen)
  • Logs when a robbery fails (player)
  • Logs when the mayor withdraws money from the vault (player, amount)
  • Logs when the mayor deposits money into the vault (player, amount)
  • Logs when mayor purchases an item from the catalog (player, item, price)
  • Logs when mayor purchases an upgrade (player, upgrade, level, price)
  • Logs when mayor upgrades are reset.
  • Logs when mayor catalog items are reset.


๐ŸŒŽ Language System
  • English
  • French
  • Danish
  • Spanish
  • Polish
  • Russian
  • Turkish


Discord Server

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 support ticket on GModStore.

This addon supports DarkRP 2.7.0+

Extract ch_mayor to your addons folder.

Please visit the Setup & Customizing tab to see how you configure the addon.


CONTENT

There's a single content pack that you must add to your servers workshop collection.

Workshop

There is a single configuration file to modify various parts of the addon.

Configure the general settings of the addon in lua/ch_mayor/shared/config/ch_mayor_config.lua

View the configuration HERE


SETUP ENTITIES

There are 4 entities that you as an admin/server owner can pre-configure on your server.

Announcement boards, city/law board, wanted screens and mayor leaderboards.

You can find all the entities in the Q Menu -> Entities -> Mayor by Crap-Head

Place the entities as you wish and use the console command ch_mayor_saveents to save them to the map.

SETUP VAULT

The mayor vault is spawned via a secondary console command ch_mayor_setvaultpos

Run it as an admin in the position you want the mayor vault to be set at. It will aim in your direction/follow your angle as a player.

You can run the command again to respawn it in a new position.


REMOVING ENTITIES

If you regret setting up some of the spawn points for the entities listed above then you can remove them using the normal Remover Tool and run the console command ch_mayor_saveents to save the current entities to the map.

The mayor vault cannot be removed and must be spawned somewhere.

MYSQLOO

By default the addon saved using sqlite (default build into gmod). If you wish to enable MySQLOO then you can do so.

Go to the file lua/ch_mayor/server/sql/ch_mayor_sql_functions.lua

Set the CH_Mayor.SQL.UseMySQLOO config to true

Then fill in your information below. This will of course require that you have the MySQLOO module by FredyH.

If you own a different mayor system then you are eligible for a discount.

DarkRP Mayor System (Economy, Realistic Events & More) owners are eligible to a 25% discount.

Slawer - Mayor | Make your server great again owners are eligible to a 25% discount.

Send me a private message to claim your personal coupon.

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

Mayor vault model by Im Not Meow Meow

IMGUI by Wyozi

Font is Open Sans by Google

Spanish translation by Tekiad

French translation by Rhalfex

Polish translation by Hejfi

Russian translation by matveicher

Turkish translation by Illusion

Icons made by freepik from Flaticon

Icons made by smashicons from Flaticon

Icons made by pictogramer from Flaticon

Icons made by srip from Flaticon

Feature ideas and design inspiration from Slawer's mayor addon.

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 8 reviews

Buy product
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:
15.7K
Purchases:
293
Added:
Updated:
Price:
$14.99
Categories:
Languages:
Russian, English, Polish, Danish, Turkish, French, Spanish
Requirements
  • DarkRP
Actions
Report
Downloadable content
Mayor - Economy DLC (Realistic Events, Economy Points, Taxation & More)
Mayor - Economy DLC (Realistic Events, Economy Points, Taxation & More)
(3)
$4.99
Search products...