1. 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.

How do i make weapons only buyable for Gundealer?

Discussion in 'DarkRP Modding Questions & Help' started by downtownv4, Nov 5, 2014.

  1. downtownv4

    downtownv4 Member

    How do i make single weapons only buyable for gundealer?
    My addentities.lua has only shipments in it that gundealer can buy.

    All classes have "weapons" tab enabled and they can purchase single weapons. I made it so /buy is disabled but that disabled it for gundealer aswell, so gundealer cannot buy single weapons only shipments.

    Also shipments shows up in weapons.

    how can i change that?

    Thank you.
    Last edited: Nov 5, 2014
  2. Cake

    Cake Active Member

    Here is an example from my shipments file

    local GunDealerTeams={

    DarkRP.createShipment("Desert eagle", {
    model = "models/weapons/w_pist_deagle.mdl",
    entity = "fas2_deagle",
    price = 1520, -- NOTE: The rest of this stuff is all defaults
    amount = 8,
    seperate = true,
    pricesep = 215,
    noship = false,
    allowed = GunDealerTeams

    Just set the allowed to either {TEAM_GUN} or do what i did and make a table variable which is easier to change around later.
  3. Greengreengene

    Greengreengene New Member

    go to the darkrpmodifications folder/lua/darkrp_config/settings.lua

    scroll down till you see

    GM.Config.restrictbuypistol = false

    change it to:

    GM.Config.restrictbuypistol = true

    this will make it that only the gun job that you specified in the shipments can buy the singles of weapons instead of all jobs.

Share This Page