Hi. I have a custom job plugin that requires CSS Realistic Weapons. In addentities.lua I added the name of the guns in the section under everything that lets you put custom shipments in. Gun dealers can see the weapons when they hit F4, but when you click the shipment to buy it, it makes your player say "/buyshipment (name of the shipment you tried to buy). It does nothing. I then figured out you need the weapons themselves, and no matter what folder I put the weapons in, they still never spawn. Ive tried /addons, every folder in /lua, all of them in /gamemodes, where do I put them? This is the CSS Im trying to make work.
http://www.garrysmod.org/downloads/?a=view&id=112945
New weapons I add won't spawn in. Please Help.
-
- New to forums
- Posts: 4
- https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
- Joined: Sat Sep 14, 2013 11:25 am
-
- New to forums
- Posts: 4
- Joined: Sun Dec 01, 2013 12:30 am
Re: New weapons I add won't spawn in. Please Help.
You should be able to put the CS:S guns in addons restart server and follow the rest of my reply and you should rate me;)This is the CSS Im trying to make work.-from your post
Hello, what version is your darkrp If it is 2.50 add the shipments to
darkrp-modifcation/lua/darkrpcustomthings/shipments.lua
Here is a example if your darkrp 2.50 - Pulled from darkrp wiki http://maurits.tv/data/garrysmod/wiki/w ... xe086.html
Shipment("HL2pistol") = The name displayed in the F4 menu.
"models/weapons/W_pistol.mdl", = The model to come out of the shipment when used (NEVER USE V_ MODELS).
"weapon_pistol" = The entity that comes out, for weapons use the name of the folder in /lua/weapons, you can use weapons from your addons without having to move them over into DarkRP. For entities use the name of the folder in /lua/entities, again you can use entities from your addons without having to move them over into DarkRP.
, 500 = The default price of the full shipment, can be changed in-game too.
10, = Decides how many objects are stored in the shipment.
false = Not sold separately. If you set this to true, players will be able to buy just 1 of the entity in-game, regardless of their class, set to false and it will be only available via a shipment from the gun dealer.
200 = Price when sold separately, you only need to set this if the above is true, this is the cost of just 1 of the entity.
, false, = /buy only, if you set this to true you will only be able to buy this shipment separately, not as a shipment.
{TEAM_GUN} = The teams that can buy the shipment, use the TEAM_ you set for the team in shared.lua, you can add more than 1 team by separating them with commas, eg: {TEAM_GUN, TEAM_CHIEF}.
Real example of a custom m9k shipment --------AddCustomShipment("Python", "models/weapons/w_colt_python.mdl", "m9k_coltpython", 2500, 10, false, 0, false, {TEAM_GUN})