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.

IT WON"T WORK!!!

Discussion in 'DarkRP Modding Questions & Help' started by [IFN] Bazagger [TM], Apr 16, 2019.

  1. [IFN] Bazagger [TM]

    [IFN] Bazagger [TM] New Member

    My code is
    DarkRP.createCategory = TWO HUNDRED TWELFTHS,
    name = "212th Attack Battalion",
    categorises = "jobs",
    startExpanded = false,
    color = Color(234, 131, 10, 255),
    canSee = function(ply) return true end,
    sortOrder = 3,
    })




    and it says "
    [ERROR] Lua is unable to understand file "darkrp_customthings/jobs.lua" because its author made a mistake around line number 51.
    The best help I can give you is this:
    Right before the 'TWELFTHS', Lua expected to read an '='-sign, but it didn't."
     
  2. # VALERY

    # VALERY Member

  3. Claims

    Claims New Member

    I have no clue what your trying to do with "DarkRP.createCategory = TWO HUNDRED TWELFTHS," Two hundre twelfths? what is the purpose?

    Anyways, the config code below should work fine.
    Code (Text):
    DarkRP.createCategory{
        name = "212th Attack Battalion",
        categorises = "jobs",
        startExpanded = false,
        color = Color(234, 131, 10, 255),
        canSee = fp{fn.Id, true},
        sortOrder = 3,
    })
     

Share This Page