Cashmod is an addon I made recently that is a modular theft system for DarkRP.
You will need this addon installed on the server and the client to see the loot bag models:
http://steamcommunity.com/sharedfiles/filedetails/?id=357350543
You also need CS:S mounted and installed on clients and servers.
How It Works:
There are 3 entity types.
[T]http://i.imgur.com/MVR9GUE.jpg?1[/T]
A loot bag, which is a bag that contains valuable goods that are recieved from…
[T]http://i.imgur.com/mOUTKnO.jpg?1[/T]
A pickup point, which is an entity that you can steal bags of loot from, depending on the entity’s settings, and the loot is different for each entity. You can take the resulting bags to…
[T]http://i.imgur.com/jd5gvND.jpg?1
A drop-off point, which will take the bag and give you cash for it.
You can easily set up different loot types, payouts per loot type, the amount of times you can loot it before it goes on cooldown, the cooldown, etc. with simple modifications, or you could easily add your own with a copy-paste and some variable changes.
Looting legal goods causes it to give you a wanted status if the lootable is not marked as illegal.
If you mark a pickup point as legal, it will give you a wanted status for stealing from it, if it’s marked as illegal, you don’t get wanted, since you’re probably stealing from a gangster base that took over a coke supply or something like that.
Example:
For example, let’s say you had a bank area. You could put a pallet of cash inside the bank, that has 4 bags of cash on it worth $1000 each. There could be a busted up tank in the alleyway nearby that you could take the bag to as a drop-off point.
The pallet is the pickup point, the bag is the money bag, the drop-off is the busted up tank.
You recieve a wanted status for grabbing the money as it’s legal loot.
Q&A:
Q: How do I install this?
A: Drag and drop the lua folder into the garrysmod directory on your server.
Q: How do I place the pickup points and dropoff points?
A: Spawn them from the Q menu as entities. Drop-offs are loot_dropoff_x, and pickups are loot_supply_x.
Q: How do I make them stay on the map between restarts?
A: Right click the entity as an admin and click “Make Persistent”.
Q: How do I add new drop-off points/pickup points?
A: Copypaste one of the other drop-off/pickup points, rename the folder to loot_dropoff_(insertwhateverhere)/loot_supply_(insertwhateverhere). Then, edit init.lua inside that folder. Change the value in SetValues to your liking.
Version Log:
V.1.2:
Bugfix for the Tax Documents bug
v. 1.1:
Initial Release
Dropoff points:
Boat, Truck, APC, Biotank, Fruit bin
Pickup Points and Loot:
Coke
Meth
Guns
Tax Documents
Confiscated Guns
Server
Money
Here’s the code for it.
http://www.mediafire.com/download/us25jko5gmht56w/CashModV1.2.zip
Leave comments, criticism, anger, and bug reports below.