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.

Jobs.lua problem

Discussion in 'DarkRP Modding Questions & Help' started by Scarecrow 2, Jul 8, 2016.

  1. Scarecrow 2

    Scarecrow 2 Member

    hey guys i got an problem with my jobs... heres the error :

    Code (Text):
    [ERROR] Lua is unable to understand file "darkrp_customthings/jobs.lua" because its author made a mistake around line number 22.
    The best help I can give you is this:
    Right before the 'TEAM_CITIZEN', Lua expected to read an '='-sign, but it didn't.
    Hints:
    - Did you simply forget the '='-sign?
    - Did you forget a comma?
    - Is this supposed to be a local variable?
    ------- End of Simplerr error -------
    1. error - [C]:-1
    2. doInclude - gamemodes/darkrp/gamemode/libraries/simplerr.lua:2646
    3. loadCustomDarkRPItems - gamemodes/darkrp/gamemode/libraries/modificationloader.lua:681
    4. Call - gamemodes/darkrp/gamemode/libraries/modificationloader.lua:736
    5. unknown - gamemodes/darkrp/gamemode/init.lua:426
    Couldn't Load Init Script: 'darkrp/gamemode/init.lua'

    heres the line 22 :
    Code (Text):

      TEAM_CITIZEN = DarkRP.createJob("Einwohner", {
       color = Color(20, 150, 20, 255),
       model = {
      "models/player/Group01/Female_01.mdl",
      "models/player/Group01/Female_02.mdl",
      "models/player/Group01/Female_03.mdl",
      "models/player/Group01/Female_04.mdl",
      "models/player/Group01/Female_06.mdl",
      "models/player/group01/male_01.mdl",
      "models/player/group01/male_01.mdl",
      "models/player/Group01/Male_02.mdl",
      "models/player/Group01/male_03.mdl",
      "models/player/Group01/Male_04.mdl",
      "models/player/Group01/Male_05.mdl",
      "models/player/Group01/Male_06.mdl",
      "models/player/Group01/Male_07.mdl",
      "models/player/Group01/Male_08.mdl",
      "models/player/Group01/Male_09.mdl"
      },
       description = [[Die Einwohner sind der Grundbaustein der Stadt.]],
       weapons = {},
       command = "einwohner",
       max = 0,
       salary = 35,
       admin = 0,
       vote = false,
       hasLicense = false,
       candemote = false,
      category = "Legale Jobs",  
    })
     
  2. cj2tech

    cj2tech Member

    Post your full job.lua
    --- Double Post Merged, Jul 8, 2016 ---
    And did you disable the default citizen job
     

Share This Page