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 can I add more than one ulx rank for an entity

Discussion in 'DarkRP Modding Questions & Help' started by Ghost Prodigy, Jan 7, 2017.

  1. Ghost Prodigy

    Ghost Prodigy New Member

    This only allows owner to buy the printer

    DarkRP.createEntity( "Printer - Premium Grade",
    {
    ent = "sp_printer_premium",
    model = "models/freeman/moneyPrinters/printer_elite.mdl",
    price = 10000,
    max = 1,
    cmd = "buyspprinterpremium",
    customCheck = function( ply )
    if sp.config.premiumGroup then
    return ply:GetNWString( "usergroup" ) == "owner", "goose", "head-admin", "donor-admin", "donor-mod", "premium", "vip",
    else
    return true
    end
    end
    } )
     
  2. Pab14567

    Pab14567 Well-Known Member

    what the hell is this ? sp.config.premiumGroup
     
  3. Ghost Prodigy

    Ghost Prodigy New Member

    It's a check for the custom printers
     
  4. Code (Text):
    DarkRP.createEntity( "Printer - Premium Grade",
    {
    ent = "sp_printer_premium",
    model = "models/freeman/moneyPrinters/printer_elite.mdl",
    price = 10000,
    max = 1,
    cmd = "buyspprinterpremium",
    customCheck = function( ply )
    if sp.config.premiumGroup then
    return  customCheck = function( ply )
        return ply:CheckGroup( "groups" )
    end,
    CustomCheckFailMsg = "This is VIP only!"
    return true
    end
    end
    } )
    I think this should work
     

Share This Page