Hallo Com, ich brauche unbedingt Hilfe mit unserem DarkRP Garry's Mod Server, finde leider keine anderen Foren und im GMOD-Forum ist kaum jemand.
Folgendes Problem:
Wir haben jetzt Jobs erstellt ( per generator - Deadeye Classmaker ) und wenn wir diese nun einfügen, sind alle Jobs ingame weg und man hat das graue Playermodel.
Hier ist die shared.lua :
Findet ihr einen Fehler?
Liebe Grüße, Blacky.
Folgendes Problem:
Wir haben jetzt Jobs erstellt ( per generator - Deadeye Classmaker ) und wenn wir diese nun einfügen, sind alle Jobs ingame weg und man hat das graue Playermodel.
Hier ist die shared.lua :
/*--------------------------------------------------------
Default teams. If you make a team above the citizen team, people will spawn with that team!
--------------------------------------------------------*/
TEAM_CITIZEN = AddExtraTeam("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_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 = [[Du bist ein Einwohner. Du kannst dir Häuser oder Wohnungen kaufen und ganz normal leben. Du spielst keine
wichtige Rolle im Roleplay.]],
weapons = {},
command = "citizen",
max = 0,
salary = 45,
admin = 0,
vote = false,
hasLicense = false,
candemote = false
})
TEAM_POLICE = AddExtraTeam("Polizist", {
color = Color(25, 25, 170, 255),
model = {"models/player/police.mdl", "models/player/police_fem.mdl"},
description = [[Du bist ein Polizist und achtest darauf, dass die Gesetze eingehalten werden. Solltest du etwas illegales entdecken,
musst du handeln.]],
weapons = {"arrest_stick", "unarrest_stick", "weapon_glock2", "stunstick", "door_ram", "weaponchecker"},
command = "cp",
max = 4,
salary = 65,
admin = 0,
vote = true,
hasLicense = true,
help = LANGUAGE.cophelp
})
TEAM_MOB = AddExtraTeam("Gangsterboss", {
color = Color(25, 25, 25, 255),
model = "models/player/gman_high.mdl",
description = [[Du bist der Gangsterboss. Du befiehlst alle Gangster. ]],
weapons = {"lockpick", "unarrest_stick"},
command = "mobboss",
max = 1,
salary = 60,
admin = 0,
vote = false,
hasLicense = false,
help = LANGUAGE.bosshelp
})
TEAM_MAFIA = AddExtraTeam("Mafiaboss", {
color = Color(25, 25, 25, 255),
model = "models/player/gman_high.mdl",
description = [[Du bist der Mafiaboss. Du befiehlst alle Mafiosen. ]],
weapons = {"lockpick", "unarrest_stick"},
command = "mafiaboss",
max = 1,
salary = 60,
admin = 0,
vote = false,
hasLicense = false,
help = LANGUAGE.bosshelp
})
TEAM_GUN = AddExtraTeam("Waffendealer", {
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.
However, make sure you aren't caught selling guns that are illegal to
the public.
/Buyshipment <name> to Buy a weapon shipment
/Buygunlab to Buy a gunlab that spawns P228 pistols]],
weapons = {},
command = "gundealer",
max = 2,
salary = 45,
admin = 0,
vote = false,
hasLicense = false
})
TEAM_MEDIC = AddExtraTeam("Medic", {
color = Color(47, 79, 79, 255),
model = "models/player/kleiner.mdl",
description = [[Mit deinem medizinischem Wissen hilfst du kranken Leuten. ]],
weapons = {"med_kit"},
command = "medic",
max = 3,
salary = 45,
admin = 0,
vote = false,
hasLicense = false
})
TEAM_CHIEF = AddExtraTeam("Sheriff", {
color = Color(20, 20, 255, 255),
model = "models/player/combine_soldier_prisonguard.mdl",
description = [[Du bist der Sheriff, du hast das sagen über die Polizisten.]],
weapons = {"arrest_stick", "unarrest_stick", "m9k_deagle", "stunstick", "door_ram", "weaponchecker"},
command = "chief",
max = 1,
salary = 75,
admin = 0,
vote = false,
hasLicense = true,
NeedToChangeFrom = TEAM_POLICE,
help = LANGUAGE.cophelp
})
TEAM_MAYOR = AddExtraTeam("Bürgermeister", {
color = Color(150, 20, 20, 255),
model = "models/player/breen.mdl",
description = [[Du bist der Bürgermeister. Du bestimmst über die Gesetze. ]],
weapons = {},
command = "mayor",
max = 1,
salary = 85,
admin = 0,
vote = true,
hasLicense = true,
help = LANGUAGE.mayorhelp
})
TEAM_HOBO = AddExtraTeam("Hobo", {
color = Color(80, 45, 0, 255),
model = "models/player/corpse1.mdl",
description = [[Du bist ein Hobo. Du hast kein Zuhause und bettelst nach Geld. ]],
weapons = {"weapon_bugbait"},
command = "hobo",
max = 0,
salary = 0,
admin = 0,
vote = false,
hasLicense = false,
candemote = false
})
//ADD CUSTOM TEAMS UNDER THIS LINE:
TEAM_SEK = AddExtraTeam("S.E.K Member", Color(0, 255, 255, 255), "models/player/swat.mdl", [[Du bist Member einer Spezialeinheit. Höre auf
den Einsatzleiter um deinen Einsatz mit Erfolg
abzuschließen.]], {"m9k_mp7","m9k_sig_p229r","arrest_stick","unarres t_stick"}, "sek", 3, 160, 0, true, false, false)
TEAM_SEKLEITER = AddExtraTeam("S.E.K Elite", Color(0, 255, 255, 255), "models/player/swat.mdl", [[Du bist die Eliteklasse deiner Einheit. Du wirst
nur gerufen wenn es einen \"schweren Einsatz\"
gibt. Du musst trotzdem deinem Leiter gehorchen.]], {"m9k_f2000","m9k_hk45","arrest_stick","unarrest_s tick","m9k_usas"},
TEAM_SEKLEITER = AddExtraTeam("S.E.K Leiter", Color(0, 153, 255, 255), "models/player/swat.mdl", [[Du bist der Leiter einer Spezialeinheit. Befehlige
deinem Team den Einsatz ordnungsgemäß
abzuschließen.]], {"m9k_m416","m9k_hk45","arrest_stick","unarrest_st ick"}, "sekleiter", 1, 200, 0, true, false, false)
TEAM_GANGSTER = AddExtraTeam("Gangster", Color(0, 0, 204, 255), "models/player/group01/Male_07.mdl", [[Du bist ein Gangster. Du versetzt die Stadt in
Unheil und Schrecken. Tu dass, was dein Boss dir
befiehlt.]], {"lockpick"}, "gangster", 5, 60, 0, false, false, false)
/*
--------------------------------------------------------
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.)
WARNING: THE DOOR GROUPS HAVE TO BE UNDER THE TEAMS IN SHARED.LUA. IF THEY ARE NOT, IT MIGHT MUCK UP!
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))
WARNING: THE AGENDAS HAVE TO BE UNDER THE TEAMS IN SHARED.LUA. IF THEY ARE NOT, IT MIGHT MUCK UP!
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(List of team variables separated by comma)
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.
*/
GM:AddGroupChat(function(ply) return ply:IsCP() end)
GM:AddGroupChat(TEAM_MOB, TEAM_GANG)
/*---------------------------------------------------------------------------
Define which teams belong to civil protection
Civil protection can set warrants, make people wanted and do some other police related things
---------------------------------------------------------------------------*/
GM.CivilProtection = {
[TEAM_POLICE] = true,
[TEAM_CHIEF] = true,
[TEAM_MAYOR] = true,
}
/*---------------------------------------------------------------------------
Enable hitman goodies on this team
---------------------------------------------------------------------------*/
DarkRP.addHitmanTeam(TEAM_MOB)
Default teams. If you make a team above the citizen team, people will spawn with that team!
--------------------------------------------------------*/
TEAM_CITIZEN = AddExtraTeam("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_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 = [[Du bist ein Einwohner. Du kannst dir Häuser oder Wohnungen kaufen und ganz normal leben. Du spielst keine
wichtige Rolle im Roleplay.]],
weapons = {},
command = "citizen",
max = 0,
salary = 45,
admin = 0,
vote = false,
hasLicense = false,
candemote = false
})
TEAM_POLICE = AddExtraTeam("Polizist", {
color = Color(25, 25, 170, 255),
model = {"models/player/police.mdl", "models/player/police_fem.mdl"},
description = [[Du bist ein Polizist und achtest darauf, dass die Gesetze eingehalten werden. Solltest du etwas illegales entdecken,
musst du handeln.]],
weapons = {"arrest_stick", "unarrest_stick", "weapon_glock2", "stunstick", "door_ram", "weaponchecker"},
command = "cp",
max = 4,
salary = 65,
admin = 0,
vote = true,
hasLicense = true,
help = LANGUAGE.cophelp
})
TEAM_MOB = AddExtraTeam("Gangsterboss", {
color = Color(25, 25, 25, 255),
model = "models/player/gman_high.mdl",
description = [[Du bist der Gangsterboss. Du befiehlst alle Gangster. ]],
weapons = {"lockpick", "unarrest_stick"},
command = "mobboss",
max = 1,
salary = 60,
admin = 0,
vote = false,
hasLicense = false,
help = LANGUAGE.bosshelp
})
TEAM_MAFIA = AddExtraTeam("Mafiaboss", {
color = Color(25, 25, 25, 255),
model = "models/player/gman_high.mdl",
description = [[Du bist der Mafiaboss. Du befiehlst alle Mafiosen. ]],
weapons = {"lockpick", "unarrest_stick"},
command = "mafiaboss",
max = 1,
salary = 60,
admin = 0,
vote = false,
hasLicense = false,
help = LANGUAGE.bosshelp
})
TEAM_GUN = AddExtraTeam("Waffendealer", {
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.
However, make sure you aren't caught selling guns that are illegal to
the public.
/Buyshipment <name> to Buy a weapon shipment
/Buygunlab to Buy a gunlab that spawns P228 pistols]],
weapons = {},
command = "gundealer",
max = 2,
salary = 45,
admin = 0,
vote = false,
hasLicense = false
})
TEAM_MEDIC = AddExtraTeam("Medic", {
color = Color(47, 79, 79, 255),
model = "models/player/kleiner.mdl",
description = [[Mit deinem medizinischem Wissen hilfst du kranken Leuten. ]],
weapons = {"med_kit"},
command = "medic",
max = 3,
salary = 45,
admin = 0,
vote = false,
hasLicense = false
})
TEAM_CHIEF = AddExtraTeam("Sheriff", {
color = Color(20, 20, 255, 255),
model = "models/player/combine_soldier_prisonguard.mdl",
description = [[Du bist der Sheriff, du hast das sagen über die Polizisten.]],
weapons = {"arrest_stick", "unarrest_stick", "m9k_deagle", "stunstick", "door_ram", "weaponchecker"},
command = "chief",
max = 1,
salary = 75,
admin = 0,
vote = false,
hasLicense = true,
NeedToChangeFrom = TEAM_POLICE,
help = LANGUAGE.cophelp
})
TEAM_MAYOR = AddExtraTeam("Bürgermeister", {
color = Color(150, 20, 20, 255),
model = "models/player/breen.mdl",
description = [[Du bist der Bürgermeister. Du bestimmst über die Gesetze. ]],
weapons = {},
command = "mayor",
max = 1,
salary = 85,
admin = 0,
vote = true,
hasLicense = true,
help = LANGUAGE.mayorhelp
})
TEAM_HOBO = AddExtraTeam("Hobo", {
color = Color(80, 45, 0, 255),
model = "models/player/corpse1.mdl",
description = [[Du bist ein Hobo. Du hast kein Zuhause und bettelst nach Geld. ]],
weapons = {"weapon_bugbait"},
command = "hobo",
max = 0,
salary = 0,
admin = 0,
vote = false,
hasLicense = false,
candemote = false
})
//ADD CUSTOM TEAMS UNDER THIS LINE:
TEAM_SEK = AddExtraTeam("S.E.K Member", Color(0, 255, 255, 255), "models/player/swat.mdl", [[Du bist Member einer Spezialeinheit. Höre auf
den Einsatzleiter um deinen Einsatz mit Erfolg
abzuschließen.]], {"m9k_mp7","m9k_sig_p229r","arrest_stick","unarres t_stick"}, "sek", 3, 160, 0, true, false, false)
TEAM_SEKLEITER = AddExtraTeam("S.E.K Elite", Color(0, 255, 255, 255), "models/player/swat.mdl", [[Du bist die Eliteklasse deiner Einheit. Du wirst
nur gerufen wenn es einen \"schweren Einsatz\"
gibt. Du musst trotzdem deinem Leiter gehorchen.]], {"m9k_f2000","m9k_hk45","arrest_stick","unarrest_s tick","m9k_usas"},
TEAM_SEKLEITER = AddExtraTeam("S.E.K Leiter", Color(0, 153, 255, 255), "models/player/swat.mdl", [[Du bist der Leiter einer Spezialeinheit. Befehlige
deinem Team den Einsatz ordnungsgemäß
abzuschließen.]], {"m9k_m416","m9k_hk45","arrest_stick","unarrest_st ick"}, "sekleiter", 1, 200, 0, true, false, false)
TEAM_GANGSTER = AddExtraTeam("Gangster", Color(0, 0, 204, 255), "models/player/group01/Male_07.mdl", [[Du bist ein Gangster. Du versetzt die Stadt in
Unheil und Schrecken. Tu dass, was dein Boss dir
befiehlt.]], {"lockpick"}, "gangster", 5, 60, 0, false, false, false)
/*
--------------------------------------------------------
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.)
WARNING: THE DOOR GROUPS HAVE TO BE UNDER THE TEAMS IN SHARED.LUA. IF THEY ARE NOT, IT MIGHT MUCK UP!
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))
WARNING: THE AGENDAS HAVE TO BE UNDER THE TEAMS IN SHARED.LUA. IF THEY ARE NOT, IT MIGHT MUCK UP!
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(List of team variables separated by comma)
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.
*/
GM:AddGroupChat(function(ply) return ply:IsCP() end)
GM:AddGroupChat(TEAM_MOB, TEAM_GANG)
/*---------------------------------------------------------------------------
Define which teams belong to civil protection
Civil protection can set warrants, make people wanted and do some other police related things
---------------------------------------------------------------------------*/
GM.CivilProtection = {
[TEAM_POLICE] = true,
[TEAM_CHIEF] = true,
[TEAM_MAYOR] = true,
}
/*---------------------------------------------------------------------------
Enable hitman goodies on this team
---------------------------------------------------------------------------*/
DarkRP.addHitmanTeam(TEAM_MOB)
Findet ihr einen Fehler?
Liebe Grüße, Blacky.
steam Garry's Mod DarkRP Hilfe
Aucun commentaire:
Enregistrer un commentaire