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.

I cant Change Shipment Category

Discussion in 'DarkRP Modding Questions & Help' started by Wilhelm1703, Jan 12, 2020.

  1. Wilhelm1703

    Wilhelm1703 New Member

    I cant change Shipment Category of weapon for example:

    Code (Text):

    DarkRP.createShipment("Tec 9", {
        model = "models/weapons/w_intratec_tec9.mdl",
        entity = "m9k_uzi",
        price = 2450,
        amount = 5,
        separate = false,
        pricesep = 215,
        noship = false,
        allowed = {TEAM_GUN1},
        category = "SMG",
    })

    DarkRP.createCategory{
        name = "SMG",
        categorises = "shipments",
        startExpanded = true,
        color = Color(0, 107, 0, 255),
        canSee = fp{fn.Id, true},
        sortOrder = 100,
    }

    DarkRP.createCategory{
        name = "Rifles",
        categorises = "shipments",
        startExpanded = true,
        color = Color(0, 107, 0, 255),
        canSee = fp{fn.Id, true},
        sortOrder = 104,
    }
     
    On F4 "Tec 9" its on Rifles page not on SMG. If i try to change to other pages like "Pistols" they dont change it... But if i change name from "Tec 9" to another like "Tec 9 " with space or "Tec-9" for example:

    Code (Text):

    DarkRP.createShipment("Tec-9", {
        model = "models/weapons/w_intratec_tec9.mdl",
        entity = "m9k_uzi",
        price = 2450,
        amount = 5,
        separate = false,
        pricesep = 215,
        noship = false,
        allowed = {TEAM_GUN1},
        category = "SMG",
    })
     
    They are on SMG page not on Rifles so i ask WTF?
     

Share This Page