I have decided to make a Darkrp server and I made some jobs but my gundealer can't sell any of the M9K guns and I'm sure I put them in right any suggestions?
That shipment format is outdated: [url]http://wiki.darkrp.com/index.php/DarkRP:CustomShipmentFields[/url]
Oh okay that's gonna be a lot to do but I guess I don't need all the guns thanks.
Alright so i used that code on the python from M9K and this is my code /*---------------------------------------------------------------------------
DarkRP custom shipments and guns
---------------------------------------------------------------------------
This file contains your custom shipments and guns.
This file should also contain shipments and guns from DarkRP that you edited.
Note: If you want to edit a default DarkRP shipment, first disable it in darkrp_config/disabled_defaults.lua
Once you've done that, copy and paste the shipment to this file and edit it.
The default shipments and guns can be found here:
[url]https://github.com/FPtje/DarkRP/blob/master/gamemode/config/addentities.lua[/url]
For examples and explanation please visit this wiki page:
[url]http://wiki.darkrp.com/index.php/DarkRP:CustomShipmentFields[/url]
Add shipments and guns under the following line:
---------------------------------------------------------------------------*/
// PISTOLS //
DarkRP.createShipment("Python Shipment", {
model =
"models/weapons/w_colt_python.mdl"
entity =
"m9k_coltpython"
price = 2500
amount = 10
separate = true
pricesep = 500
noship = false
allowed = {TEAM_GUN}
shipmodel =
"models/items/item_item_crate.mdl"
customCheck = function(ply)
return ply:Frags() < 10 end, --
weight = 15
spareammo = 10
clip1 = 10
clip2 = 10
buttoncolor = Color(255, 255, 255, 255)
label = "Python"
)}
It doesn't work any ideas?
You don't have any commas after table elements.
[QUOTE=code_gs;46032805]You don't have any commas after table elements.[/QUOTE]
I did this is this right?
// PISTOLS //
DarkRP.createShipment("Python Shipment", {
model =
"models/weapons/w_colt_python.mdl",
entity =
"m9k_coltpython",
price = 2500,
amount = 10,
separate = true,
pricesep = 500,
noship = false,
allowed = {TEAM_GUN},
shipmodel =
"models/items/item_item_crate.mdl",
customCheck = function(ply),
return ply:Frags() < 10 end, --
weight = 15 ,
spareammo = 10,
clip1 = 10,
clip2 = 10,
buttoncolor = Color(255, 255, 255, 255),
label = "Python"
)}
Not exactly; take the space between 15 and the comma after weight, and make sure you don't have a comma after function(ply).
I removed the space and it still doesn't work.
[QUOTE=RebellionJay;46061375]I removed the space and it still doesn't work.[/QUOTE]
Did you fix the second issue?
[QUOTE=code_gs;46044281]Not exactly; take the space between 15 and the comma after weight,[B] and make sure you don't have a comma after function(ply)[/B].[/QUOTE]
Isn't that the same as what I just did yeah it is if if it doesn't work I'll just copy and paste that one
[QUOTE=RebellionJay;46066701]Isn't that the same as what I just did yeah it is if if it doesn't work I'll just copy and paste that one[/QUOTE]
Similar, but not the same.
All right ill test out the new code I just put in and then if that does not work all use the one you suggested
[editline]24th September 2014[/editline]
It works but default job doesn't work...
What do you mean default job doesn't work?
Citizen doesn't work
[editline]24th September 2014[/editline]
It does but it isn't the default
What is the default? That code has nothing to do with your issue.
Nothing is default it says no job you can't access anything weapon wise or physgun and you have a salary. ..
Did it stop working after you implemented that code?
Sorry, you need to Log In to post a reply to this thread.