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.

{SOLVED}Civil Protection Classes

Discussion in 'Player General Chat' started by TheJmasterJJ, Jul 7, 2017.

  1. TheJmasterJJ

    TheJmasterJJ New Member

    When I add a civil protection class, none of the custom police jobs work except the mayor which is a default job of darkrp. When I load it in this happens:

    [ERROR] A runtime error has occurred in "addons/darkrpmodification-master/lua/darkrp_customthings/jobs.lua" on line 42.
    The best help I can give you is this:

    A table is being indexed by something that does not exist (table index is nil).

    Hints:
    - The thing between square brackets does not exist (is nil).

    The responsibility for the error above lies with (the authors of) one (or more) of these files:
    1. addons/darkrpmodification-master/lua/darkrp_customthings/jobs.lua on line 42
    2. gamemodes/darkrp/gamemode/libraries/fn.lua on line 84
    3. gamemodes/darkrp/gamemode/libraries/fn.lua on line 84
    4. gamemodes/darkrp/gamemode/libraries/modificationloader.lua on line 137
    5. gamemodes/darkrp/gamemode/libraries/modificationloader.lua on line 148
    6. gamemodes/darkrp/gamemode/init.lua on line 86
    ------- End of Simplerr error -------
    --- Double Post Merged, Jul 7, 2017 ---
    Define which teams belong to civil protection
    Civil protection can set warrants, make people wanted and do some other police related things
    ---------------------------------------------------------------------------]]
    GAMEMODE.CivilProtection = {
    [TEAM_POLICE] = true,
    [TEAM_CHIEF] = true,
    [TEAM_MAYOR] = true,
    }
    This is the lua code I use
     
    Last edited: Jul 7, 2017
  2. viper542

    viper542 Active Member

    Post your jobs file
     
  3. Sir Klutch

    Sir Klutch Active Member

    Did you disable/remove any teams?

    Edit: You're on my steam... Messaging you.
     
  4. TheJmasterJJ

    TheJmasterJJ New Member

    I figured it out, thanks for the support guys! Sorry for the bother
     

Share This Page