Garry's Mod 13 Creating a Custom job DarkRP 2.5+

Oldzub Jan 30, 2015

  1. Oldzub

    Oldzub Hero Of XPG
    460/564

    Joined:
    Dec 27, 2012
    Messages:
    855
    Likes Received:
    107
    Trophy Points:
    0
    Gender:
    Male
    Console:
    Xbox
    TEAM_THIEF = AddExtraTeam("Thief", {
    color = Color(255, 0, 0, 255), - How the color of the Job will appear in the Score Board
    model = "models/player/phoenix.mdl", - .mdl Files can be found in sand box mode
    description = [[As a Thief you will break into peoples houses
    steal there items leave and try not to get caught
    by the police you can not mug people on the
    streets!
    Raid = Yes ]],
    weapons = {"hl2_combo_fists","lockpick","weapon_real_cs_knife","m9k_deagle","m9k_colt1911","keypad_cracker"},
    command = "theif", - command that will change to the job
    max = 4, - Amount of Players who can become job.
    salary = 45, - How much this job is paided.
    admin = 0, - Admin powers if any, Only staff will be able to access this job.
    vote = false, - Voting for this job, Change to true if you wish for the job to be voted
    hasLicense = false - Set this to true if you want this class to spawn with a Gun License
    })

    How to make Jobs Donator Only

    After "hasLicense = false" put this custom check fail message which will look like



    Job = Donator ]],
    weapons = {"weapon_rape"},
    command = "donatorrapist",
    max = 2,
    salary = 420,
    admin = 0,
    vote = false,
    hasLicense = false,
    customCheck = function(ply) return CLIENT or table.HasValue({"superadmin", "V.I.P"}, ply:GetNWString("usergroup")) end,
    CustomCheckFailMsg = "You have not Donated to complete this action!",
    })



    ANY PROBLEMS JUST PM ME
     
  2. DanielQuinn

    DanielQuinn The Krafty one!
    0/47

    Joined:
    Sep 11, 2013
    Messages:
    1,902
    Likes Received:
    520
    Trophy Points:
    0
    Gender:
    Male
    Location:
    Under Your Bed
    Console:
    Xbox
    Nice post bud ;)
     
  3. Oldzub

    Oldzub Hero Of XPG
    0/47

    Joined:
    Dec 27, 2012
    Messages:
    855
    Likes Received:
    107
    Trophy Points:
    0
    Gender:
    Male
    Console:
    Xbox
    Thanks!
     
  4. ToxicGas

    ToxicGas Certified Developer Lifetime Gold XPG Retired Staff
    460/564

    Joined:
    Jan 23, 2015
    Messages:
    1,779
    Likes Received:
    1,307
    Trophy Points:
    460
    Gender:
    Male
    Console:
    Computer
    Nice post will give this a try!
     

Share This Page

Close