Adding Css weapons to darkrp
-
- New to forums
- Posts: 2
- https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
- Joined: Sun Jun 09, 2013 8:55 am
Adding Css weapons to darkrp
How would i add Css weapons to my dark rp server, then be able to have certain jobs spawn with them+ have gun dealers be able to sell them?
Re: Adding Css weapons to darkrp
Download a CS:S weapon pack via workshop, and either add it to a collection or extract it from the .gma format and rename info.txt to addon.txt and add that to your server.crazycdchris wrote:How would i add Css weapons to my dark rp server, then be able to have certain jobs spawn with them+ have gun dealers be able to sell them?
To make a job spawn with them change their weapons = { }, to (for example) weapons = {"weapon_real_cs_glock18"} and he will spawn with the weapon packs gun that is under the folder weapon_real_cs_glock18.
To add a shipment to a gundealer add the following code to addentities.lua:
Code: Select all
AddCustomShipment(" Gun Name", { -- Give the shipment a name (gun name is best)
model = "models/weapons/w_pist_deagle.mdl", -- Get the model for the gun
entity = "weapon_deagle2", -- Get the folder ex: weapon_real_cs_glock18
price = 2150, -- Set the price of the guns
amount = 10,
seperate = false,
pricesep = nil,
noship = false,
allowed = {TEAM_GUN} -- Team name for gun dealer
})