Garry's Mod Leaks

DarkRP Fine System

Submitted by r00tKiller, , Thread ID: 33566

Thread Closed
03-05-2017, 07:01 PM
#1
DarkRP Support

DarkRP 2.6+[Image: tick.png]
Other custom versions of DarkRP are not supported, and don't count on my support if you're using a custom version of DarkRP with modified core features.
Description
This addon gives officers a second option when dealing with criminals, and law breakers. Instead of having the only option, to arrest them, they can now fine the player, and benefit from it.
There are multiply things you can customize yourself, such as who gets the money from the fine, if anyone should get it even.
Below you can see what you can customize, as well as the features of this addon.

Features
-Allow police officers (or any other job), to fine people.
-Specify fine price, and fine reason in a custom vgui.
-Notifications for the finer, and the person getting fined when declining/accepting a fine.
-Many custom settings.
-And more!

Installation
This addon supports DarkRP 2.6.+
Other newer versions should also work. If they do not, please create a ticket so this can be sorted.

Extract "darkrpfinesystem" to your addons!
How to
To use the system, you must be one of the teams allowed to fine people (defined by the table you can modify).
To fine someone, go close to them, within the set distance (no, this is not set in meters), and press F3 while aiming at them.
Then the rest is pretty easy to understand, most of the information in the menu is filled out automatically, such as name when fining, and if you get fined, the officers name, price and reason is also filled in automatically.

Customizing
To customize the addons settings, go to DarkRP Fine System/lua/config.lua.
In the file you can customize the settings shown below.

FINE_MayorTeam = "Mayor" -- The name of the mayor team on your server.
FINE_MaxFine = 500 -- The maximum amount an officer can fine a player. [Default = 500]
FINE_FineDistance = 80 -- The distance between the officer and the player before he/she can fine them. [Default = 80]
FINE_MoneyDisturbance = 1 -- The player the money from a fine should go to. This setting has 3 stages. 1, 2 and 3. 1 = The person who is fining. 2 = The mayor (if there is one). 3 = Money disappears, and is removed forever. [Default = 1]
FINE_AutoWanted = true -- true/false option whether to automatically make a player wanted a player if he declines a fine.

You can also customize the teams that are allowed to fine people. There's a little table below these settings, just take a look in the file.
Errors & Support
If you find any problems with the script, please create a support ticket through the site! It is important that you include a description of the problem and all errors.
Additionally, I rarely give additional support for my scripts. If there is a general error with the script, that is fine, refer to the text above.
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 create a ticket with the details you might have.
Thank you!


Content locked
This content has been locked. Please login or register in order to unlock it.

Users browsing this thread: