1. Post #1
    theo647's Avatar
    December 2012
    20 Posts
    Hello,

    I have some problems with my DarkRP jobs file, the mob boss causes LUA errors and kick the people that became MobBoss. I really don't understand, here's the file:


    Code:
    /*--------------------------------------------------------
    Default teams. If you make a team above the citizen team, people will spawn with that team!
    --------------------------------------------------------*/
    TEAM_CITIZEN = AddExtraTeam("Citoyen", {
    	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 = [[Le citoyen n'a rien de spécial dans la sociétée,
    	mais il peut toujours aider les clochards.]],
    	weapons = {},
    	command = "citizen",
    	max = 0,
    	salary = 45,
    	admin = 0,
    	vote = false,
    	hasLicense = false
    })
    
    TEAM_POLICE = AddExtraTeam("Policier", {
    	color = Color(0, 51, 255, 255),
    	model = "models/player/combine_soldier.mdl",
    	description = [[Le polcier arrête tous les criminels, mais garde
    	en sécurité les autres innocents.
    		Hit them with your arrest baton to put them in jail
    		Bash them with a stunstick and they might learn better than to disobey
    		the law.
    		The Battering Ram can break down the door of a criminal with a warrant
    		for his/her arrest.
    		The Battering Ram can also unfreeze frozen props(if enabled).
    		Type /wanted <name> to alert the public to this criminal
    		OR go to tab and warrant someone by clicking the warrant button]],
    	weapons = {"arrest_stick", "unarrest_stick", "weapon_glock2", "stunstick", "door_ram", "weaponchecker"},
    	command = "cp",
    	max = 4,
    	salary = 65,
    	admin = 0,
    	vote = true,
    	hasLicense = true
    })
    
    TEAM_GANG = AddExtraTeam("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 = [[Les gangsters font n'importe quoi dans la ville,
    	mais s'occupent aussi d'énerver les flics, il détestent les mafieux et leur patron est le MobBoss.]],
    	weapons = {},
    	command = "gangster",
    	max = 3,
    	salary = 45,
    	admin = 0,
    	vote = false,
    	hasLicense = false
    })
    
    TEAM_MOB = AddExtraTeam("Mob boss", {
    	color = Color(25, 25, 25, 255),
    	model = "models/player/arctic.mdl",
    	description = [[The Mobboss is the boss of the criminals in the city.
    		With his power he coordinates the gangsters and forms an efficent crime
    		organization.
    		He has the ability to break into houses by using a lockpick.
    		The Mobboss also can unarrest you.]],
    	weapons = {"unarrest_stick"},
    	command = "mobboss",
    	max = 1,
    	salary = 60,
    	admin = 0,
    	vote = false,
    	hasLicense = false
    })
    
    TEAM_GUN = AddExtraTeam("Dealer d'armes", {
    	color = Color(255, 140, 0, 255),
    	model = "models/player/monk.mdl",
    	description = [[Le Dealer d'armes est la seule personne capable de vendre
    	des armes aux autres parfaitement légalement.]],
    	weapons = {},
    	command = "gundealer",
    	max = 2,
    	salary = 45,
    	admin = 0,
    	vote = false,
    	hasLicense = false
    })
    
    TEAM_MEDIC = AddExtraTeam("Medecin", {
    	color = Color(47, 79, 79, 255),
    	model = "models/player/kleiner.mdl",
    	description = [[Avec vos connaissances en medecines, vous êtes
    	la seule personne capable de soigner votre entourage.]],
    	weapons = {"med_kit"},
    	command = "medic",
    	max = 3,
    	salary = 45,
    	admin = 0,
    	vote = false,
    	hasLicense = false
    })
    
    TEAM_COOK = AddExtraTeam("Cuisinière", {
    	color = Color(238, 99, 99, 255),
    	model = "models/player/mossman.mdl",
    	description = [[Vous êtes la cuisinière, alors nourissez les autres
    	en leur vendant de la nourriture!]],
    	weapons = {},
    	command = "cook",
    	max = 2,
    	salary = 45,
    	admin = 0,
    	vote = false,
    	hasLicense = false
    })
    
    TEAM_CHIEF = AddExtraTeam("Comissaire", {
    	color = Color(20, 20, 255, 255),
    	model = "models/player/combine_soldier_prisonguard.mdl",
    	description = [[Le comissaire est le superieur des forces de polices.
    		Hit them with arrest baton to put them in jail
    		Bash them with a stunstick and they might learn better than to
    		disobey 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 this criminal
    		Type /jailpos to set the Jail Position]],
    	weapons = {"arrest_stick", "unarrest_stick", "weapon_deagle2", "stunstick", "door_ram", "weaponchecker"},
    	command = "chief",
    	max = 1,
    	salary = 75,
    	admin = 0,
    	vote = false,
    	hasLicense = true,
    	NeedToChangeFrom = TEAM_POLICE
    })
    
    TEAM_MAYOR = AddExtraTeam("Maire", {
    	color = Color(150, 20, 20, 255),
    	model = "models/player/breen.mdl",
    	description = [[Le Maire est le chef de TOUTES les forces de polices
    	de la ville. Il peut également écrire dans leur agenda.
    	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 = 85,
    	admin = 0,
    	vote = true,
    	hasLicense = false
    })
    
    TEAM_HOBO = AddExtraTeam("Clochard", {
    	color = Color(80, 45, 0, 255),
    	model = "models/player/corpse1.mdl",
    	description = [[Vous avez tout perdu.
    	Vous êtes dans la rue, faites vous un abri et mandiez]],
    	weapons = {"weapon_bugbait"},
    	command = "hobo",
    	max = 5,
    	salary = 0,
    	admin = 0,
    	vote = false,
    	hasLicense = false
    })
    
    //ADD CUSTOM TEAMS UNDER THIS LINE:
    TEAM_CONTREBANDE = AddExtraTeam("Contrebandier", {
    	color = Color(51, 51, 0, 255),
    	model = "models/player/Group03/Male_06.mdl",
    	description = [[Le contrebandier vends toutes sortes d'armes lourdes illégalement.]],
    	weapons = {},
    	command = "contrebande",
    	max = 1,
    	salary = 45,
    	admin = 0,
    	vote = false,
    	hasLicense = false
    })
    
    TEAM_EXPLOSIF = AddExtraTeam("Vendeur d'explosifs", {
    	color = Color(204, 255, 0, 255),
    	model = "models/player/odessa.mdl",
    	description = [[Le vendeur d'explofifs vends des objets plutôt, "explosifs" illégalement.]],
    	weapons = {},
    	command = "explosif",
    	max = 1,
    	salary = 45,
    	admin = 0,
    	vote = false,
    	hasLicense = false
    })
    
    TEAM_GUARD = AddExtraTeam("Garde", {
    	color = Color(255, 255, 204, 255),
    	model = "models/player/barney.mdl",
    	description = [[Le garde s'occupe de protéger les autres citoyens contre un peu d'argent.]],
    	weapons = {},
    	command = "guard",
    	max = 3,
    	salary = 55,
    	admin = 0,
    	vote = false,
    	hasLicense = true
    })
    
    TEAM_BANQUIER = AddExtraTeam("Banquier", {
    	color = Color(153, 153, 0, 255),
    	model = "models/Characters/Hostage_02.mdl",
    	description = [[Le banquier est la seule personne capable de gardes les "imprimantes"
    	des autres légalement.]],
    	weapons = {},
    	command = "banquier",
    	max = 2,
    	salary = 70,
    	admin = 0,
    	vote = false,
    	hasLicense = false
    })
    
    TEAM_HITMAN = AddExtraTeam("Tueur à gages", {
    	color = Color(51, 255, 51, 255),
    	model = "models/player/guerilla.mdl",
    	description = [[Restez discret, tuer une personne sans contrat est une peine de ban (freekill).]],
    	weapons = {"weapon_deagle2"},
    	command = "hitman",
    	max = 1,
    	salary = 40,
    	admin = 0,
    	vote = false,
    	hasLicense = false
    })
    
    TEAM_MAFIEUX = AddExtraTeam("Mafieux", {
    	color = Color(204, 51, 153, 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 = [[Les mafieux font n'importe quoi, un peu comme les gangsters, saufs qu'ils sont rivaux, et leur patron est le Parrain.]],
    	weapons = {},
    	command = "mafieux",
    	max = 3,
    	salary = 45,
    	admin = 0,
    	vote = false,
    	hasLicense = false
    })
    
    TEAM_PARRAIN = AddExtraTeam("Parrain", {
    	color = Color(25, 25, 25, 255),
    	model = "models/player/gman_high.mdl",
    	description = [[Le Parrain est le chef de tous les mafieux de la ville,
    	alors quand il sont en prison, allez les aider!.]],
    	weapons = {"lockpick", "unarrest_stick"},
    	command = "parrain",
    	max = 1,
    	salary = 60,
    	admin = 0,
    	vote = true,
    	hasLicense = false
    })
    
    TEAM_QUINCAILLER = AddExtraTeam("Quincailler", {
    	color = Color(51, 255, 255, 255),
    	model = "models/player/eli.mdl",
    	description = [[Le quincailler vends tout et n'importe quoi légalement.]],
    	weapons = {},
    	command = "quincailler",
    	max = 1,
    	salary = 60,
    	admin = 0,
    	vote = false,
    	hasLicense = false
    })
    
    AddDoorGroup("Immeuble")
    AddAgenda("Agenda des mafieux", TEAM_PARRAIN, {TEAM_MAFIEUX})
    /*
    --------------------------------------------------------
    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("Forces de l'ordre", TEAM_CHIEF, TEAM_POLICE, TEAM_MAYOR)
    AddDoorGroup("Dealer d'arme", 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("Agenda de la police", TEAM_MAYOR, {TEAM_CHIEF, TEAM_POLICE})
    AddAgenda("Agenda des gangsters", TEAM_MOB, {TEAM_GANG})
    (and the "banquier" job skin is laggy like that:)


    (can you help me to resolve this problem too please?)
    Reply With Quote Edit / Delete Reply Windows 8 France Show Events Dumb Dumb x 3 (list)

  2. Post #2
    theo647's Avatar
    December 2012
    20 Posts
    Help please

  3. Post #3
    Dennab
    May 2012
    478 Posts
    We really need to make a section for gamemode support. It is very annoying when one comes into this section and sees DarkRP after DarkRP question.


    Also OP, if you want help, post us all of the Lua errors.

  4. Post #4
    theo647's Avatar
    December 2012
    20 Posts
    Please how can i find these errors? With the console?

  5. Post #5
    Best in the World
    ENG.jonny's Avatar
    January 2012
    852 Posts
    For the banquier job, rename
    "models/Characters/Hostage_02.mdl",
    to
    "models/player/Hostage_02.mdl",
    Reply With Quote Edit / Delete Reply Windows 7 United Kingdom Show Events Agree Agree x 1 (list)