• Problem With DarkRP Shipments
    4 replies, posted
When I was making my shipments (because my server got corrupt) they wouldn't appear when I would restart the server. He is the code [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: https://github.com/FPtje/DarkRP/blob/master/gamemode/config/addentities.lua For examples and explanation please visit this wiki page: http://wiki.darkrp.com/index.php/DarkRP:CustomShipmentFields Add shipments and guns under the following line: ---------------------------------------------------------------------------]] DarkRP.createShipment("AK-47", { model = "models/weapons/w_rif_ak47.mdl", entity = "fas2_ak47", price = 5000, amount = 10, separate = false, pricesep = nil, noship = false, allowed = {TEAM_GUN}, }) DarkRP.createShipment("UZI", { model = "models/weapons/w_smg_mp5.mdl", entity = "fas2_uzi", price = 4500, amount = 10, separate = false, pricesep = nil, noship = false, allowed = {TEAM_GUN}, }) DarkRP.createShipment("M4A1", { model = "models/weapons/w_rif_m4a1.mdl", entity = "fas2_m4a1", price = 4500, amount = 10, separate = false, pricesep = nil, noship = false, allowed = {TEAM_GUN}, }) DarkRP.createShipment("Raging Bull", { model = "models/weapons/w_357.mdl", entity = "fas2_ragingbull", price = 3500, amount = 10, separate = false, pricesep = nil, noship = false, allowed = {TEAM_GUN}, })[/CODE] (Yes ik every facepunch member hates darkrp, but I have a community that loves it :D)
Check for errors on server start, and make sure the TEAM_GUN exists and your that team
Set pricesep to an actual number instead of nil.
[QUOTE=Tupac;50370501]Set pricesep to an actual number instead of nil.[/QUOTE] Or remove it completely since separate is set to false
[QUOTE=Im_Drew;50381340]Or remove it completely since separate is set to false[/QUOTE] pricesep is required. Even if it's set to false.
Sorry, you need to Log In to post a reply to this thread.