- Initiateur de la discussion
G
Gaspardwllqt
Bambi
- Messages
- 46
- Score réaction
- 1
- Points
- 40
Je suis entraine de tenter des changer quelques trucks sur la banque mais je viens de la faire "crash" l'interface de la banque ( ou il y a le nombre d'argent...et le nombre de policiers) a disparu
[ERROR] addons/bank_vault/lua/entities/br_vault/cl_init.lua:74: attempt to compare number with nil
1. unknown - addons/bank_vault/lua/entities/br_vault/cl_init.lua:74
Voici ce que j'ai dans le dossier que j'ai modifier ;
--Moved it here instead of 'init.lua' and 'cl_init.lua'.
--Since my script uses job info in both client and server files it should be stored here. Moving code below to 'br_config.lua' will not work.
--Robber teams, who can rob vault.
BR_RobberJobs = {"Chef Gangster", "Gangster", "*VIP*Parrain", "Mafieu", "*VIP*Chef Braqueur", "Braqueur", "Cripz", "Chef Cripz", "Chef Bloods", "Bloods"}
--Police teams, who get payment.
BR_PoliceJobs = {"Policier", "Commissaire", "VIP*Sniper du RAID", "B.A.C.", "RAID", "*VIP*Chef du RAID"}
--Mayor teams, who can change payment amount for police.
BR_MayorJobs = {"Maire"}
Je souhaitez ajouter les métiers au nombre de policier nécessaire pour braquer la banque et ajouter des metiers pouvant la braquer
Exemple de métier que je souhaitais rajouter ;
TEAM_BRAQUEUR = DarkRP.createJob("*VIP*Chef Braqueur", {
color = Color(201, 184, 184, 255),
model = {"models/player/pd2_hoxton_p.mdl", "models/player/pd2_dallas_p.mdl", "models/player/pd2_wolf_p.mdl", "models/player/pd2_chains_p.mdl"},
description = [[]],
weapons = {"itemstore_pickup", "weapon_fists", "weapon_arc_atmcard"},
command = "chefbraqueur",
max = 1,
salary = 35,
admin = 0,
vote = false,
type = "crime",
hasLicense = false,
customCheck = function(ply) return CLIENT or
table.HasValue({"modotestadams", "jul", "sanchez", "Chef-Admin", "*VIP*", "Fondateur", "Co-Fondateur", "superadmin", "Modo VIP", "Chef-Modo VIP", "admin VIP", "Modo-test VIP"}, ply:GetNWString("usergroup")) end,
CustomCheckFailMsg = "Tu n'est pas VIP !",
candemote = true,
-- CustomCheck
medic = false,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = "Gangsters",
})
[ERROR] addons/bank_vault/lua/entities/br_vault/cl_init.lua:74: attempt to compare number with nil
1. unknown - addons/bank_vault/lua/entities/br_vault/cl_init.lua:74
Voici ce que j'ai dans le dossier que j'ai modifier ;
--Moved it here instead of 'init.lua' and 'cl_init.lua'.
--Since my script uses job info in both client and server files it should be stored here. Moving code below to 'br_config.lua' will not work.
--Robber teams, who can rob vault.
BR_RobberJobs = {"Chef Gangster", "Gangster", "*VIP*Parrain", "Mafieu", "*VIP*Chef Braqueur", "Braqueur", "Cripz", "Chef Cripz", "Chef Bloods", "Bloods"}
--Police teams, who get payment.
BR_PoliceJobs = {"Policier", "Commissaire", "VIP*Sniper du RAID", "B.A.C.", "RAID", "*VIP*Chef du RAID"}
--Mayor teams, who can change payment amount for police.
BR_MayorJobs = {"Maire"}
Je souhaitez ajouter les métiers au nombre de policier nécessaire pour braquer la banque et ajouter des metiers pouvant la braquer
Exemple de métier que je souhaitais rajouter ;
TEAM_BRAQUEUR = DarkRP.createJob("*VIP*Chef Braqueur", {
color = Color(201, 184, 184, 255),
model = {"models/player/pd2_hoxton_p.mdl", "models/player/pd2_dallas_p.mdl", "models/player/pd2_wolf_p.mdl", "models/player/pd2_chains_p.mdl"},
description = [[]],
weapons = {"itemstore_pickup", "weapon_fists", "weapon_arc_atmcard"},
command = "chefbraqueur",
max = 1,
salary = 35,
admin = 0,
vote = false,
type = "crime",
hasLicense = false,
customCheck = function(ply) return CLIENT or
table.HasValue({"modotestadams", "jul", "sanchez", "Chef-Admin", "*VIP*", "Fondateur", "Co-Fondateur", "superadmin", "Modo VIP", "Chef-Modo VIP", "admin VIP", "Modo-test VIP"}, ply:GetNWString("usergroup")) end,
CustomCheckFailMsg = "Tu n'est pas VIP !",
candemote = true,
-- CustomCheck
medic = false,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = "Gangsters",
})