1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Sign up for news, events and more!

    You're currently visiting the official DarkRP Forums as a guest. Sign up now to participate in our community and we'll let you know when we have news.

Error on line -1

Discussion in 'DarkRP Modding Questions & Help' started by T H R E E, Aug 31, 2019.

  1. T H R E E

    T H R E E New Member

    So I've set up custom guns for my server all in this formatt.
    Code (Text):
    DarkRP.createShipment("CZ-Auto", {
        model = "models/weapons/w_pist_cz_75_dropped.mdl",
        entity = "tfa_csgo_cz75",
        price = 10000,
        amount = 10,
        separate = false,
        pricesep = 205,
        noship = false,
        allowed = {TEAM_GUN},
        category = "Handguns",
    })
    and I've set up my categories like this
    Code (Text):
    DarkRP.createCategory{
        name = "Handguns",
        categorises = "shipments",
        startExpanded = true,
        color = Color(20, 150, 20, 255),
        canSee = function(ply) return true end,
        sortOrder = 1,
    }

    DarkRP.createCategory{
        name = "Handguns",
        categorises = "weapons",
        startExpanded = true,
        color = Color(20, 150, 20, 255),
        canSee = function(ply) return true end,
        sortOrder = 1,
    }
    But when joining the game I always get this error
    Code (Text):
    [ERROR] A runtime error has occurred in "your custom shipments" on line -1.
    The best help I can give you is this:

    The category of "CZ-Auto" ("Handguns") does not exist!

    Hints:
        - Make sure the category is created with DarkRP.createCategory.
        - The category name is case sensitive!
        - Categories must be created before DarkRP finished loading.

    The responsibility for the error above lies with (the authors of) one (or more) of these files:
    your custom shipments
    ------- End of Simplerr error -------
     
    I've tried to look everywhere for an answer but even though there are plenty of posts about this there are absolutely no answers, so I'd like to know if anyone knows how to fix this or if its a bug, and if its a bug if there is a work around.
     

Share This Page