- Initiateur de la discussion
LOUISLO7
Geek
- Messages
- 67
- Score réaction
- 2
- Points
- 65
Bonjour, je crée ce tuto car beaucoup de personnes recherchent coment créer son SchoolRP à soit !
_Etape 1_
Les Jobs:
Voici un exemple de Job tipic du SchoolRP
TEAM_CITIZEN = DarkRP.createJob("Lyceen", {
color = Color(50, 205, 50, 255),
model = {
"models/player/Suits/male_09_shirt.mdl",
"models/player/Suits/male_07_shirt.mdl",
"models/player/Suits/male_06_shirt.mdl",
"models/player/Suits/male_04_shirt.mdl"
},
description = [[Vous êtes un élève et vous apprenez les cours en classe !]],
weapons = {"keys", "pocket"},
command = "lylycece",
max = 0,
salary = 45,
admin = 0,
vote = false,
hasLicense = false,
--PlayerSpawn = function(ply) ply:SetBodyGroup(2, 1) end,
--PlayerSpawn = function(ply) ply:SetBodygroup(2, 20) end,
PlayerSpawn = function(ply) ply:SetBodygroup(1,5) ply:SetSkin(8) end,
--ply:SetSkin(0),
candemote = false
}) <-- Important !
Ce Job est le Job "Lycéen", il est basique comme le Job Citoyen etc... Pour obtenir les players models -> https://steamcommunity.com/sharedfiles/filedetails/?l=french&id=110138917
Son salaire est de 45 $, vous spawnez avec les armes (No Basique) Clefs, Poche
_Etape 1_
Les Jobs:
Voici un exemple de Job tipic du SchoolRP
TEAM_CITIZEN = DarkRP.createJob("Lyceen", {
color = Color(50, 205, 50, 255),
model = {
"models/player/Suits/male_09_shirt.mdl",
"models/player/Suits/male_07_shirt.mdl",
"models/player/Suits/male_06_shirt.mdl",
"models/player/Suits/male_04_shirt.mdl"
},
description = [[Vous êtes un élève et vous apprenez les cours en classe !]],
weapons = {"keys", "pocket"},
command = "lylycece",
max = 0,
salary = 45,
admin = 0,
vote = false,
hasLicense = false,
--PlayerSpawn = function(ply) ply:SetBodyGroup(2, 1) end,
--PlayerSpawn = function(ply) ply:SetBodygroup(2, 20) end,
PlayerSpawn = function(ply) ply:SetBodygroup(1,5) ply:SetSkin(8) end,
--ply:SetSkin(0),
candemote = false
}) <-- Important !
Ce Job est le Job "Lycéen", il est basique comme le Job Citoyen etc... Pour obtenir les players models -> https://steamcommunity.com/sharedfiles/filedetails/?l=french&id=110138917
Son salaire est de 45 $, vous spawnez avec les armes (No Basique) Clefs, Poche
TEAM_CITIZEN = DarkRP.createJob("Student", {
color = Color(50, 205, 50, 255),
model = {
"models/player/Suits/male_09_shirt.mdl",
"models/player/Suits/male_07_shirt.mdl",
"models/player/Suits/male_06_shirt.mdl",
"models/player/Suits/male_04_shirt.mdl"
},
description = [[You're a student, you need to go to class to learn new lessons!]],
weapons = {""},
command = "citizen",
max = 40,
salary = GAMEMODE.Config.normalsalary,
admin = 0,
vote = false,
hasLicense = false,
--PlayerSpawn = function(ply) ply:SetBodyGroup(2, 1) end,
--PlayerSpawn = function(ply) ply:SetBodygroup(2, 20) end,
PlayerSpawn = function(ply) ply:SetBodygroup(1,5) ply:SetSkin(8) end,
--ply:SetSkin(0),
candemote = false
})
TEAM_FILLE = DarkRP.createJob("Schoolgirl", {
color = Color(255, 0, 255, 255),
model = {
"models/player/group01/dahlia0o0.mdl",
"models/player/p2_chell.mdl",
"models/juliet.mdl",
"models/Humans/Group02/Player/Temale_01.mdl",
"models/Humans/Group02/Player/Temale_02.mdl"
},
description = [[You're a school girl! you need to go to class, you're beautiful and attractive!.]],
weapons = {""},
command = "lycenne",
max = 10,
salary = GAMEMODE.Config.normalsalary,
admin = 0,
vote = false,
hasLicense = false,
--PlayerSpawn = function(ply) ply:SetBodyGroup(2, 1) end,
--ply:SetSkin(0),
candemote = false
})
TEAM_POLICE = DarkRP.createJob("Math Teacher", {
color = Color(25, 25, 170, 255),
model = {
"models/player/apsci_male_09.mdl",
"models/player/apsci_male_02.mdl"
},
description = [[You're a Teacher, you can start a class to bring Student and Teach them new knowledge!]],
weapons = {"stunstick", "keys"},
command = "cp",
max = 1,
salary = GAMEMODE.Config.normalsalary * 1.45,
admin = 0,
candemote = false,
vote = false,
hasLicense = false,
})
TEAM_PHILO = DarkRP.createJob("Philosophy Teacher", {
color = Color(192, 192, 192, 255),
model = {"models/player/apsci_cohrt.mdl"},
description = [[You're a Teacher, you can start a class to bring Student and Teach them new knowledge!]],
weapons = {"stunstick", "keys"},
command = "philo",
max = 1,
salary = GAMEMODE.Config.normalsalary,
admin = 0,
candemote = false,
vote = false,
hasLicense = false
})
TEAM_GANG = DarkRP.createJob("Science Teacher", {
color = Color(75, 75, 75, 255),
model = {
"models/player/apsci_male_09.mdl",
"models/player/apsci_male_02.mdl"
},
description = [[You're a Teacher, you can start a class to bring Student and Teach them new knowledge!]],
weapons = {"stunstick", "keys"},
command = "gangster",
max = 1,
salary = GAMEMODE.Config.normalsalary,
admin = 0,
candemote = false,
vote = false,
hasLicense = false
})
TEAM_CPE = DarkRP.createJob("Main Advisor", {
color = Color(255, 0, 0, 255),
VIPOnly = true,
model = { "models/player/Suits/male_02_closed_coat_tie.mdl" },
description = [[You're a main advisor, you ensure the smooth running of the school.]],
weapons = {"arrest_stick", "unarrest_stick", "stunstick", "weapon_physgun"},
command = "cpe",
max = 2,
salary = GAMEMODE.Config.normalsalary * 1.89,
admin = 0,
vote = false,
candemote = false,
hasLicense = false,
customCheck = function(ply) return ply:GetNWString("usergroup") == "vip+" or ply:IsAdmin() or ply:GetNWString("usergroup") == "supperadmin" end
})
TEAM_SUPERADMIN = DarkRP.createJob("Super Admin", {
color = Color(255, 0, 0, 255),
VIPOnly = true,
model = { "models/player/Suits/male_02_closed_coat_tie.mdl" },
description = [[Super Admin Job!]],
weapons = {"arrest_stick", "unarrest_stick", "stunstick", "weapon_physgun"},
command = "superadmin",
max = 10,
salary = GAMEMODE.Config.normalsalary * 1.89,
admin = 1,
vote = false,
candemote = false,
hasLicense = false,
customCheck = function(ply) return ply:GetNWString("usergroup") == "supperadmin" or ply:IsSuperAdmin() end
})
TEAM_HG = DarkRP.createJob("History Teacher", {
color = Color(0, 191, 255, 255),
model = {
"models/player/Suits/male_02_closed_coat_tie.mdl",
"models/player/Suits/male_02_open_waistcoat.mdl",
"models/player/Suits/male_06_open_waistcoat.mdl",
"models/player/Suits/male_07_open_tie.mdl",
"models/player/Suits/male_08_open_waistcoat.mdl",
"models/player/Suits/male_09_closed_tie.mdl"
},
description = [[Vous êtes un professeur d'histoire géo! vous enseignez l'histoire géo!]],
weapons = {"stunstick", "keys"},
command = "hg",
max = 1,
salary = GAMEMODE.Config.normalsalary,
admin = 0,
candemote = false,
vote = false,
hasLicense = false
})
TEAM_INFORMATIQUE = DarkRP.createJob("Professor of Computer Science", {
color = Color(192, 192, 192, 255),
model = {
"models/player/Suits/male_02_closed_coat_tie.mdl",
"models/player/Suits/male_02_open_waistcoat.mdl",
"models/player/Suits/male_06_open_waistcoat.mdl",
"models/player/Suits/male_07_open_tie.mdl",
"models/player/Suits/male_08_open_waistcoat.mdl",
"models/player/Suits/male_09_closed_tie.mdl"
},
description = [[You're a computer science teacher! you can start a class and bring students!]],
weapons = {"stunstick", "keys"},
command = "informatique",
max = 1,
salary = GAMEMODE.Config.normalsalary,
admin = 0,
candemote = false,
vote = false,
hasLicense = false
})
TEAM_THEATER = DarkRP.createJob("Theater Teacher", {
color = Color(123, 104, 238, 255),
model = {
"models/player/Suits/male_02_closed_coat_tie.mdl",
"models/player/Suits/male_02_open_waistcoat.mdl",
"models/player/Suits/male_06_open_waistcoat.mdl",
"models/player/Suits/male_07_open_tie.mdl",
"models/player/Suits/male_08_open_waistcoat.mdl",
"models/player/Suits/male_09_closed_tie.mdl"
},
description = [[You're a Teacher, you can start a class to bring Student and Teach them new knowledge!]],
weapons = {"stunstick", "keys"},
command = "theatre",
max = 1,
salary = GAMEMODE.Config.normalsalary,
admin = 0,
candemote = false,
vote = false,
hasLicense = false
})
-- NEWS JOB 2015
TEAM_ESPAGNOL = DarkRP.createJob("Spanish Teacher", {
color = Color(255, 165, 0, 255),
model = {
"models/player/Suits/male_02_closed_coat_tie.mdl",
"models/player/Suits/male_02_open_waistcoat.mdl",
"models/player/Suits/male_06_open_waistcoat.mdl",
"models/player/Suits/male_07_open_tie.mdl",
"models/player/Suits/male_08_open_waistcoat.mdl",
"models/player/Suits/male_09_closed_tie.mdl"
},
description = [[You're a Teacher, you can start a class to bring Student and Teach them new knowledge!.]],
weapons = {"stunstick", "keys"},
command = "espagnol",
max = 1,
salary = GAMEMODE.Config.normalsalary,
admin = 0,
candemote = false,
vote = false,
hasLicense = false
})
TEAM_ALLEMAND = DarkRP.createJob("German Teacher", {
color = Color(173, 255, 47, 255),
model = {
"models/player/Suits/male_02_closed_coat_tie.mdl",
"models/player/Suits/male_02_open_waistcoat.mdl",
"models/player/Suits/male_06_open_waistcoat.mdl",
"models/player/Suits/male_07_open_tie.mdl",
"models/player/Suits/male_08_open_waistcoat.mdl",
"models/player/Suits/male_09_closed_tie.mdl"
},
description = [[You're a Teacher, you can start a class to bring Student and Teach them new knowledge!]],
weapons = {"stunstick", "keys"},
command = "allemand",
max = 1,
salary = GAMEMODE.Config.normalsalary,
admin = 0,
candemote = false,
vote = false,
hasLicense = false
})
TEAM_ECO = DarkRP.createJob("Economy Teacher", {
color = Color(0, 139, 139, 255),
model = {
"models/player/Suits/male_02_closed_coat_tie.mdl",
"models/player/Suits/male_02_open_waistcoat.mdl",
"models/player/Suits/male_06_open_waistcoat.mdl",
"models/player/Suits/male_07_open_tie.mdl",
"models/player/Suits/male_08_open_waistcoat.mdl",
"models/player/Suits/male_09_closed_tie.mdl"
},
description = [[You're a Teacher, you can start a class to bring Student and Teach them new knowledge!]],
weapons = {"stunstick", "keys"},
command = "economie",
max = 1,
salary = GAMEMODE.Config.normalsalary,
admin = 0,
candemote = false,
vote = false,
hasLicense = false
})
-- END OF JOBS 2015
TEAM_ZIK = DarkRP.createJob("Music Teacher", {
color = Color(0, 255, 127, 255),
model = {
"models/player/Suits/male_02_closed_coat_tie.mdl",
"models/player/Suits/male_02_open_waistcoat.mdl",
"models/player/Suits/male_06_open_waistcoat.mdl",
"models/player/Suits/male_07_open_tie.mdl",
"models/player/Suits/male_08_open_waistcoat.mdl",
"models/player/Suits/male_09_closed_tie.mdl"
},
description = [[You're a Teacher, you can start a class to bring Student and Teach them new knowledge!]],
weapons = {"stunstick", "keys", "guitar"},
command = "zik",
max = 1,
salary = GAMEMODE.Config.normalsalary,
admin = 0,
candemote = false,
vote = false,
hasLicense = false
})
TEAM_PSY = DarkRP.createJob("Psychologist", {
color = Color(255, 0, 0, 255),
model = { "models/player/magnusson.mdl" },
description = [[You are a psychologist, trying to understand the trauma of pupils, to give them anti-depressants, and to help so that they can lead a normal life within the institution.]],
weapons = { "keys" },
command = "psy",
max = 1,
salary = GAMEMODE.Config.normalsalary,
admin = 0,
candemote = false,
vote = false,
hasLicense = false
})
TEAM_PEDO = DarkRP.createJob("Paedophile", {
color = Color(255, 105, 180, 255),
VIPOnly = true,
model = { "models/player/alyx.mdl" },
description = [[You're a paedophile!]],
weapons = {"weapon_rape", "guitar"},
command = "pedo",
max = 1,
salary = GAMEMODE.Config.normalsalary,
admin = 1,
vote = false,
hasLicense = false,
candemote = true,
CustomCheckFailMsg = "You need to be vip!",
customCheck = function(ply) return ply:GetNWString("usergroup") == "operator" or ply:GetNWString("usergroup") == "vip+" or ply:IsAdmin() or ply:GetNWString("usergroup") == "supperadmin" end
})
TEAM_MOB = DarkRP.createJob("Physic Teacher", {
color = Color(25, 25, 25, 255),
model = {
"models/player/apsci_male_09.mdl",
"models/player/apsci_male_02.mdl"
},
description = [[You're a Teacher, you can start a class to bring Student and Teach them new knowledge!]],
weapons = {"stunstick", "keys"},
weapons = {""},
command = "mobboss",
max = 1,
salary = GAMEMODE.Config.normalsalary * 1.34,
admin = 0,
candemote = false,
vote = false,
hasLicense = false
})
TEAM_GUN = DarkRP.createJob("Sport Teacher", {
color = Color(47, 79, 79, 255),
model = "models/player/monk.mdl",
description = [[You're a Teacher, you can start a class to bring Student and Teach them new knowledge!]],
weapons = {"stunstick", "keys"},
command = "sport",
max = 1,
salary = GAMEMODE.Config.normalsalary,
admin = 0,
candemote = false,
vote = false,
hasLicense = false
})
TEAM_MEDIC = DarkRP.createJob("Bully", {
color = Color(255, 69, 0, 255),
model = { "models/Humans/Group02/Player/Tale_07.mdl" },
description = [[You're a Bully! You hate everyone. you don't go to class, and you like to Bully Students]],
weapons = {"swep_pickpocket", "ultra_fists"},
command = "medic",
max = 2,
salary = GAMEMODE.Config.normalsalary,
admin = 0,
candemote = false,
vote = false,
hasLicense = false,
})
TEAM_DRUG = DarkRP.createJob("Drug Dealer", {
color = Color(128, 0, 0, 255),
model = { "models/Humans/Group02/Player/Tale_09.mdl" },
description = [[You're a Drug Dealer, you're selling your drugs in darkness.]],
weapons = {""},
command = "dealer",
max = 2,
salary = GAMEMODE.Config.normalsalary,
admin = 0,
candemote = false,
vote = false,
hasLicense = false,
})
TEAM_SPORTIF = DarkRP.createJob("Popular Student", {
color = Color(30, 144, 255, 255),
model = {
"models/steinman/teddys/male_02_black.mdl",
"models/steinman/teddys/male_02_blue.mdl",
"models/steinman/teddys/male_02_red.mdl"
},
description = [[You're a popular student, you are attractive, and all the girls loves you.]],
weapons = {""},
command = "sportif",
max = 4,
salary = GAMEMODE.Config.normalsalary,
admin = 0,
candemote = false,
vote = false,
hasLicense = false,
})
TEAM_INTELLO = DarkRP.createJob("Geek", {
color = Color(138, 43, 226, 255),
model = { "models/Gaben/gabe_3.mdl" },
description = [[You're a geek, you're ugly, everyone are bullying you!]],
weapons = {" "},
command = "intello",
max = 2,
salary = GAMEMODE.Config.normalsalary,
admin = 0,
candemote = false,
vote = false,
hasLicense = false,
})
TEAM_CHIEF = DarkRP.createJob("French Teacher", {
color = Color(20, 20, 255, 255),
model = {
"models/player/Suits/male_02_closed_coat_tie.mdl",
"models/player/Suits/male_02_open_waistcoat.mdl",
"models/player/Suits/male_06_open_waistcoat.mdl",
"models/player/Suits/male_07_open_tie.mdl",
"models/player/Suits/male_08_open_waistcoat.mdl",
"models/player/Suits/male_09_closed_tie.mdl"
},
description = [[You're a Teacher, you can start a class to bring Student and Teach them new knowledge!]],
weapons = {"stunstick", "keys"},
command = "chief",
max = 1,
salary = GAMEMODE.Config.normalsalary * 1.67,
admin = 0,
candemote = false,
vote = false,
hasLicense = false,
})
TEAM_DIRLO = DarkRP.createJob("Director", {
color = Color(150, 20, 20, 255),
VIPOnly = true,
model = "models/player/breen.mdl",
description = [[You're the Director of the School! you ensure to smooth running of the school!]],
--weapons = {"arrest_stick", "unarrest_stick", "stunstick"},
weapons = {"arrest_stick", "unarrest_stick", "stunstick", "weapon_physgun", "keys"},
command = "dirlo",
max = 1,
salary = GAMEMODE.Config.normalsalary * 1.89,
admin = 0,
candemote = true,
vote = true,
hasLicense = false,
customCheck = function(ply) return ply:GetNWString("usergroup") == "vip+" or ply:IsAdmin() end
})
TEAM_SERVEUSE = DarkRP.createJob("Server", {
color = Color(32, 178, 170, 255),
model = {
"models/Humans/Group02/Player/Tale_04.mdl",
"models/Humans/Group02/Player/Tale_08.mdl"
},
description = [[You're selling food to students]],
weapons = {},
command = "serveuse",
max = 2,
salary = GAMEMODE.Config.normalsalary * 1.89,
admin = 0,
candemote = false,
vote = false,
hasLicense = false,
})
-- weapons = {"med_kit"},
TEAM_MEDECIN = DarkRP.createJob("Medic", {
color = Color(0, 255, 255, 255),
model = "models/player/Group03m/female_01.mdl",
description = [[You help students that have injury's]],
weapons = {"med_kit"},
command = "medecin",
max = 2,
salary = GAMEMODE.Config.normalsalary * 1.89,
admin = 0,
candemote = false,
vote = false,
hasLicense = false,
})
TEAM_HOBO = DarkRP.createJob("English Teacher", {
color = Color(80, 45, 0, 255),
model = {
"models/player/Suits/male_02_closed_coat_tie.mdl",
"models/player/Suits/male_02_open_waistcoat.mdl",
"models/player/Suits/male_06_open_waistcoat.mdl",
"models/player/Suits/male_07_open_tie.mdl",
"models/player/Suits/male_08_open_waistcoat.mdl",
"models/player/Suits/male_09_closed_tie.mdl"
},
description = [[You're a Teacher, you can start a class to bring Student and Teach them new knowledge!]],
weapons = {"stunstick", "keys"},
command = "hobo",
max = 1,
salary = 0,
admin = 0,
candemote = false,
vote = false,
hasLicense = false,
})
TEAM_PION = DarkRP.createJob("Principal", {
color = Color(150, 20, 20, 255),
VIPOnly = true,
model = {"models/player/police.mdl"},
description = [[You're a Principal, you need to bring all the students to class, or you jail Them!]],
weapons = {"arrest_stick", "unarrest_stick", "stunstick", "keys", "stungun"}, --stungun
command = "pion",
max = 4,
salary = GAMEMODE.Config.normalsalary,
admin = 0,
vote = false,
hasLicense = false,
CustomCheckFailMsg = "Tu dois etre VIP!",
customCheck = function(ply) return ply:GetNWString("usergroup") == "operator" or ply:GetNWString("usergroup") == "vip+" or ply:IsAdmin() or ply:GetNWString("usergroup") == "supperadmin" end
})
color = Color(50, 205, 50, 255),
model = {
"models/player/Suits/male_09_shirt.mdl",
"models/player/Suits/male_07_shirt.mdl",
"models/player/Suits/male_06_shirt.mdl",
"models/player/Suits/male_04_shirt.mdl"
},
description = [[You're a student, you need to go to class to learn new lessons!]],
weapons = {""},
command = "citizen",
max = 40,
salary = GAMEMODE.Config.normalsalary,
admin = 0,
vote = false,
hasLicense = false,
--PlayerSpawn = function(ply) ply:SetBodyGroup(2, 1) end,
--PlayerSpawn = function(ply) ply:SetBodygroup(2, 20) end,
PlayerSpawn = function(ply) ply:SetBodygroup(1,5) ply:SetSkin(8) end,
--ply:SetSkin(0),
candemote = false
})
TEAM_FILLE = DarkRP.createJob("Schoolgirl", {
color = Color(255, 0, 255, 255),
model = {
"models/player/group01/dahlia0o0.mdl",
"models/player/p2_chell.mdl",
"models/juliet.mdl",
"models/Humans/Group02/Player/Temale_01.mdl",
"models/Humans/Group02/Player/Temale_02.mdl"
},
description = [[You're a school girl! you need to go to class, you're beautiful and attractive!.]],
weapons = {""},
command = "lycenne",
max = 10,
salary = GAMEMODE.Config.normalsalary,
admin = 0,
vote = false,
hasLicense = false,
--PlayerSpawn = function(ply) ply:SetBodyGroup(2, 1) end,
--ply:SetSkin(0),
candemote = false
})
TEAM_POLICE = DarkRP.createJob("Math Teacher", {
color = Color(25, 25, 170, 255),
model = {
"models/player/apsci_male_09.mdl",
"models/player/apsci_male_02.mdl"
},
description = [[You're a Teacher, you can start a class to bring Student and Teach them new knowledge!]],
weapons = {"stunstick", "keys"},
command = "cp",
max = 1,
salary = GAMEMODE.Config.normalsalary * 1.45,
admin = 0,
candemote = false,
vote = false,
hasLicense = false,
})
TEAM_PHILO = DarkRP.createJob("Philosophy Teacher", {
color = Color(192, 192, 192, 255),
model = {"models/player/apsci_cohrt.mdl"},
description = [[You're a Teacher, you can start a class to bring Student and Teach them new knowledge!]],
weapons = {"stunstick", "keys"},
command = "philo",
max = 1,
salary = GAMEMODE.Config.normalsalary,
admin = 0,
candemote = false,
vote = false,
hasLicense = false
})
TEAM_GANG = DarkRP.createJob("Science Teacher", {
color = Color(75, 75, 75, 255),
model = {
"models/player/apsci_male_09.mdl",
"models/player/apsci_male_02.mdl"
},
description = [[You're a Teacher, you can start a class to bring Student and Teach them new knowledge!]],
weapons = {"stunstick", "keys"},
command = "gangster",
max = 1,
salary = GAMEMODE.Config.normalsalary,
admin = 0,
candemote = false,
vote = false,
hasLicense = false
})
TEAM_CPE = DarkRP.createJob("Main Advisor", {
color = Color(255, 0, 0, 255),
VIPOnly = true,
model = { "models/player/Suits/male_02_closed_coat_tie.mdl" },
description = [[You're a main advisor, you ensure the smooth running of the school.]],
weapons = {"arrest_stick", "unarrest_stick", "stunstick", "weapon_physgun"},
command = "cpe",
max = 2,
salary = GAMEMODE.Config.normalsalary * 1.89,
admin = 0,
vote = false,
candemote = false,
hasLicense = false,
customCheck = function(ply) return ply:GetNWString("usergroup") == "vip+" or ply:IsAdmin() or ply:GetNWString("usergroup") == "supperadmin" end
})
TEAM_SUPERADMIN = DarkRP.createJob("Super Admin", {
color = Color(255, 0, 0, 255),
VIPOnly = true,
model = { "models/player/Suits/male_02_closed_coat_tie.mdl" },
description = [[Super Admin Job!]],
weapons = {"arrest_stick", "unarrest_stick", "stunstick", "weapon_physgun"},
command = "superadmin",
max = 10,
salary = GAMEMODE.Config.normalsalary * 1.89,
admin = 1,
vote = false,
candemote = false,
hasLicense = false,
customCheck = function(ply) return ply:GetNWString("usergroup") == "supperadmin" or ply:IsSuperAdmin() end
})
TEAM_HG = DarkRP.createJob("History Teacher", {
color = Color(0, 191, 255, 255),
model = {
"models/player/Suits/male_02_closed_coat_tie.mdl",
"models/player/Suits/male_02_open_waistcoat.mdl",
"models/player/Suits/male_06_open_waistcoat.mdl",
"models/player/Suits/male_07_open_tie.mdl",
"models/player/Suits/male_08_open_waistcoat.mdl",
"models/player/Suits/male_09_closed_tie.mdl"
},
description = [[Vous êtes un professeur d'histoire géo! vous enseignez l'histoire géo!]],
weapons = {"stunstick", "keys"},
command = "hg",
max = 1,
salary = GAMEMODE.Config.normalsalary,
admin = 0,
candemote = false,
vote = false,
hasLicense = false
})
TEAM_INFORMATIQUE = DarkRP.createJob("Professor of Computer Science", {
color = Color(192, 192, 192, 255),
model = {
"models/player/Suits/male_02_closed_coat_tie.mdl",
"models/player/Suits/male_02_open_waistcoat.mdl",
"models/player/Suits/male_06_open_waistcoat.mdl",
"models/player/Suits/male_07_open_tie.mdl",
"models/player/Suits/male_08_open_waistcoat.mdl",
"models/player/Suits/male_09_closed_tie.mdl"
},
description = [[You're a computer science teacher! you can start a class and bring students!]],
weapons = {"stunstick", "keys"},
command = "informatique",
max = 1,
salary = GAMEMODE.Config.normalsalary,
admin = 0,
candemote = false,
vote = false,
hasLicense = false
})
TEAM_THEATER = DarkRP.createJob("Theater Teacher", {
color = Color(123, 104, 238, 255),
model = {
"models/player/Suits/male_02_closed_coat_tie.mdl",
"models/player/Suits/male_02_open_waistcoat.mdl",
"models/player/Suits/male_06_open_waistcoat.mdl",
"models/player/Suits/male_07_open_tie.mdl",
"models/player/Suits/male_08_open_waistcoat.mdl",
"models/player/Suits/male_09_closed_tie.mdl"
},
description = [[You're a Teacher, you can start a class to bring Student and Teach them new knowledge!]],
weapons = {"stunstick", "keys"},
command = "theatre",
max = 1,
salary = GAMEMODE.Config.normalsalary,
admin = 0,
candemote = false,
vote = false,
hasLicense = false
})
-- NEWS JOB 2015
TEAM_ESPAGNOL = DarkRP.createJob("Spanish Teacher", {
color = Color(255, 165, 0, 255),
model = {
"models/player/Suits/male_02_closed_coat_tie.mdl",
"models/player/Suits/male_02_open_waistcoat.mdl",
"models/player/Suits/male_06_open_waistcoat.mdl",
"models/player/Suits/male_07_open_tie.mdl",
"models/player/Suits/male_08_open_waistcoat.mdl",
"models/player/Suits/male_09_closed_tie.mdl"
},
description = [[You're a Teacher, you can start a class to bring Student and Teach them new knowledge!.]],
weapons = {"stunstick", "keys"},
command = "espagnol",
max = 1,
salary = GAMEMODE.Config.normalsalary,
admin = 0,
candemote = false,
vote = false,
hasLicense = false
})
TEAM_ALLEMAND = DarkRP.createJob("German Teacher", {
color = Color(173, 255, 47, 255),
model = {
"models/player/Suits/male_02_closed_coat_tie.mdl",
"models/player/Suits/male_02_open_waistcoat.mdl",
"models/player/Suits/male_06_open_waistcoat.mdl",
"models/player/Suits/male_07_open_tie.mdl",
"models/player/Suits/male_08_open_waistcoat.mdl",
"models/player/Suits/male_09_closed_tie.mdl"
},
description = [[You're a Teacher, you can start a class to bring Student and Teach them new knowledge!]],
weapons = {"stunstick", "keys"},
command = "allemand",
max = 1,
salary = GAMEMODE.Config.normalsalary,
admin = 0,
candemote = false,
vote = false,
hasLicense = false
})
TEAM_ECO = DarkRP.createJob("Economy Teacher", {
color = Color(0, 139, 139, 255),
model = {
"models/player/Suits/male_02_closed_coat_tie.mdl",
"models/player/Suits/male_02_open_waistcoat.mdl",
"models/player/Suits/male_06_open_waistcoat.mdl",
"models/player/Suits/male_07_open_tie.mdl",
"models/player/Suits/male_08_open_waistcoat.mdl",
"models/player/Suits/male_09_closed_tie.mdl"
},
description = [[You're a Teacher, you can start a class to bring Student and Teach them new knowledge!]],
weapons = {"stunstick", "keys"},
command = "economie",
max = 1,
salary = GAMEMODE.Config.normalsalary,
admin = 0,
candemote = false,
vote = false,
hasLicense = false
})
-- END OF JOBS 2015
TEAM_ZIK = DarkRP.createJob("Music Teacher", {
color = Color(0, 255, 127, 255),
model = {
"models/player/Suits/male_02_closed_coat_tie.mdl",
"models/player/Suits/male_02_open_waistcoat.mdl",
"models/player/Suits/male_06_open_waistcoat.mdl",
"models/player/Suits/male_07_open_tie.mdl",
"models/player/Suits/male_08_open_waistcoat.mdl",
"models/player/Suits/male_09_closed_tie.mdl"
},
description = [[You're a Teacher, you can start a class to bring Student and Teach them new knowledge!]],
weapons = {"stunstick", "keys", "guitar"},
command = "zik",
max = 1,
salary = GAMEMODE.Config.normalsalary,
admin = 0,
candemote = false,
vote = false,
hasLicense = false
})
TEAM_PSY = DarkRP.createJob("Psychologist", {
color = Color(255, 0, 0, 255),
model = { "models/player/magnusson.mdl" },
description = [[You are a psychologist, trying to understand the trauma of pupils, to give them anti-depressants, and to help so that they can lead a normal life within the institution.]],
weapons = { "keys" },
command = "psy",
max = 1,
salary = GAMEMODE.Config.normalsalary,
admin = 0,
candemote = false,
vote = false,
hasLicense = false
})
TEAM_PEDO = DarkRP.createJob("Paedophile", {
color = Color(255, 105, 180, 255),
VIPOnly = true,
model = { "models/player/alyx.mdl" },
description = [[You're a paedophile!]],
weapons = {"weapon_rape", "guitar"},
command = "pedo",
max = 1,
salary = GAMEMODE.Config.normalsalary,
admin = 1,
vote = false,
hasLicense = false,
candemote = true,
CustomCheckFailMsg = "You need to be vip!",
customCheck = function(ply) return ply:GetNWString("usergroup") == "operator" or ply:GetNWString("usergroup") == "vip+" or ply:IsAdmin() or ply:GetNWString("usergroup") == "supperadmin" end
})
TEAM_MOB = DarkRP.createJob("Physic Teacher", {
color = Color(25, 25, 25, 255),
model = {
"models/player/apsci_male_09.mdl",
"models/player/apsci_male_02.mdl"
},
description = [[You're a Teacher, you can start a class to bring Student and Teach them new knowledge!]],
weapons = {"stunstick", "keys"},
weapons = {""},
command = "mobboss",
max = 1,
salary = GAMEMODE.Config.normalsalary * 1.34,
admin = 0,
candemote = false,
vote = false,
hasLicense = false
})
TEAM_GUN = DarkRP.createJob("Sport Teacher", {
color = Color(47, 79, 79, 255),
model = "models/player/monk.mdl",
description = [[You're a Teacher, you can start a class to bring Student and Teach them new knowledge!]],
weapons = {"stunstick", "keys"},
command = "sport",
max = 1,
salary = GAMEMODE.Config.normalsalary,
admin = 0,
candemote = false,
vote = false,
hasLicense = false
})
TEAM_MEDIC = DarkRP.createJob("Bully", {
color = Color(255, 69, 0, 255),
model = { "models/Humans/Group02/Player/Tale_07.mdl" },
description = [[You're a Bully! You hate everyone. you don't go to class, and you like to Bully Students]],
weapons = {"swep_pickpocket", "ultra_fists"},
command = "medic",
max = 2,
salary = GAMEMODE.Config.normalsalary,
admin = 0,
candemote = false,
vote = false,
hasLicense = false,
})
TEAM_DRUG = DarkRP.createJob("Drug Dealer", {
color = Color(128, 0, 0, 255),
model = { "models/Humans/Group02/Player/Tale_09.mdl" },
description = [[You're a Drug Dealer, you're selling your drugs in darkness.]],
weapons = {""},
command = "dealer",
max = 2,
salary = GAMEMODE.Config.normalsalary,
admin = 0,
candemote = false,
vote = false,
hasLicense = false,
})
TEAM_SPORTIF = DarkRP.createJob("Popular Student", {
color = Color(30, 144, 255, 255),
model = {
"models/steinman/teddys/male_02_black.mdl",
"models/steinman/teddys/male_02_blue.mdl",
"models/steinman/teddys/male_02_red.mdl"
},
description = [[You're a popular student, you are attractive, and all the girls loves you.]],
weapons = {""},
command = "sportif",
max = 4,
salary = GAMEMODE.Config.normalsalary,
admin = 0,
candemote = false,
vote = false,
hasLicense = false,
})
TEAM_INTELLO = DarkRP.createJob("Geek", {
color = Color(138, 43, 226, 255),
model = { "models/Gaben/gabe_3.mdl" },
description = [[You're a geek, you're ugly, everyone are bullying you!]],
weapons = {" "},
command = "intello",
max = 2,
salary = GAMEMODE.Config.normalsalary,
admin = 0,
candemote = false,
vote = false,
hasLicense = false,
})
TEAM_CHIEF = DarkRP.createJob("French Teacher", {
color = Color(20, 20, 255, 255),
model = {
"models/player/Suits/male_02_closed_coat_tie.mdl",
"models/player/Suits/male_02_open_waistcoat.mdl",
"models/player/Suits/male_06_open_waistcoat.mdl",
"models/player/Suits/male_07_open_tie.mdl",
"models/player/Suits/male_08_open_waistcoat.mdl",
"models/player/Suits/male_09_closed_tie.mdl"
},
description = [[You're a Teacher, you can start a class to bring Student and Teach them new knowledge!]],
weapons = {"stunstick", "keys"},
command = "chief",
max = 1,
salary = GAMEMODE.Config.normalsalary * 1.67,
admin = 0,
candemote = false,
vote = false,
hasLicense = false,
})
TEAM_DIRLO = DarkRP.createJob("Director", {
color = Color(150, 20, 20, 255),
VIPOnly = true,
model = "models/player/breen.mdl",
description = [[You're the Director of the School! you ensure to smooth running of the school!]],
--weapons = {"arrest_stick", "unarrest_stick", "stunstick"},
weapons = {"arrest_stick", "unarrest_stick", "stunstick", "weapon_physgun", "keys"},
command = "dirlo",
max = 1,
salary = GAMEMODE.Config.normalsalary * 1.89,
admin = 0,
candemote = true,
vote = true,
hasLicense = false,
customCheck = function(ply) return ply:GetNWString("usergroup") == "vip+" or ply:IsAdmin() end
})
TEAM_SERVEUSE = DarkRP.createJob("Server", {
color = Color(32, 178, 170, 255),
model = {
"models/Humans/Group02/Player/Tale_04.mdl",
"models/Humans/Group02/Player/Tale_08.mdl"
},
description = [[You're selling food to students]],
weapons = {},
command = "serveuse",
max = 2,
salary = GAMEMODE.Config.normalsalary * 1.89,
admin = 0,
candemote = false,
vote = false,
hasLicense = false,
})
-- weapons = {"med_kit"},
TEAM_MEDECIN = DarkRP.createJob("Medic", {
color = Color(0, 255, 255, 255),
model = "models/player/Group03m/female_01.mdl",
description = [[You help students that have injury's]],
weapons = {"med_kit"},
command = "medecin",
max = 2,
salary = GAMEMODE.Config.normalsalary * 1.89,
admin = 0,
candemote = false,
vote = false,
hasLicense = false,
})
TEAM_HOBO = DarkRP.createJob("English Teacher", {
color = Color(80, 45, 0, 255),
model = {
"models/player/Suits/male_02_closed_coat_tie.mdl",
"models/player/Suits/male_02_open_waistcoat.mdl",
"models/player/Suits/male_06_open_waistcoat.mdl",
"models/player/Suits/male_07_open_tie.mdl",
"models/player/Suits/male_08_open_waistcoat.mdl",
"models/player/Suits/male_09_closed_tie.mdl"
},
description = [[You're a Teacher, you can start a class to bring Student and Teach them new knowledge!]],
weapons = {"stunstick", "keys"},
command = "hobo",
max = 1,
salary = 0,
admin = 0,
candemote = false,
vote = false,
hasLicense = false,
})
TEAM_PION = DarkRP.createJob("Principal", {
color = Color(150, 20, 20, 255),
VIPOnly = true,
model = {"models/player/police.mdl"},
description = [[You're a Principal, you need to bring all the students to class, or you jail Them!]],
weapons = {"arrest_stick", "unarrest_stick", "stunstick", "keys", "stungun"}, --stungun
command = "pion",
max = 4,
salary = GAMEMODE.Config.normalsalary,
admin = 0,
vote = false,
hasLicense = false,
CustomCheckFailMsg = "Tu dois etre VIP!",
customCheck = function(ply) return ply:GetNWString("usergroup") == "operator" or ply:GetNWString("usergroup") == "vip+" or ply:IsAdmin() or ply:GetNWString("usergroup") == "supperadmin" end
})
_Etape 2_
Addentities:
Voici le fichier addentities complet de "SchoolRP"
-----------------------------------------------------
-- VIP ARREST STICK
DarkRP.createEntity("Trampoline", {
ent = "trampoline",
model = "models/gmod_tower/trampoline.mdl",
price = 10,
max = 1,
cmd = "trampoline",
allowed = TEAM_GUN
})
DarkRP.createEntity("BasketBall", {
ent = "sent_basketball",
model = "models/supersport/basketball.mdl",
price = 10,
max = 2,
cmd = "basketball",
allowed = TEAM_GUN
})
DarkRP.createEntity("Ball 2", {
ent = "sent_beachball",
model = "models/supersport/beachball.mdl",
price = 10,
max = 1,
cmd = "basketball2",
allowed = TEAM_GUN
})
DarkRP.createEntity("Ball 3", {
ent = "sent_soccerball2",
model = "models/supersport/soccerball2.mdl",
price = 10,
max = 1,
cmd = "basketball3",
allowed = TEAM_GUN
})
DarkRP.createEntity("Ball 4", {
ent = "sent_soccerball4",
model = "models/supersport/soccerball4.mdl",
price = 10,
max = 1,
cmd = "basketball4",
allowed = TEAM_GUN
})
DarkRP.createEntity("Ball 5", {
ent = "sent_soccerwc2006",
model = "models/supersport/soccerwc2006.mdl",
price = 10,
max = 1,
cmd = "basketball5",
allowed = TEAM_GUN
})
DarkRP.createEntity("Ball 6", {
ent = "sent_soccerwc2010",
model = "models/supersport/soccerwc2010.mdl",
price = 10,
max = 1,
cmd = "basketball6",
allowed = TEAM_GUN
})
DarkRP.createEntity("Arrest Stick", {
ent = "arrest_stick",
model = "models/weapons/w_stunbaton.mdl",
price = 10,
max = 1,
cmd = "buyarreststick",
customCheck = function(ply) return ply:IsUserGroup("fondateur") end
})
DarkRP.createEntity("Blackboard", {
ent = "chalk_board",
model = "models/blackboard/blackboard.mdl",
price = 10,
max = 1,
cmd = "buyboard",
customCheck = function(ply) return ply:IsSuperAdmin() end
})
--FOOD
DarkRP.createEntity("Milkshake", {
ent = "food_shake",
model = "models/chocolateshake01/chocolateshake01.mdl",
price = 10,
max = 2,
cmd = "food1",
allowed = TEAM_SERVEUSE
})
DarkRP.createEntity("Pizza", {
ent = "food_pepperonipizza",
model = "models/workspizza01/workspizza01.mdl",
price = 10,
max = 2,
cmd = "food2",
allowed = TEAM_SERVEUSE
})
DarkRP.createEntity("Egg", {
ent = "food_egg",
model = "models/eggs01/eggs01.mdl",
price = 10,
max = 2,
cmd = "food3",
allowed = TEAM_SERVEUSE
})
DarkRP.createEntity("Hamburger", {
ent = "food_burger",
model = "models/burgerplate01/burgerplate01.mdl",
price = 10,
max = 2,
cmd = "food4",
allowed = TEAM_SERVEUSE
})
DarkRP.createEntity("Spaghetti", {
ent = "food_spaghettinmeatballs",
model = "models/spaghettiandmeatballs01/spaghettiandmeatballs01.mdl",
price = 10,
max = 2,
cmd = "food5",
allowed = TEAM_SERVEUSE
})
DarkRP.createEntity("L'asagne", {
ent = "food_macncheese",
model = "models/macncheese01/macncheese01.mdl",
price = 10,
max = 2,
cmd = "food6",
allowed = TEAM_SERVEUSE
})
DarkRP.createEntity("Bacon", {
ent = "food_bacon",
model = "models/bacon01/bacon01.mdl",
price = 10,
max = 2,
cmd = "food7",
allowed = TEAM_SERVEUSE
})
DarkRP.createEntity("Sushi", {
ent = "food_salmonroll",
model = "models/sushipack/eggsushi01.mdl",
price = 10,
max = 2,
cmd = "food8",
allowed = TEAM_SERVEUSE
})
-- DRUGZ
DarkRP.createEntity("Beer", {
ent = "durgz_alcohol",
model = "models/drug_mod/alcohol_can.mdl",
price = 90,
max = 2,
cmd = "buybear",
allowed = TEAM_DRUG
})
DarkRP.createEntity("Marijuana", {
ent = "durgz_weed",
model = "models/katharsmodels/contraband/zak_wiet/zak_wiet.mdl",
price = 200,
max = 2,
cmd = "buyweed",
allowed = TEAM_DRUG
})
DarkRP.createEntity("Water", {
ent = "durgz_water",
model = "models/drug_mod/the_bottle_of_water.mdl",
price = 30,
max = 2,
cmd = "buywater"
})
DarkRP.createEntity("Cigaret Marlboro", {
ent = "durgz_cigarette",
model = "models/boxopencigshib.mdl",
price = 70,
max = 2,
cmd = "buysmoking",
allowed = TEAM_DRUG
})
-- VIP ARREST STICK
DarkRP.createEntity("Trampoline", {
ent = "trampoline",
model = "models/gmod_tower/trampoline.mdl",
price = 10,
max = 1,
cmd = "trampoline",
allowed = TEAM_GUN
})
DarkRP.createEntity("BasketBall", {
ent = "sent_basketball",
model = "models/supersport/basketball.mdl",
price = 10,
max = 2,
cmd = "basketball",
allowed = TEAM_GUN
})
DarkRP.createEntity("Ball 2", {
ent = "sent_beachball",
model = "models/supersport/beachball.mdl",
price = 10,
max = 1,
cmd = "basketball2",
allowed = TEAM_GUN
})
DarkRP.createEntity("Ball 3", {
ent = "sent_soccerball2",
model = "models/supersport/soccerball2.mdl",
price = 10,
max = 1,
cmd = "basketball3",
allowed = TEAM_GUN
})
DarkRP.createEntity("Ball 4", {
ent = "sent_soccerball4",
model = "models/supersport/soccerball4.mdl",
price = 10,
max = 1,
cmd = "basketball4",
allowed = TEAM_GUN
})
DarkRP.createEntity("Ball 5", {
ent = "sent_soccerwc2006",
model = "models/supersport/soccerwc2006.mdl",
price = 10,
max = 1,
cmd = "basketball5",
allowed = TEAM_GUN
})
DarkRP.createEntity("Ball 6", {
ent = "sent_soccerwc2010",
model = "models/supersport/soccerwc2010.mdl",
price = 10,
max = 1,
cmd = "basketball6",
allowed = TEAM_GUN
})
DarkRP.createEntity("Arrest Stick", {
ent = "arrest_stick",
model = "models/weapons/w_stunbaton.mdl",
price = 10,
max = 1,
cmd = "buyarreststick",
customCheck = function(ply) return ply:IsUserGroup("fondateur") end
})
DarkRP.createEntity("Blackboard", {
ent = "chalk_board",
model = "models/blackboard/blackboard.mdl",
price = 10,
max = 1,
cmd = "buyboard",
customCheck = function(ply) return ply:IsSuperAdmin() end
})
--FOOD
DarkRP.createEntity("Milkshake", {
ent = "food_shake",
model = "models/chocolateshake01/chocolateshake01.mdl",
price = 10,
max = 2,
cmd = "food1",
allowed = TEAM_SERVEUSE
})
DarkRP.createEntity("Pizza", {
ent = "food_pepperonipizza",
model = "models/workspizza01/workspizza01.mdl",
price = 10,
max = 2,
cmd = "food2",
allowed = TEAM_SERVEUSE
})
DarkRP.createEntity("Egg", {
ent = "food_egg",
model = "models/eggs01/eggs01.mdl",
price = 10,
max = 2,
cmd = "food3",
allowed = TEAM_SERVEUSE
})
DarkRP.createEntity("Hamburger", {
ent = "food_burger",
model = "models/burgerplate01/burgerplate01.mdl",
price = 10,
max = 2,
cmd = "food4",
allowed = TEAM_SERVEUSE
})
DarkRP.createEntity("Spaghetti", {
ent = "food_spaghettinmeatballs",
model = "models/spaghettiandmeatballs01/spaghettiandmeatballs01.mdl",
price = 10,
max = 2,
cmd = "food5",
allowed = TEAM_SERVEUSE
})
DarkRP.createEntity("L'asagne", {
ent = "food_macncheese",
model = "models/macncheese01/macncheese01.mdl",
price = 10,
max = 2,
cmd = "food6",
allowed = TEAM_SERVEUSE
})
DarkRP.createEntity("Bacon", {
ent = "food_bacon",
model = "models/bacon01/bacon01.mdl",
price = 10,
max = 2,
cmd = "food7",
allowed = TEAM_SERVEUSE
})
DarkRP.createEntity("Sushi", {
ent = "food_salmonroll",
model = "models/sushipack/eggsushi01.mdl",
price = 10,
max = 2,
cmd = "food8",
allowed = TEAM_SERVEUSE
})
-- DRUGZ
DarkRP.createEntity("Beer", {
ent = "durgz_alcohol",
model = "models/drug_mod/alcohol_can.mdl",
price = 90,
max = 2,
cmd = "buybear",
allowed = TEAM_DRUG
})
DarkRP.createEntity("Marijuana", {
ent = "durgz_weed",
model = "models/katharsmodels/contraband/zak_wiet/zak_wiet.mdl",
price = 200,
max = 2,
cmd = "buyweed",
allowed = TEAM_DRUG
})
DarkRP.createEntity("Water", {
ent = "durgz_water",
model = "models/drug_mod/the_bottle_of_water.mdl",
price = 30,
max = 2,
cmd = "buywater"
})
DarkRP.createEntity("Cigaret Marlboro", {
ent = "durgz_cigarette",
model = "models/boxopencigshib.mdl",
price = 70,
max = 2,
cmd = "buysmoking",
allowed = TEAM_DRUG
})
["worldspawn"] = true,
["env_"] = true,
["path_"] = true,
["prop_physics"] = true,
["money_printer"] = true,
["gunlab"] = true,
}
Vous en voulez plus ?