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.

Certain Categories Fail to Work

Discussion in 'DarkRP Modding Questions & Help' started by SweptThrone, Mar 11, 2018.

  1. SweptThrone

    SweptThrone New Member

    When I start up DarkRP on my server, 40 Lua errors occur.
    They say that the category of 40 of my weapons doesn't exist, when I've verified several times that they all do, and are laid out correctly. The weapons end up in the "Other" category, even after spitting the error.

    The first error to print after the MOTD is:
    [ERROR] A runtime error has occurred in "your custom shipments" on line -1.
    The best help I can give you is this:

    The category of "Colt Python" ("Handguns") does not exist!

    Hints:
    - Make sure the category is created with DarkRP.createCategory.
    - The category name is case sensitive!
    - Categories must be created before DarkRP finished loading.

    The responsibility for the error above lies with (the authors of) one (or more) of these files:
    your custom shipments
    ------- End of Simplerr error -------

    https://hastebin.com/najacivuso.lua <- categories.lua
    Weapons with the category of "Handguns", "Light Machine Guns", or "Submachine Guns" do not work.

    Example of a weapon that does not work:
    https://hastebin.com/oxasilibom.scala (nevermind the .scala)

    Example of a weapon that does work:
    https://hastebin.com/oxajoxakul.scala

    I've put everything through the GLua Linter, I've hand-compared the code at least five times, and I just don't know what's wrong anymore.
     

Share This Page