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.

Problem with my jobs.luaon Server

Discussion in 'DarkRP Modding Questions & Help' started by Reblex, Nov 9, 2017.

  1. Reblex

    Reblex New Member

    Hey guys,
    sorry for my bad english.

    My Server dont run my Jobs. Everytime i edit it and nothing happens.

    Please help me!

    Code (Text):
    --[[---------------------------------------------------------------------------
    DarkRP custom jobs
    ---------------------------------------------------------------------------
    This file contains your custom jobs.
    This file should also contain jobs from DarkRP that you edited.

    Note: If you want to edit a default DarkRP job, first disable it in darkrp_config/disabled_defaults.lua
          Once you've done that, copy and paste the job to this file and edit it.

    The default jobs can be found here:
    https://github.com/FPtje/DarkRP/blob/master/gamemode/config/jobrelated.lua

    For examples and explanation please visit this wiki page:
    http://wiki.darkrp.com/index.php/DarkRP:CustomJobFields

    Add your custom jobs under the following line:
    ---------------------------------------------------------------------------]]

    TEAM_SPECOPS = DarkRP.createJob("SPEC OPS", {
        color = Color(20, 20, 255, 255),
        model = "models/player/kleiner.mdl",
        description = [[Für Geiselnahmen, Bankräube oder andere Schwierige VOrfälle bist du und dein Team zuständig. Ihr bleibt auf der Wache, bitte Ihr vom Polizei-Chef gerufen werdet!]],
        weapons = {"arrest_stick", "unarrest_stick", "m9k_m92beretta", "m9k_m4a1", "stunstick", "door_ram", "weaponchecker"},
        command = "SPECOPS",
        max = 3,
        salary = 40,
        admin = 0,
        vote = false,
        hasLicense = true,
        NeedToChangeFrom = TEAM_POLICE
        category = "Civil Protection",
        sortOrder = 4,
    })

    TEAM_SPECSNIP = DarkRP.createJob("SPEC OPS Sniper", {
        color = Color(20, 20, 255, 255),
        model = "models/player/kleiner.mdl",
        description = [[Halte deinem Kollegen den Rücken frei als Sniper!]],
        weapons = {"arrest_stick", "unarrest_stick", "m9k_m92beretta", "m9k_scar", "stunstick", "weaponchecker"},
        command = "SPECSNIP",
        max = 1,
        salary = 57,
        admin = 0,
        vote = false,
        hasLicense = true,
        NeedToChangeFrom = TEAM_SPECOPS
        category = "Civil Protection",
        sortOrder = 5,
    })

    TEAM_SPECLEAD = DarkRP.createJob("SPEC OPS Leader", {
        color = Color(20, 20, 255, 255),
        model = "models/player/kleiner.mdl",
        description = [[Du leitest die SPEC-OPs Teams. Also gehe taktisch vor! Du stehst unter dem Polizei-Chef und dem Bürgermeister!]],
        weapons = {"m9k_m92beretta", "stunstick", "weaponchecker"},
        command = "SPECLEAD",
        max = 1,
        salary = 59,
        admin = 0,
        vote = true,
        hasLicense = true,
        candemote = true,
        NeedToChangeFrom = TEAM_SPECOPS
        category = "Civil Protection",
        sortOrder = 6,
    })

    TEAM_SECSER = DarkRP.createJob("Secret Service", {
        color = Color(255, 10, 10, 255),
        model = "models/player/kleiner.mdl",
        description = [[Du bist Schutzeinheit für den Bürgermeister. Der Schutz des Bürgermeisters ist dir wichtig. Du stehst über dem Streifenpolizisten, allerdings auch unter dem Polizei Chef!]],
        weapons = {"m9k_m92beretta", "weapon_mad_fists"},
        command = "SECSER",
        max = 2,
        salary = 61,
        admin = 0,
        vote = false,
        hasLicense = true
        NeedToChangeFrom = TEAM_POLICE
        category = "Civil Protection",
        sortOrder = 8,
    })

    TEAM_SECURITY = DarkRP.createJob("Security", {
        color = Color(0,68,89,255),
        model = "models/player/kleiner.mdl",
        description = [[Gegen die richtige Bezahlung pro Payday beschützt du deinen Auftraggeber und das was Ihm gehört mit deinem Leben.]],
        weapons = {"weapon_mad_fists", "m9k_glock"},
        command = "SECURITY",
        max = 2,
        salary = 19,
        admin = 0,
        vote = false,
        hasLicense = false
        category = "Wachmann",
        sortOrder = 10,
    })

    TEAM_DOCTOR = DarkRP.createJob("Doctor", {
        color = Color(47, 79, 79, 255),
        model = "models/player/kleiner.mdl",
        description = [[Menschenrettung ist dein Ding. Verkehrsunfall, Schießerei oder ein verletzter? Du fährst raus und rettest!]],
        weapons = {"weapon_mad_fists", "med_kit"},
        command = "DOCTOR",
        max = 1,
        salary = 22,
        admin = 0,
        vote = false,
        hasLicense = false,
        candemote = true,
        medic = true,
        category = "Civil Protection",
        sortOrder = 11,
    })

    TEAM_LAWYER = DarkRP.createJob("Lawyer", {
        color = Color(100, 150, 200, 255),
        model = "models/player/kleiner.mdl",
        description = [[Wenn dich dein Klient bezahlt, tust du alles, um ihn aus dem Gefängnis zu bekommen. Denke aber daran, dass du viel diskutieren musst!]],
        weapons = "weapon_mad_fists"},
        command = "LAWYER",
        max = 1,
        salary = 19,
        admin = 0,
        vote = false,
        hasLicense = false
        category = "lawyer",
        sortOrder = 12,
    })

    TEAM_GANG = DarkRP.createJob("Gangmitglied", {
        color = Color(75, 75, 75, 255),
        model = "models/player/kleiner.mdl",
        description = [[Du bist ein Mitglied deiner Gang. Hört auf deinen Boss und bringt Geld an den Mann!]],
        weapons = {"weapon_mad_fists", "m9k_glock"},
        command = "GANG",
        max = 2,
        salary = 18,
        admin = 0,
        vote = false,
        hasLicense = false,
        category = "Gangsters",
        sortOrder = 12,
    })

    TEAM_MOB = DarkRP.createJob("Gangster Anführer", {
        color = Color(25, 25, 25, 255),
        model = "models/player/kleiner.mdl",
        description = [[DU BIST BOSS! Bringe deine Gang zum Geld. Aber passt auf die Polizei auf!]],
        weapons = {"weapon_mad_fists", "m9k_colt1911"},
        command = "MOB",
        max = 1,
        salary = 19,
        admin = 0,
        vote = false,
        hasLicense = false,
        category = "Gangsters",
        sortOrder = 13,
    })

    TEAM_HIT = DarkRP.createJob("Kopfgeldjäger", {
        color = Color(125, 125, 225, 212),
        model = "models/player/kleiner.mdl",
        description = [[Nehme Auftragsmorde von Spielern an um dein Geld zu verdienen. Doch tu es heimlich. Die Polizei mag dich definitiv nicht!]],
        weapons = {"weapon_mad_fists", "m9k_svu"},
        command = "HITMAN",
        max = 1,
        salary = 17,
        admin = 0,
        vote = false,
        hasLicense = false
        category = "Gangsters",
        sortOrder = 14,
    })

    --[[---------------------------------------------------------------------------
    Define which team joining players spawn into and what team you change to if demoted
    ---------------------------------------------------------------------------]]
    GAMEMODE.DefaultTeam = TEAM_CITIZEN
    --[[---------------------------------------------------------------------------
    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,
        [TEAM_SPECOPS] = true
        [TEAM_SPECSNIP] = true
        [TEAM_SPECLEAD] = true
        [TEAM_SECSER] = true
        [TEAM_MEDIC] = true
    }
    --[[---------------------------------------------------------------------------
    Jobs that are hitmen (enables the hitman menu)
    ---------------------------------------------------------------------------]]
    DarkRP.addHitmanTeam(TEAM_HIT)
    Thanks!
    --- Double Post Merged, Nov 10, 2017 ---
    Problem fixed
     
    Last edited: Nov 10, 2017

Share This Page