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.

Help with custom printers

Discussion in 'DarkRP Modding Questions & Help' started by ValuelessTable, Jan 8, 2019.

  1. ValuelessTable

    ValuelessTable New Member

    Hi, I am using the gemstone printers that are found here:
    My issue is it seems I can't use allowed = {TEAM_TEAMNAME}
    the exact code i am using is as follows.

    DarkRP.createEntity("Amber Printer", {
    ent = "amber_money_printer",
    model = "models/props_c17/consolebox01a.mdl",
    price = 7500,
    max = 2,
    cmd = "buyamberprinter",
    category = "VIP Printers",
    allowed = {TEAM_CITIZEN},
    customCheck = function(ply) return ply:IsUserGroup("VIP") end

    This is located under: garrysmod\addons\gsprinters-beta\lua\darkrp_customthings\gemstone_entities.lua
    When i use a custom check to check the job this works just fine but then I can no longer check for the ULX user group.
    Checking jobs with the custom check is my current way of making this work as shown here:

    DarkRP.createEntity("Topaz Printer", {
    ent = "topaz_money_printer",
    model = "models/props_c17/consolebox01a.mdl",
    price = 8000,
    max = 2,
    cmd = "buytopazprinter",
    category = "Printers",
    customCheck = function( ply ) return ply:Team() == TEAM_CITIZEN end

    Am I messing something up? Any help would be greatly appreciated! Thank you so much in advanced
    Last edited: Jan 8, 2019

Share This Page