Gros problème par rapport aux jobs

  • Initiateur de la discussion Le P'tit Killer_
  • Date de début
  • Initiateur de la discussion
L

Le P'tit Killer_

Têtard
Messages
3
Score réaction
0
Points
5
Bonjour il s'est passer quelque chose de très étrange.

Alors je vous explique j'ai voulu créer quelques jobs pour mon serveur (logique) je créer le job crips voici le code :

TEAM_GANG = DarkRP.createJob("Crips", {
color = Color(75, 75, 75, 255),
model = {
"models/player/cripz/slow_1.mdl",
"models/player/cripz/slow_3.mdl",
},
description = [[Vous êtes un membres des crips, vos ennemies sont les bloods faites des braquages des holds-up pour être au dessus de toute la ville.]],
weapons = {},
command = "gangster",
max = 3,
salary = GAMEMODE.Config.normalsalary,
admin = 0,
vote = false,
hasLicense = false,
category = "Gangsters",

Bloods :

TEAM_GANG = DarkRP.createJob("Bloods", {
color = Color(75, 75, 75, 255),
model = {
"models/player/bloodz/slow_1.mdl",
"models/player/bloodz/slow_3.mdl",
},
description = [[Vous êtes un membres des bloods,
vos ennemies sont les crips faites des braquages des holds-up pour être au dessus de toute la ville.]],
weapons = {},
command = "gangster",
max = 3,
salary = GAMEMODE.Config.normalsalary,
admin = 0,
vote = false,
hasLicense = false,
category = "Gangsters",
})

Chef des bloods :

TEAM_MOB = DarkRP.createJob("Chef des Bloods", {
color = Color(25, 25, 25, 255),
model = "models/player/bloodz/slow_2.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 = {},
command = "mobboss",
max = 1,
salary = GAMEMODE.Config.normalsalary * 1.34,
admin = 0,
vote = false,
hasLicense = false,
category = "Gangsters",
})

Alors j'ai rajouter tout ça dans jobrelated.lua je pense donc que l'erreur viens par la mais je n'en ai aucune idée et de plus je spawn sous la map et j'ai plus aucune permission BibleThump Voici quelque images :

Capture d’écran (118).png


Capture d’écran (119).png


Capture d’écran (120).png




Donc error console gmod :

[ERROR] A runtime error has occurred in "addons/darkrpmodification/lua/darkrp_customthings/jobs.lua" on line 30.
The best help I can give you is this:

A table is being indexed by something that does not exist (table index is nil).

Hints:
- The thing between square brackets does not exist (is nil).

The responsibility for the error above lies with (the authors of) one (or more) of these files:
1. addons/darkrpmodification/lua/darkrp_customthings/jobs.lua on line 30
2. gamemodes/darkrp/gamemode/libraries/fn.lua on line 84
3. gamemodes/darkrp/gamemode/libraries/fn.lua on line 84
4. gamemodes/darkrp/gamemode/libraries/modificationloader.lua on line 138
5. gamemodes/darkrp/gamemode/libraries/modificationloader.lua on line 149
6. gamemodes/darkrp/gamemode/init.lua on line 111
------- End of Simplerr error -------

[ERROR] A runtime error has occurred in "gamemodes/darkrp/gamemode/modules/base/sv_gamemode_functions.lua" on line 716.
The best help I can give you is this:

DarkRP was unable to introduce player "Le P'tit Killer" to the game. Expect further errors and shit generally being fucked!

Hints:
- This error most likely does not stand on its own, and previous serverside errors have a very good chance of telling you the cause.
- Note that errors from another addon could cause this. Specifically when they're thrown during 'PlayerInitialSpawn'.
- This error can also be caused by some other addon returning a value in 'PlayerInitialSpawn', though that is less likely.
- Errors in your DarkRP configuration (jobs, shipments, etc.) could also cause this. Earlier errors should tell you when this is the case.

The responsibility for the error above lies with (the authors of) one (or more) of these files:

------- End of Simplerr error -------

Et error console mTx :

Lua Error:[ERROR] gamemodes/darkrp/gamemode/modules/base/sv_data.lua:405: attempt to index a nil value1. retrieveSalary - gamemodes/darkrp/gamemode/modules/base/sv_data.lua:4052. callback - gamemodes/darkrp/gamemode/modules/base/sv_data.lua:4293. callback - gamemodes/darkrp/gamemode/modules/base/sv_data.lua:3244. query - gamemodes/darkrp/gamemode/libraries/mysqlite/mysqlite.lua:3025. offlinePlayerData - gamemodes/darkrp/gamemode/modules/base/sv_data.lua:2966. retrievePlayerData - gamemodes/darkrp/gamemode/modules/base/sv_data.lua:3357. restorePlayerData - gamemodes/darkrp/gamemode/modules/base/sv_data.lua:4208. unknown - gamemodes/darkrp/gamemode/modules/base/sv_gamemode_functions.lua:616[ERROR] gamemodes/darkrp/gamemode/modules/base/sv_data.lua:405: attempt to index a nil value1. retrieveSalary - gamemodes/darkrp/gamemode/modules/base/sv_data.lua:4052. callback - gamemodes/darkrp/gamemode/modules/base/sv_data.lua:4293. callback - gamemodes/darkrp/gamemode/modules/base/sv_data.lua:3244. query - gamemodes/darkrp/gamemode/libraries/mysqlite/mysqlite.lua:3025. offlinePlayerData - gamemodes/darkrp/gamemode/modules/base/sv_data.lua:2966. retrievePlayerData - gamemodes/darkrp/gamemode/modules/base/sv_data.lua:3357. restorePlayerData - gamemodes/darkrp/gamemode/modules/base/sv_data.lua:4208. unknown - gamemodes/darkrp/gamemode/modules/base/sv_gamemode_functions.lua:61614/06/2020 14:06:06: Lua Error:[ERROR] gamemodes/darkrp/gamemode/modules/base/sv_gamemode_functions.lua:635: attempt to index local 'jobTable' (a nil value)1. unknown - gamemodes/darkrp/gamemode/modules/base/sv_gamemode_functions.lua:635[ERROR] gamemodes/darkrp/gamemode/modules/base/sv_gamemode_functions.lua:635: attempt to index local 'jobTable' (a nil value)1. unknown - gamemodes/darkrp/gamemode/modules/base/sv_gamemode_functions.lua:635ServerLog: [FAdmin] Le P'tit Killer (STEAM_0:1:493173057) Spawned14/06/2020 14:06:06: [FAdmin] Le P'tit Killer (STEAM_0:1:493173057) Spawned14/06/2020 14:06:06: Lua Error:[ERROR] gamemodes/darkrp/gamemode/modules/base/sv_gamemode_functions.lua:760: attempt to index local 'jobTable' (a nil value)1. unknown - gamemodes/darkrp/gamemode/modules/base/sv_gamemode_functions.lua:760[ERROR] gamemodes/darkrp/gamemode/modules/base/sv_gamemode_functions.lua:760: attempt to index local 'jobTable' (a nil value)1. unknown - gamemodes/darkrp/gamemode/modules/base/sv_gamemode_functions.lua:76014/06/2020 14:06:06: "Le P'tit Killer<2><>" entered the gameremoveid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.14/06/2020 14:29:37: Lua Error:[ERROR] gamemodes/darkrp/gamemode/modules/base/sv_gamemode_functions.lua:256: attempt to index local 'jobTable' (a nil value)1. unknown - gamemodes/darkrp/gamemode/modules/base/sv_gamemode_functions.lua:256[ERROR] gamemodes/darkrp/gamemode/modules/base/sv_gamemode_functions.lua:256: attempt to index local 'jobTable' (a nil value)1. unknown - gamemodes/darkrp/gamemode/modules/base/sv_gamemode_functions.lua:256removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.removeid: couldn't find STEAM_0:1:92046224Writing cfg/banned_user.cfg.

Merci de votre aide :)
 
xLomble77

xLomble77

Psychopathe
Messages
2 191
Score réaction
348
Points
290
Bonjour,

Cela ne risque pas de fonctionner si tu ne changes pas la TEAM_ et la commande du métier ^_^.
 
  • Initiateur de la discussion
L

Le P'tit Killer_

Têtard
Messages
3
Score réaction
0
Points
5
Ok thanks
 
Discord d'entraide
Rejoignz-nous sur Discord