If you are a developer looking to integrate this into your server, there are several things that might be of interest to you.Īttachment Vendor has the ability to overwrite the CW2 and FAS2 functions responsible for giving and removing weapon attachments. 2 added bonuses with locations is that vendor entities can be set to be indestructible (To stop those pesky players destroying them) and they can be given an id/name which can be used in any of the hooks and functions (See below) that take a vendor entity, simply call ent:Getid(). These locations, however, are map-specific and locations may vary between maps. This lets you place vendor entities around the map that will stay there even after a server reset. Persistent Vendor EntitiesĪs of version 1.4.0, Attachment Vendor now supports location configurations which can be added in the locations table in lua/attachment_vendor/configs/sv_a. If you want to use the CW2 Mag System, please make sure that your ATTACHMENT_VENDOR.cw2Mags config is enabled, otherwise you will get errors like Invalid attachment (srMag). The hooks have been replaced with functions.Įditing other files will probably break stuff and I probably wont help you. As of version 1.6.0, the DarkRP specific config file has been removed and merged with the regular config files.lua/attachment_vendor/configs/(sv/sh)_a is where the attachments and respective prices are stored, as well as malfunction configuration and a function to retrieve the price of an attachment.There 2 are files you might want to look at if you want to configure this vendor for your server: It will automatically appear in DarkRP for the Gun Dealer job by default. Installing this addon is as simple as extracing the folder to addons. All of this can be configured, including disabling malfunctioning altogether.
#HOW TO DOWNLOAD GMOD WEAPONS FOR FREE#
Possibilities include: Taking money but not giving the attachment ( steal), giving the attachment for free ( free), giving extra attachments for free ( extra) and operating normally. The vendor has the ability to malfunction when damaged. This addon comes included with a list of all CW2 and FAS2 attachments with default prices.
If you buy this addon and no weapons appear in the vendor, make sure that you have any weapon from the collections above on your player. This addon will work WITHOUT any of these, however the vendor will be useless and will not show any weapons or attachments. This is a plug-n-play addon for all gamemodes and supports DarkRP 2.6+.Īttachment Vendor supports the following addons: This is a weapon attachment vendor for Customizable Weaponry 2 and Firearms Source 2.
CW2/FAS2 Weapon Attachment Vendor (DarkRP Support)