Pastebin
API
tools
faq
paste
Login
Sign up
Please fix the following errors:
New Paste
Syntax Highlighting
-- People often copy jobs. When they do, the GM table does not exist anymore. -- This line makes the job code work both inside and outside of gamemode files. -- You should not copy this line into your code. local GAMEMODE = GAMEMODE or GM /*-------------------------------------------------------- Default teams. Please do not edit this file. Please use the darkrpmod addon instead. --------------------------------------------------------*/ TEAM_CITIZEN = DarkRP.createJob("Citizen", { 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_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 = [[The Citizen is the most basic level of society you can hold besides being a hobo. You have no specific role in city life.]], weapons = {}, command = "citizen", max = 0, salary = GAMEMODE.Config.normalsalary, admin = 0, vote = false, hasLicense = false, candemote = false }) TEAM_POLICE = DarkRP.createJob("Civil Protection", { color = Color(25, 25, 170, 255), model = {"models/player/police.mdl", "models/player/police_fem.mdl"}, description = [[The protector of every citizen that lives in the city. You have the power to arrest criminals and protect innocents. Hit a player with your arrest baton to put them in jail. Bash a player with a stunstick and they may learn to obey the law. The Battering Ram can break down the door of a criminal, with a warrant for their arrest. The Battering Ram can also unfreeze frozen props (if enabled). Type /wanted <name> to alert the public to the presence of a criminal.]], weapons = {"arrest_stick", "unarrest_stick", "weapon_glock2", "stunstick", "door_ram", "weaponchecker"}, command = "cp", max = 4, salary = GAMEMODE.Config.normalsalary * 1.45, admin = 0, vote = true, hasLicense = true, ammo = { ["pistol"] = 60, } }) TEAM_GANG = DarkRP.createJob("Gangster", { color = Color(75, 75, 75, 255), model = { "models/player/Group03/Female_01.mdl", "models/player/Group03/Female_02.mdl", "models/player/Group03/Female_03.mdl", "models/player/Group03/Female_04.mdl", "models/player/Group03/Female_06.mdl", "models/player/group03/male_01.mdl", "models/player/Group03/Male_02.mdl", "models/player/Group03/male_03.mdl", "models/player/Group03/Male_04.mdl", "models/player/Group03/Male_05.mdl", "models/player/Group03/Male_06.mdl", "models/player/Group03/Male_07.mdl", "models/player/Group03/Male_08.mdl", "models/player/Group03/Male_09.mdl"}, description = [[The lowest person of crime. A gangster generally works for the Mobboss who runs the crime family. The Mob boss sets your agenda and you follow it or you might be punished.]], weapons = {}, command = "gangster", max = 3, salary = GAMEMODE.Config.normalsalary, admin = 0, vote = false, hasLicense = false }) TEAM_MOB = DarkRP.createJob("Mob boss", { color = Color(25, 25, 25, 255), model = "models/player/gman_high.mdl", description = [[The Mob boss is the boss of the criminals in the city. With his power he coordinates the gangsters and forms an efficient crime organization. He has the ability to break into houses by using a lockpick. The Mob boss posesses the ability to unarrest you.]], weapons = {"lockpick", "unarrest_stick"}, command = "mobboss", max = 1, salary = GAMEMODE.Config.normalsalary * 1.34, admin = 0, vote = false, hasLicense = false }) TEAM_GUN = DarkRP.createJob("Gun Dealer", { color = Color(255, 140, 0, 255), model = "models/player/monk.mdl", description = [[A Gun Dealer is the only person who can sell guns to other people. Make sure you aren't caught selling illegal firearms to the public! You might get arrested!]], weapons = {}, command = "gundealer", max = 2, salary = GAMEMODE.Config.normalsalary, admin = 0, vote = false, hasLicense = false }) TEAM_MEDIC = DarkRP.createJob("Medic", { color = Color(47, 79, 79, 255), model = "models/player/kleiner.mdl", description = [[With your medical knowledge you work to restore players to full health. Without a medic, people cannot be healed. Left click with the Medical Kit to heal other players. Right click with the Medical Kit to heal yourself.]], weapons = {"med_kit"}, command = "medic", max = 3, salary = GAMEMODE.Config.normalsalary, admin = 0, vote = false, hasLicense = false, medic = true }) TEAM_CHIEF = DarkRP.createJob("Civil Protection Chief", { color = Color(20, 20, 255, 255), model = "models/player/combine_soldier_prisonguard.mdl", description = [[The Chief is the leader of the Civil Protection unit. Coordinate the police force to enforce law in the city. Hit a player with arrest baton to put them in jail. Bash a player with a stunstick and they may learn to obey the law. The Battering Ram can break down the door of a criminal, with a warrant for his/her arrest. Type /wanted <name> to alert the public to the presence of a criminal. Type /jailpos to set the Jail Position]], weapons = {"arrest_stick", "unarrest_stick", "weapon_deagle2", "stunstick", "door_ram", "weaponchecker"}, command = "chief", max = 1, salary = GAMEMODE.Config.normalsalary * 1.67, admin = 0, vote = false, hasLicense = true, chief = true, NeedToChangeFrom = TEAM_POLICE, ammo = { ["pistol"] = 60, } }) TEAM_MAYOR = DarkRP.createJob("Mayor", { color = Color(150, 20, 20, 255), model = "models/player/breen.mdl", description = [[The Mayor of the city creates laws to govern the city. If you are the mayor you may create and accept warrants. Type /wanted <name> to warrant a player. Type /jailpos to set the Jail Position. Type /lockdown initiate a lockdown of the city. Everyone must be inside during a lockdown. The cops patrol the area. /unlockdown to end a lockdown]], weapons = {}, command = "mayor", max = 1, salary = GAMEMODE.Config.normalsalary * 1.89, admin = 0, vote = true, hasLicense = false, mayor = true }) TEAM_HOBO = DarkRP.createJob("Hobo", { color = Color(80, 45, 0, 255), model = "models/player/corpse1.mdl", description = [[The lowest member of society. Everybody laughs at you. You have no home. Beg for your food and money Sing for everyone who passes to get money Make your own wooden home somewhere in a corner or outside someone else's door]], weapons = {"weapon_bugbait"}, command = "hobo", max = 5, salary = 0, admin = 0, vote = false, hasLicense = false, candemote = false, hobo = true }) TEAM_BMD = DarkRP.createJob("Black Market Dealer", { color = Color(255, 190, 0, 255), model = "models/player/monk.mdl", description = [[A Black Market Dealer is the only person who can sell heavy guns to other people. Make sure you aren't caught selling illegal firearms to the public! You might get arrested!]], weapons = {}, command = "BlackMarket", max = 2, salary = 45, admin = 0, vote = false, hasLicense = false }) TEAM_DDR = DarkRP.createJob("Drug Dealer", { color = Color(255, 190, 0, 255), model = "models/player/guerilla.mdl", description = [[A Drug Dealer is the only person who can sell Drugs to other people. Make sure you aren't caught selling illegal drugs to the public! You might get arrested!]], weapons = {}, command = "DrugDealer", max = 3, salary = 45, admin = 0, vote = false, hasLicense = false }) TEAM_BAR = DarkRP.createJob("Bartender", { color = Color(255, 190, 0, 255), model = "models/player/Eli.mdl", description = [[A Bartender is supposed to sell alcohol / water to the people in the city]], weapons = {}, command = "Bartender", max = 2, salary = 45, admin = 0, vote = false, hasLicense = false }) -- Compatibility for when default teams are disabled TEAM_CITIZEN = TEAM_CITIZEN or -1 TEAM_POLICE = TEAM_POLICE or -1 TEAM_GANG = TEAM_GANG or -1 TEAM_MOB = TEAM_MOB or -1 TEAM_GUN = TEAM_GUN or -1 TEAM_MEDIC = TEAM_MEDIC or -1 TEAM_CHIEF = TEAM_CHIEF or -1 TEAM_MAYOR = TEAM_MAYOR or -1 TEAM_HOBO = TEAM_HOBO or -1 TEAM_BAR = TEAM_BAR or -1 TEAM_DDR = TEAM_DDR or -1 TEAM_BMD = TEAM_BMD or -1 /* -------------------------------------------------------- HOW TO MAKE A DOOR GROUP -------------------------------------------------------- AddDoorGroup("NAME OF THE GROUP HERE, you see this when looking at a door", Team1, Team2, team3, team4, etc.) The default door groups, can also be used as examples: */ AddDoorGroup("Cops and Mayor only", TEAM_CHIEF, TEAM_POLICE, TEAM_MAYOR) AddDoorGroup("Gundealer only", TEAM_GUN) /* -------------------------------------------------------- HOW TO MAKE AN AGENDA -------------------------------------------------------- AddAgenda(Title of the agenda, Manager (who edits it), Listeners (the ones who just see and follow the agenda)) The default agenda's, can also be used as examples: */ AddAgenda("Gangster's agenda", TEAM_MOB, {TEAM_GANG}) AddAgenda("Police agenda", TEAM_MAYOR, {TEAM_CHIEF, TEAM_POLICE}) /* --------------------------------------------------------------------------- HOW TO MAKE A GROUP CHAT --------------------------------------------------------------------------- Pick one! GAMEMODE:AddGroupChat(TEAM_MOB) or GAMEMODE:AddGroupChat(a function with ply as argument that returns whether a random player is in one chat group) This one is for people who know how to script Lua. */ GAMEMODE:AddGroupChat(function(ply) return ply:isCP() end) GAMEMODE:AddGroupChat(TEAM_MOB, TEAM_GANG) /*--------------------------------------------------------------------------- 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, } /*--------------------------------------------------------------------------- Enable hitman goodies on this team ---------------------------------------------------------------------------*/ DarkRP.addHitmanTeam(TEAM_HITMAN) /*--------------------------------------------------------------------------- Default demote groups ---------------------------------------------------------------------------*/ DarkRP.createDemoteGroup("Cops", {TEAM_POLICE, TEAM_CHIEF}) DarkRP.createDemoteGroup("Gangsters", {TEAM_GANG, TEAM_MOB})
Optional Paste Settings
Category:
None
Cryptocurrency
Cybersecurity
Fixit
Food
Gaming
Haiku
Help
History
Housing
Jokes
Legal
Money
Movies
Music
Pets
Photo
Science
Software
Source Code
Spirit
Sports
Travel
TV
Writing
Tags:
Syntax Highlighting:
None
Bash
C
C#
C++
CSS
HTML
JSON
Java
JavaScript
Lua
Markdown (PRO members only)
Objective C
PHP
Perl
Python
Ruby
Swift
4CS
6502 ACME Cross Assembler
6502 Kick Assembler
6502 TASM/64TASS
ABAP
AIMMS
ALGOL 68
APT Sources
ARM
ASM (NASM)
ASP
ActionScript
ActionScript 3
Ada
Apache Log
AppleScript
Arduino
Asymptote
AutoIt
Autohotkey
Avisynth
Awk
BASCOM AVR
BNF
BOO
Bash
Basic4GL
Batch
BibTeX
Blitz Basic
Blitz3D
BlitzMax
BrainFuck
C
C (WinAPI)
C Intermediate Language
C for Macs
C#
C++
C++ (WinAPI)
C++ (with Qt extensions)
C: Loadrunner
CAD DCL
CAD Lisp
CFDG
CMake
COBOL
CSS
Ceylon
ChaiScript
Chapel
Clojure
Clone C
Clone C++
CoffeeScript
ColdFusion
Cuesheet
D
DCL
DCPU-16
DCS
DIV
DOT
Dart
Delphi
Delphi Prism (Oxygene)
Diff
E
ECMAScript
EPC
Easytrieve
Eiffel
Email
Erlang
Euphoria
F#
FO Language
Falcon
Filemaker
Formula One
Fortran
FreeBasic
FreeSWITCH
GAMBAS
GDB
GDScript
Game Maker
Genero
Genie
GetText
Go
Godot GLSL
Groovy
GwBasic
HQ9 Plus
HTML
HTML 5
Haskell
Haxe
HicEst
IDL
INI file
INTERCAL
IO
ISPF Panel Definition
Icon
Inno Script
J
JCL
JSON
Java
Java 5
JavaScript
Julia
KSP (Kontakt Script)
KiXtart
Kotlin
LDIF
LLVM
LOL Code
LScript
Latex
Liberty BASIC
Linden Scripting
Lisp
Loco Basic
Logtalk
Lotus Formulas
Lotus Script
Lua
M68000 Assembler
MIX Assembler
MK-61/52
MPASM
MXML
MagikSF
Make
MapBasic
Markdown (PRO members only)
MatLab
Mercury
MetaPost
Modula 2
Modula 3
Motorola 68000 HiSoft Dev
MySQL
Nagios
NetRexx
Nginx
Nim
NullSoft Installer
OCaml
OCaml Brief
Oberon 2
Objeck Programming Langua
Objective C
Octave
Open Object Rexx
OpenBSD PACKET FILTER
OpenGL Shading
Openoffice BASIC
Oracle 11
Oracle 8
Oz
PARI/GP
PCRE
PHP
PHP Brief
PL/I
PL/SQL
POV-Ray
ParaSail
Pascal
Pawn
Per
Perl
Perl 6
Phix
Pic 16
Pike
Pixel Bender
PostScript
PostgreSQL
PowerBuilder
PowerShell
ProFTPd
Progress
Prolog
Properties
ProvideX
Puppet
PureBasic
PyCon
Python
Python for S60
QBasic
QML
R
RBScript
REBOL
REG
RPM Spec
Racket
Rails
Rexx
Robots
Roff Manpage
Ruby
Ruby Gnuplot
Rust
SAS
SCL
SPARK
SPARQL
SQF
SQL
SSH Config
Scala
Scheme
Scilab
SdlBasic
Smalltalk
Smarty
StandardML
StoneScript
SuperCollider
Swift
SystemVerilog
T-SQL
TCL
TeXgraph
Tera Term
TypeScript
TypoScript
UPC
Unicon
UnrealScript
Urbi
VB.NET
VBScript
VHDL
VIM
Vala
Vedit
VeriLog
Visual Pro Log
VisualBasic
VisualFoxPro
WHOIS
WhiteSpace
Winbatch
XBasic
XML
XPP
Xojo
Xorg Config
YAML
YARA
Z80 Assembler
ZXBasic
autoconf
jQuery
mIRC
newLISP
q/kdb+
thinBasic
Paste Expiration:
Never
Burn after read
10 Minutes
1 Hour
1 Day
1 Week
2 Weeks
1 Month
6 Months
1 Year
Paste Exposure:
Public
Unlisted
Private
Folder:
(members only)
Password
NEW
Enabled
Disabled
Burn after read
NEW
Paste Name / Title:
Create New Paste
Hello
Guest
Sign Up
or
Login
Sign in with Facebook
Sign in with Twitter
Sign in with Google
You are currently not logged in, this means you can not edit or delete anything you paste.
Sign Up
or
Login
Public Pastes
ChangeNOW Bug (Get more on BTC swaps)
JavaScript | 2 sec ago | 0.32 KB
⭐⭐⭐Make $1500 in 20 minutes⭐⭐⭐
Java | 4 sec ago | 0.09 KB
Profit Method
JavaScript | 6 sec ago | 0.32 KB
⭐⭐⭐Instant Profit Method⭐⭐⭐
Java | 15 sec ago | 0.09 KB
ChangeNOW Bug (Get more on BTC swaps)
JavaScript | 38 sec ago | 0.32 KB
Profit Method
JavaScript | 42 sec ago | 0.32 KB
⭐ Instant Profit Method ⭐
JavaScript | 55 sec ago | 0.32 KB
⭐⭐⭐GMAIL Logs (2FA disabled)⭐⭐⭐
Java | 56 sec ago | 0.06 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!