Problemes sur les Jobs de Gmod

  • Initiateur de la discussion srelox
  • Date de début
  • Initiateur de la discussion
S

srelox

Bambi
Messages
11
Score réaction
0
Points
35
Bonjour, bonsoir,
Quand je met un job dans le fichier job.lua de darkmodification, je reboot le serv et le job ne marche pas ! (enfin je crois) je vais dans le menu F4 et il n'y est pas (Elite F4 menu) :

mes jobs :


---------------------------------------------------
TEAM_CITIZEN = DarkRP.createJob("Citoyen", {
color = Color(207, 13, 13, 255),
model = {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, },
description = [[Test du citoyen]],
weapons = {"bb_fiveseven"},
command = "Test",
max = 0,
salary = 250,
admin = 2,
vote = false,
hasLicense = true,
candemote = true,
-- CustomCheck
medic = false,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = "Test",
})

TEAM_MOB = DarkRP.createJob("Tueur à gage", {
color = Color(25, 25, 25, 255),
model = {"models/player/gman_high.mdl",
"models/player/kuma/alqaeda_commando.mdl"}
,
description = [[Tuez des gens contre de l'argent.]],
weapons = {"lockpick", "m9k_svu", "weapon_fists", "climb_swep2", "weapon_arc_atmcard"},
command = "tag",
max = 1,
salary = 1500,
admin = 0,
vote = true,
hasLicense = false,
category = "Gangsters",
})

---------------------------------------------------------------------------

Ma config :

------------------------------------------------------

--[[
Toggle settings.
Set to true or false.
]]

-- voice3D - Enable/disable 3DVoice is enabled.
GM.Config.voice3D = true
-- AdminsCopWeapons - Enable/disable admins spawning with cop weapons.
GM.Config.AdminsCopWeapons = true
-- adminBypassJobCustomCheck - Enable/disable whether an admin can force set a job with whenever customCheck returns false.
GM.Config.adminBypassJobRestrictions = true
-- allow people getting their own custom jobs.
GM.Config.allowjobswitch = true
-- allowrpnames - Allow Players to Set their RP names using the /rpname command.
GM.Config.allowrpnames = true
-- allowsprays - Enable/disable the use of sprays on the server.
GM.Config.allowsprays = true
-- allowvehicleowning - Enable/disable whether people can own vehicles.
GM.Config.allowvehicleowning = true
-- allowvnocollide - Enable/disable the ability to no-collide a vehicle (for security).
GM.Config.allowvnocollide = false
-- alltalk - Enable for global chat, disable for local chat.
GM.Config.alltalk = false
-- autovehiclelock - Enable/Disable automatic locking of a vehicle when a player exits it.
GM.Config.autovehiclelock = false
-- babygod - people spawn godded (prevent spawn killing).
GM.Config.babygod = true
-- canforcedooropen - whether players can force an unownable door open with lockpick or battering ram or w/e.
GM.Config.canforcedooropen = true
-- chatsounds - sounds are played when some things are said in chat.
GM.Config.chatsounds = true
-- chiefjailpos - Allow the Chief to set the jail positions.
GM.Config.chiefjailpos = true
-- cit_propertytax - Enable/disable property tax that is exclusive only for citizens.
GM.Config.cit_propertytax = false
-- copscanunfreeze - Enable/disable the ability of cops to unfreeze other people's props.
GM.Config.copscanunfreeze = true
-- copscanunweld - Enable/disable the ability of cops to unweld other people's props.
GM.Config.copscanunweld = false
-- cpcanarrestcp - Allow/Disallow CPs to arrest other CPs.
GM.Config.cpcanarrestcp = false
-- currencyLeft - The position of the currency symbol. true for left, false for right.
GM.Config.currencyLeft = true
-- customjobs - Enable/disable the /job command (personalized job names).
GM.Config.customjobs = true
-- customspawns - Enable/disable whether custom spawns should be used.
GM.Config.customspawns = true
-- deathblack - Whether or not a player sees black on death.
GM.Config.deathblack = false
-- showdeaths - Display kill information in the upper right corner of everyone's screen.
GM.Config.showdeaths = true
-- deadtalk - Enable/disable whether people talk and use commands while dead.
GM.Config.deadtalk = true
-- deadvoice - Enable/disable whether people talk through the microphone while dead.
GM.Config.deadvoice = true
-- deathpov - Enable/disable whether people see their death in first person view.
GM.Config.deathpov = false
-- decalcleaner - Enable/Disable clearing ever players decals.
GM.Config.decalcleaner = false
-- disallowClientsideScripts - Clientside scripts can be very useful for customizing the HUD or to aid in building. This option bans those scripts.
GM.Config.disallowClientsideScripts = true
-- doorwarrants - Enable/disable Warrant requirement to enter property.
GM.Config.doorwarrants = true
-- dropmoneyondeath - Enable/disable whether people drop money on death.
GM.Config.dropmoneyondeath = true
-- droppocketarrest - Enable/disable whether people drop the stuff in their pockets when they get arrested.
GM.Config.droppocketarrest = false
-- droppocketdeath - Enable/disable whether people drop the stuff in their pockets when they die.
GM.Config.droppocketdeath = false
-- dropweapondeath - Enable/disable whether people drop their current weapon when they die.
GM.Config.dropweapondeath = false
-- Whether players can drop the weapons they spawn with.
GM.Config.dropspawnedweapons = false
-- dynamicvoice - Enable/disable whether only people in the same room as you can hear your mic.
GM.Config.dynamicvoice = true
-- earthquakes - Enable/disable earthquakes.
GM.Config.earthquakes = false
-- enablebuypistol - Turn /buy on of off.
GM.Config.enablebuypistol = true
-- enforceplayermodel - Whether or not to force players to use their role-defined character models.
GM.Config.enforceplayermodel = true
-- globalshow - Whether or not to display player info above players' heads in-game.
GM.Config.globalshow = false
-- ironshoot - Enable/disable whether people need iron sights to shoot.
GM.Config.ironshoot = false
-- showjob - Whether or not to display a player's job above their head in-game.
GM.Config.showjob = true
-- letters - Enable/disable letter writing / typing.
GM.Config.letters = true
-- license - Enable/disable People need a license to be able to pick up guns.
GM.Config.license = false
-- lockdown - Enable/Disable initiating lockdowns for mayors.
GM.Config.lockdown = true
-- lockpickfading - Enable/disable the lockpicking of fading doors.
GM.Config.lockpickfading = false
-- logging - Enable/disable logging everything that happens.
GM.Config.logging = true
-- lottery - Enable/disable creating lotteries for mayors.
GM.Config.lottery = true
-- showname - Whether or not to display a player's name above their head in-game.
GM.Config.showname = true
-- showname - Whether or not to display a player's health above their head in-game.
GM.Config.showhealth = true
-- needwantedforarrest - Enable/disable Cops can only arrest wanted people.
GM.Config.needwantedforarrest = false
-- noguns - Enabling this feature bans Guns and Gun Dealers.
GM.Config.noguns = false
-- norespawn - Enable/Disable that people don't have to respawn when they change job.
GM.Config.norespawn = false
-- npcarrest - Enable/disable arresting npc's.
GM.Config.npcarrest = true
-- ooc - Whether or not OOC tags are enabled.
GM.Config.ooc = true
-- propertytax - Enable/disable property tax.
GM.Config.propertytax = false
-- proppaying - Whether or not players should pay for spawning props.
GM.Config.proppaying = false
-- propspawning - Enable/disable props spawning. Applies to admins too.
GM.Config.propspawning = true
-- removeclassitems - Enable/disable shipments/microwaves/etc. removal when someone changes team.
GM.Config.removeclassitems = true
-- removeondisconnect - Enable/disable shipments/microwaves/etc. removal when someone disconnects.
GM.Config.removeondisconnect = true
-- respawninjail - Enable/disable whether people can respawn in jail when they die.
GM.Config.respawninjail = true
-- restrictallteams - Enable/disable Players can only be citizen until an admin allows them.
GM.Config.restrictallteams = false
-- restrictbuypistol - Enabling this feature makes /buy available only to Gun Dealers.
GM.Config.restrictbuypistol = false
-- restrictdrop - Enable/disable restricting the weapons players can drop. Setting this to true disallows weapons from shipments from being dropped.
GM.Config.restrictdrop = false
-- revokeLicenseOnJobChange - Whether licenses are revoked when a player changes jobs.
GM.Config.revokeLicenseOnJobChange = true
-- shouldResetLaws - Enable/Disable resetting the laws back to the default law set when the mayor changes.
GM.Config.shouldResetLaws = false
-- strictsuicide - Whether or not players should spawn where they suicided.
GM.Config.strictsuicide = false
-- telefromjail - Enable/disable teleporting from jail.
GM.Config.telefromjail = true
-- teletojail - Enable/disable teleporting to jail.
GM.Config.teletojail = true
-- unlockdoorsonstart - Enable/Disable unlocking all doors on map start.
GM.Config.unlockdoorsonstart = false
-- voiceradius - Enable/disable local voice chat.
GM.Config.voiceradius = true
-- tax - Whether players pay taxes on their wallets.
GM.Config.wallettax = false
-- wantedsuicide - Enable/Disable suiciding while you are wanted by the police.
GM.Config.wantedsuicide = false
-- realisticfalldamage - Enable/Disable dynamic fall damage. Setting mp_falldamage to 1 will over-ride this.
GM.Config.realisticfalldamage = true
-- printeroverheat - Whether the default money printer can overheat on its own.
GM.Config.printeroverheat = true
-- weaponCheckerHideDefault - Hide default weapons when checking weapons.
GM.Config.weaponCheckerHideDefault = true
-- weaponCheckerHideNoLicense - Hide weapons that do not require a license.
GM.Config.weaponCheckerHideNoLicense = false

--[[
Value settings
]]
-- adminnpcs - Whether or not NPCs should be admin only. 0 = everyone, 1 = admin or higher, 2 = superadmin or higher, 3 = rcon only
GM.Config.adminnpcs = 1
-- adminsents - Whether or not SENTs should be admin only. 0 = everyone, 1 = admin or higher, 2 = superadmin or higher, 3 = rcon only
GM.Config.adminsents = 1
-- adminvehicles - Whether or not vehicles should be admin only. 0 = everyone, 1 = admin or higher, 2 = superadmin or higher, 3 = rcon only
GM.Config.adminvehicles = 1
-- adminweapons - Who can spawn weapons: 0: admins only, 1: supadmins only, 2: no one
GM.Config.adminweapons = 1
-- arrestspeed - Sets the max arrest speed.
GM.Config.arrestspeed = 120
-- babygodtime - How long the babygod lasts.
GM.Config.babygodtime = 2
-- chatsoundsdelay - How long to wait before letting a player emit a sound from their chat again.
-- Leave this on at least a few seconds to prevent people from spamming sounds. Set to 0 to disable.
GM.Config.chatsoundsdelay = 5
-- deathfee - the amount of money someone drops when dead.
GM.Config.deathfee = 200
-- decaltimer - Sets the time to clear clientside decals (in seconds).
GM.Config.decaltimer = 120
-- demotetime - Number of seconds before a player can rejoin a team after demotion from that team.
GM.Config.demotetime = 160
-- doorcost - Sets the cost of a door.
GM.Config.doorcost = 250
-- entremovedelay - how long to wait before removing a bought entity after disconnect.
GM.Config.entremovedelay = 0
-- gunlabweapon - The weapon that the gunlab spawns.
GM.Config.gunlabweapon = "weapon_p2282"
-- jailtimer - Sets the jailtimer (in seconds).
GM.Config.jailtimer = 160
-- lockdowndelay - The amount of time a mayor must wait before starting the next lockdown.
GM.Config.lockdowndelay = 1
-- maxdoors - Sets the max amount of doors one can own.
GM.Config.maxdoors = 20
-- maxdrugs - Sets max drugs.
GM.Config.maxdrugs = 2
-- maxfoods - Sets the max food cartons per Microwave owner.
GM.Config.maxfoods = 2
-- maxlawboards - The maximum number of law boards the mayor can place.
GM.Config.maxlawboards = 10
-- maxletters - Sets max letters.
GM.Config.maxletters = 10
-- maxlotterycost - Maximum payment the mayor can set to join a lottery.
GM.Config.maxlotterycost = 2500
-- maxvehicles - Sets how many vehicles one can buy.
GM.Config.maxvehicles = 5
-- microwavefoodcost - Sets the sale price of Microwave Food.
GM.Config.microwavefoodcost = 30
-- minlotterycost - Minimum payment the mayor can set to join a lottery.
GM.Config.minlotterycost = 10
-- Money packets will get removed if they don't get picked up after a while. Set to 0 to disable.
GM.Config.moneyRemoveTime = 1000
-- mprintamount - Value of the money printed by the money printer.
GM.Config.mprintamount = 250
-- normalsalary - Sets the starting salary for newly joined players.
GM.Config.normalsalary = 45
-- npckillpay - Sets the money given for each NPC kill.
GM.Config.npckillpay = 100
-- paydelay - Sets how long it takes before people get salary.
GM.Config.paydelay = 160
-- pocketitems - Sets the amount of objects the pocket can carry.
GM.Config.pocketitems = 10
-- pricecap - The maximum price of items (using /price).
GM.Config.pricecap = 500
-- pricemin - The minimum price of items (using /price).
GM.Config.pricemin = 50
-- propcost - How much prop spawning should cost (prop paying must be enabled for this to have an effect).
GM.Config.propcost = 10
-- quakechance - Chance of an earthquake happening.
GM.Config.quakechance = 4000
-- respawntime - Minimum amount of seconds a player has to wait before respawning.
GM.Config.respawntime = 1
-- changejobtime - Minimum amount of seconds a player has to wait before changing job.
GM.Config.changejobtime = 0
-- runspeed - Sets the max running speed.
GM.Config.runspeed = 240
-- runspeed - Sets the max running speed for CP teams.
GM.Config.runspeedcp = 250
-- searchtime - Number of seconds for which a search warrant is valid.
GM.Config.searchtime = 35
-- ShipmentSpawnTime - Antispam time between spawning shipments.
GM.Config.ShipmentSpamTime = 0
-- shipmenttime - The number of seconds it takes for a shipment to spawn.
GM.Config.shipmentspawntime = 5
-- startinghealth - the health when you spawn.
GM.Config.startinghealth = 100
-- startingmoney - your wallet when you join for the first time.
GM.Config.startingmoney = 5000
-- vehiclecost - Sets the cost of a vehicle (To own it).
 
Dernière édition:
  • Initiateur de la discussion
S

srelox

Bambi
Messages
11
Score réaction
0
Points
35
Merci !! PS: j'ai un peu couper la fin de la config car sa rentré pas :D
 
RuddyCODE

RuddyCODE

Geek suprême
Messages
298
Score réaction
76
Points
100
A tu des erreurs lua dans ta console ?
 
  • Initiateur de la discussion
S

srelox

Bambi
Messages
11
Score réaction
0
Points
35
Oui quelque une mais sur des addons
 
  • Initiateur de la discussion
S

srelox

Bambi
Messages
11
Score réaction
0
Points
35
EDIT : Meme /[Commande du job] ne marche pas
 
  • Initiateur de la discussion
S

srelox

Bambi
Messages
11
Score réaction
0
Points
35
Up : J'ai besoins d'aide !!
 
P

PCMalexis

Geek suprême
Messages
600
Score réaction
49
Points
125
Déjà n'oublie pas les {} au models du deuxième metier
 
  • Initiateur de la discussion
S

srelox

Bambi
Messages
11
Score réaction
0
Points
35
PCMalexis à dit:
Déjà n'oublie pas les {} au models du deuxième metier
Merci, mais même le premier ne marche pas :(
 
P

PCMalexis

Geek suprême
Messages
600
Score réaction
49
Points
125
Ajoute moi sur skype : Alexis.maruinez
 
G

Gorgata9

Geek suprême
Messages
468
Score réaction
34
Points
125
weapons = {bb_fiveseven},
Tu le remplace par

weapons = {"bb_fiveseven"},
 
NealCaafreyy

NealCaafreyy

Geek
Messages
122
Score réaction
5
Points
85
Si tu a besoin d'aide vien teamspeak :)

92.222.234.238:6669 et envoye moi un mp si je suis connecter :)

Ou add Steam http://steamcommunity.com/id/NealCaafrey/
 
  • Initiateur de la discussion
S

srelox

Bambi
Messages
11
Score réaction
0
Points
35
Merci pour les reponse, je vais modifier les truck et si sa marche pas ben je vous contacte :)
 
Discord d'entraide
Rejoignz-nous sur Discord