Impossible de vendre les accessoires FA:S 2 et les gilets par balle

  • Initiateur de la discussion
Julate

Julate

Geek
Messages
29
Score réaction
1
Points
65
Bonjour tout le monde, ayant déjà chercher de l'aide sur ce forum et toujours eu des aides positives <3 je reviens à vous de nouveau afin de recevoir un peu d'aide ^^

Voilà, j'ai créer un job "Quincailler" et lui est donner comme objet à vendre les accessoires de FA:S 2 (lunette, viseur, silencieux...) et les gilets par balle (lourd/moyen/léger) sauf que :
You do not have the right job to /buyshipment

Alors que :

Code:
-- Accessoires
AddCustomShipment("Acog 4x", "models/Items/BoxSRounds.mdl", "fas2_att_acog", 500, 1, false, 50, false, {TEAM_QUINCA})
AddCustomShipment("Comp M4", "models/Items/BoxSRounds.mdl", "fas2_att_compm4", 500, 1, false, 50, false, {TEAM_QUINCA})
AddCustomShipment("Elcan C79", "models/Items/BoxSRounds.mdl", "fas2_att_c79", 500, 1, false, 50, false, {TEAM_QUINCA})
AddCustomShipment("EOTech 553", "models/Items/BoxSRounds.mdl", "fas2_att_eotech", 500, 1, false, 50, false, {TEAM_QUINCA})
AddCustomShipment("Foregrip", "models/Items/BoxSRounds.mdl", "fas2_att_foregrip", 500, 1, false, 50, false, {TEAM_QUINCA})
AddCustomShipment("Harris Bipod", "models/Items/BoxSRounds.mdl", "fas2_att_harrisbipod", 500, 1, false, 50, false, {TEAM_QUINCA})
AddCustomShipment("Leupold mk4", "models/Items/BoxSRounds.mdl", "fas2_att_leupold", 500, 1, false, 50, false, {TEAM_QUINCA})
AddCustomShipment("M21 20RND Mag", "models/Items/BoxSRounds.mdl", "fas2_att_m2120mag", 500, 1, false, 50, false, {TEAM_QUINCA})
AddCustomShipment("MP5K 30RND Mag", "models/Items/BoxSRounds.mdl", "fas2_att_mp5k30mag", 500, 1, false, 50, false, {TEAM_QUINCA})
AddCustomShipment("SG 556X 30RND Mag", "models/Items/BoxSRounds.mdl", "fas2_att_sg55x30mag", 500, 1, false, 50, false, {TEAM_QUINCA})
AddCustomShipment("SKS 20RND Mag", "models/Items/BoxSRounds.mdl", "fas2_att_sks20mag", 500, 1, false, 50, false, {TEAM_QUINCA})
AddCustomShipment("Suppressor", "models/Items/BoxSRounds.mdl", "fas2_att_suppressor", 500, 1, false, 50, false, {TEAM_QUINCA})
AddCustomShipment("Tritium Sights", "models/Items/BoxSRounds.mdl", "fas2_att_tritiumsights", 500, 1, false, 50, false, {TEAM_QUINCA})
AddCustomShipment("UZI Wooden Stock", "models/Items/BoxSRounds.mdl", "fas2_att_uziwoodenstock", 500, 1, false, 50, false, {TEAM_QUINCA})
AddCustomShipment("SKS 30RND Mag", "models/Items/BoxSRounds.mdl", "fas2_att_sks30mag", 500, 1, false, 50, false, {TEAM_QUINCA})
AddCustomShipment("Medical Equipment", "models/Items/BoxSRounds.mdl", "fas2_ammo_medical", 20000, 1, false, 50, false, {TEAM_QUINCA})
AddCustomShipment("PSO 1", "models/Items/BoxSRounds.mdl", "fas2_att_pso1", 500, 1, false, 50, false, {TEAM_QUINCA})
Code:
-- Gilet par balle TEAM_POLICIERA
AddCustomShipment("Gilet par balle leger", "models/combine_vests/elitevest.mdl", "light kevlar armor", 4000, 1, false, 0, false, {TEAM_VENDEUR,TEAM_VENDEURILL,TEAM_QUINCA})
AddCustomShipment("Gilet par balle moyen", "models/combine_vests/elitevest.mdl", "light kevlar armor", 6000, 1, false, 0, false, {TEAM_VENDEUR,TEAM_VENDEURILL,TEAM_QUINCA})
AddCustomShipment("Gilet par balle lourd", "models/combine_vests/elitevest.mdl", "medium kevlar armor", 10000, 1, false, 0, false, {TEAM_VENDEUR,TEAM_VENDEURILL,TEAM_QUINCA})
AddCustomShipment("Gilet par balle leger", "models/combine_vests/elitevest.mdl", "light kevlar armor", 1000, 1, false, 0, false, {TEAM_POLICIERA})
AddCustomShipment("Gilet par balle moyen", "models/combine_vests/elitevest.mdl", "medium kevlar armor", 1500, 1, false, 0, false, {TEAM_POLICIERA})
AddCustomShipment("Gilet par balle lourd", "models/combine_vests/elitevest.mdl", "heavy kevlar armor", 2500, 1, false, 0, false, {TEAM_POLICIERA})
(oui, même problème avec les autres jobs où j'ai mis la vente de gilet par balle)

Code:
TEAM_QUINCA = DarkRP.createJob("Quincailler", { color = Color(100, 40, 10, 255), model = { "models/humans/group02/player/temale_01.mdl", "models/humans/group02/player/temale_02.mdl", "models/humans/group02/player/tale_08.mdl", "models/humans/group02/player/tale_07.mdl", "models/humans/group02/player/tale_06.mdl", "models/humans/group02/player/tale_04.mdl", "models/humans/group02/player/tale_05.mdl", "models/humans/group02/player/tale_03.mdl", "models/humans/group02/player/tale_01.mdl", "models/lopez/lopez.mdl" }, description = [[Le vendeur d'armes est la seule personne qui peut vendre des armes a d'autres personnes. Assurez-vous que vous n'etes pas pris à vendre des armes a feu illegales au public! Vous pourriez etre arretez!]], weapons = {"weapon_arc_atmcard","itemstore_pickup"}, command = "quinca", max = 2, salary = 20, admin = 0, vote = false, hasLicense = false, candemote = true, -- CustomCheck medic = false, chief = false, mayor = false, hobo = false, cook = false, PlayerDeath = function(ply, weapon, killer) ply:teamBan() ply:changeTeam(GAMEMODE.DefaultTeam, true) end
})
 
LuCampbell

LuCampbell

Geek suprême
Messages
88
Score réaction
18
Points
115
Je t'ai mis en ligne l'ancien entities.lua de mon ancien darkrp, tout fonctionnait
Essaye de voir si tu peux faire quelque chose avec

Code:
--[[---------------------------------------------------------------------------
DarkRP custom entities
---------------------------------------------------------------------------
This file contains your custom entities.
This file should also contain entities from DarkRP that you edited.
Note: If you want to edit a default DarkRP entity, first disable it in darkrp_config/disabled_defaults.lua Once you've done that, copy and paste the entity to this file and edit it.
The default entities can be found here:
https://github.com/FPtje/DarkRP/blob/master/gamemode/config/addentities.lua#L111
For examples and explanation please visit this wiki page:
http://wiki.darkrp.com/index.php/DarkRP:CustomEntityFields
Add entities under the following line:
---------------------------------------------------------------------------]]
AddCustomShipment("Colt 1911 x1", "models/weapons/s_dmgf_co1911.mdl", "m9k_colt1911", 2000, 1, false, 2000, false, {TEAM_TRAFIQUANT})
AddCustomShipment("HK 45C x1", "models/weapons/w_hk45c.mdl", "m9k_hk45", 1500, 1, false, 1500, false, {TEAM_TRAFIQUANT})
AddCustomShipment("Luger x1", "models/weapons/w_luger_p08.mdl", "m9k_luger", 3500, 1, false, 3500, false, {TEAM_TRAFIQUANT})
AddCustomShipment("Raging Bull x1", "models/weapons/w_hk45c.mdl", "m9k_ragingbull", 5500, 1, false, 5500, false, {TEAM_TRAFIQUANT})
AddCustomShipment("S&W 500 x1", "models/weapons/w_sw_model_500.mdl", "m9k_model500", 5800, 1, false, 5800, false, {TEAM_TRAFIQUANT})
AddCustomShipment("M29 Satan x1", "models/weapons/w_m29_satan.mdl", "m9k_m29satan", 5700, 1, false, 5700, false, {TEAM_TRAFIQUANT})
AddCustomShipment("Baretta x1", "models/weapons/w_beretta_m92.mdl", "m9k_m92beretta", 3500, 1, false, 3500, false, {TEAM_TRAFIQUANT})
AddCustomShipment("S&W Model 3 Russian x1", "models/weapons/w_model_3_rus.mdl", "m9k_model3russian", 6200, 1, false, 6200, false, {TEAM_TRAFIQUANT})
AddCustomShipment("S&W 627 x1", "models/weapons/w_sw_model_627.mdl", "m9k_model627", 6500, 1, false, 6500, false, {TEAM_TRAFIQUANT})
AddCustomShipment("Acr x1", "models/weapons/w_masada_acr.mdl", "m9k_acr", 17500, 1, false, 17500, false, {TEAM_TRAFIQUANT})
AddCustomShipment("AMD 65 x1", "models/weapons/w_amd_65.mdl", "m9k_amd65", 12500, 1, false, 12500, false, {TEAM_TRAFIQUANT})
AddCustomShipment("FN FAL x1", "models/weapons/w_fn_fal.mdl", "m9k_fal", 12000, 1, false, 12000, false, {TEAM_TRAFIQUANT})
AddCustomShipment("M14 x1", "models/weapons/w_snip_m14sp.mdl", "m9k_m14sp", 13500, 1, false, 13500, false, {TEAM_TRAFIQUANT})
--AddCustomShipment("M16 Scoped x1", "models/weapons/w_dmg_m16ag.mdl", "m9k_m16a4_acog", 15000, 1, false, 15000, false, {TEAM_SWAT})
AddCustomShipment("HK 416 x1", "models/weapons/w_hk_416.mdl", "m9k_m416", 15000, 1, false, 15000, false, {TEAM_TRAFIQUANT})
AddCustomShipment("Scar x1", "models/weapons/w_fn_scar_h.mdl", "m9k_scar", 15000, 1, false, 15000, false, {TEAM_TRAFIQUANT})
--AddCustomShipment("TAR-21 x1", "models/weapons/w_imi_tar21.mdl", "m9k_tar21", 525, 1, true, 123, true, {TEAM_TRAFIQUANT})
--AddCustomShipment("Val x1", "models/weapons/w_dmg_vally.mdl", "m9k_val", 550, 1, true, 123, true, {TEAM_TRAFIQUANT})
--AddCustomShipment("SR-3M Vikhr x1", "models/weapons/w_dmg_vikhr.mdl", "m9k_vikhr", 450, 1, true, 123, true, {TEAM_TRAFIQUANT})
--AddCustomShipment("Winchester 73 x1", "models/weapons/w_winchester_1873.mdl", "m9k_winchester73", 15000, 1, false, 15000, false, {TEAM_GUN})
AddCustomShipment("1887 Winchester x1", "models/weapons/w_winchester_1887.mdl", "m9k_1887winchester", 12000, 1, false, 12000, false, {TEAM_TRAFIQUANT})
--AddCustomShipment("Double Barrel x1", "models/weapons/w_double_barrel_shotgun.mdl", "m9k_dbarrel", 8000, 1, false, 8000, false, {TEAM_TRAFIQUANT})
AddCustomShipment("Jack Hammer x1", "models/weapons/w_pancor_jackhammer.mdl", "m9k_jackhammer", 40000, 1, false, 40000, false, {TEAM_TRAFIQUANT})
AddCustomShipment("Benelli M3 x1", "models/weapons/w_benelli_m3.mdl", "m9k_m3", 11000, 1, false, 11000, false, {TEAM_TRAFIQUANT})
--AddCustomShipment("Ithaca M37 x1", "models/weapons/w_ithaca_m37.mdl", "m9k_ithacam37", 400, 1, true, 123, true, {TEAM_TRAFIQUANT})
--AddCustomShipment("Mossberg x1", "models/weapons/w_mossberg_590.mdl", "m9k_mossberg590", 400, 1, true, 123, true, {TEAM_TRAFIQUANT})
--AddCustomShipment("Remington 870 x1", "models/weapons/w_remington_870_tact.mdl", "m9k_remington870", 300, 1, true, 123, true, {TEAM_TRAFIQUANT})
--AddCustomShipment("1897 Winchester x1", "models/weapons/w_winchester_1897_trench.mdl", "m9k_1897winchester", 425, 1, true, 123, true, {TEAM_TRAFIQUANT})
--AddCustomShipment("XM1014 x1", "models/weapons/w_shot_xm1014.mdl", "weapon_mad_xm1014", 1000, 1, true, 0, true, {TEAM_TRAFIQUANT})
 
Feytone

Feytone

Chuck Norris
Messages
4 741
Score réaction
1 301
Points
600
Le policier peut-il acheter un gilet pare-balles ?
 
  • Initiateur de la discussion
Julate

Julate

Geek
Messages
29
Score réaction
1
Points
65
@Feytone Non même problème : You do not have the right job to /buyshipment
 
  • Initiateur de la discussion
Julate

Julate

Geek
Messages
29
Score réaction
1
Points
65
@LuCampbell Pas très utile ^^ j'ai déjà les armes... moi c'est les accessoires et gilet le problème :) Mais merci quand même <3
 
LuCampbell

LuCampbell

Geek suprême
Messages
88
Score réaction
18
Points
115
Tu fais du remplacement ;)
 
  • Initiateur de la discussion
Julate

Julate

Geek
Messages
29
Score réaction
1
Points
65
Mais c'est pareil xD

Et sa vient d'une ligne de code... sinon il serait pas dans le F4 c'est un problème de droit
 
Diablos26

Diablos26

Psychopathe
Messages
951
Score réaction
326
Points
315
GM.Config.restrictbuypistol doit être à false s'il est à true, ou à true s'il est à false sur ton fichier de configuration.
 
  • Initiateur de la discussion
Julate

Julate

Geek
Messages
29
Score réaction
1
Points
65
je le trouve où ce fichier stp ? @Diablos26
 
  • Initiateur de la discussion
Julate

Julate

Geek
Messages
29
Score réaction
1
Points
65
J'ai trouver le dossier j'ai fais les changement et sa fonctionne pas

" You do not have the right job to /buyshipment "
 
  • Initiateur de la discussion
Julate

Julate

Geek
Messages
29
Score réaction
1
Points
65
UP
 
DNATROX

DNATROX

Geek
Messages
21
Score réaction
1
Points
80
Salut j'ai le même souci que toi cela fait 5jours que je suis bloquè :(
 
  • Initiateur de la discussion
Julate

Julate

Geek
Messages
29
Score réaction
1
Points
65
Moi sa fait 2 semaines que j'ai essayer de résoudre le problème seul... mais là j'en pouvais plus ^^
 
DNATROX

DNATROX

Geek
Messages
21
Score réaction
1
Points
80
En tout cas si tu trouve la solution dit-le moi le developpement de mon serveur est bloquè a cause de ca :/
 
ViPerZe_

ViPerZe_

Geek suprême
Messages
371
Score réaction
88
Points
150
Julate à dit:
Bonjour tout le monde, ayant déjà chercher de l'aide sur ce forum et toujours eu des aides positives <3 je reviens à vous de nouveau afin de recevoir un peu d'aide ^^

Voilà, j'ai créer un job "Quincailler" et lui est donner comme objet à vendre les accessoires de FA:S 2 (lunette, viseur, silencieux...) et les gilets par balle (lourd/moyen/léger) sauf que :
You do not have the right job to /buyshipment

Alors que :

Code:
-- Accessoires
AddCustomShipment("Acog 4x", "models/Items/BoxSRounds.mdl", "fas2_att_acog", 500, 1, false, 50, false, {TEAM_QUINCA})
AddCustomShipment("Comp M4", "models/Items/BoxSRounds.mdl", "fas2_att_compm4", 500, 1, false, 50, false, {TEAM_QUINCA})
AddCustomShipment("Elcan C79", "models/Items/BoxSRounds.mdl", "fas2_att_c79", 500, 1, false, 50, false, {TEAM_QUINCA})
AddCustomShipment("EOTech 553", "models/Items/BoxSRounds.mdl", "fas2_att_eotech", 500, 1, false, 50, false, {TEAM_QUINCA})
AddCustomShipment("Foregrip", "models/Items/BoxSRounds.mdl", "fas2_att_foregrip", 500, 1, false, 50, false, {TEAM_QUINCA})
AddCustomShipment("Harris Bipod", "models/Items/BoxSRounds.mdl", "fas2_att_harrisbipod", 500, 1, false, 50, false, {TEAM_QUINCA})
AddCustomShipment("Leupold mk4", "models/Items/BoxSRounds.mdl", "fas2_att_leupold", 500, 1, false, 50, false, {TEAM_QUINCA})
AddCustomShipment("M21 20RND Mag", "models/Items/BoxSRounds.mdl", "fas2_att_m2120mag", 500, 1, false, 50, false, {TEAM_QUINCA})
AddCustomShipment("MP5K 30RND Mag", "models/Items/BoxSRounds.mdl", "fas2_att_mp5k30mag", 500, 1, false, 50, false, {TEAM_QUINCA})
AddCustomShipment("SG 556X 30RND Mag", "models/Items/BoxSRounds.mdl", "fas2_att_sg55x30mag", 500, 1, false, 50, false, {TEAM_QUINCA})
AddCustomShipment("SKS 20RND Mag", "models/Items/BoxSRounds.mdl", "fas2_att_sks20mag", 500, 1, false, 50, false, {TEAM_QUINCA})
AddCustomShipment("Suppressor", "models/Items/BoxSRounds.mdl", "fas2_att_suppressor", 500, 1, false, 50, false, {TEAM_QUINCA})
AddCustomShipment("Tritium Sights", "models/Items/BoxSRounds.mdl", "fas2_att_tritiumsights", 500, 1, false, 50, false, {TEAM_QUINCA})
AddCustomShipment("UZI Wooden Stock", "models/Items/BoxSRounds.mdl", "fas2_att_uziwoodenstock", 500, 1, false, 50, false, {TEAM_QUINCA})
AddCustomShipment("SKS 30RND Mag", "models/Items/BoxSRounds.mdl", "fas2_att_sks30mag", 500, 1, false, 50, false, {TEAM_QUINCA})
AddCustomShipment("Medical Equipment", "models/Items/BoxSRounds.mdl", "fas2_ammo_medical", 20000, 1, false, 50, false, {TEAM_QUINCA})
AddCustomShipment("PSO 1", "models/Items/BoxSRounds.mdl", "fas2_att_pso1", 500, 1, false, 50, false, {TEAM_QUINCA})
Code:
-- Gilet par balle TEAM_POLICIERA
AddCustomShipment("Gilet par balle leger", "models/combine_vests/elitevest.mdl", "light kevlar armor", 4000, 1, false, 0, false, {TEAM_VENDEUR,TEAM_VENDEURILL,TEAM_QUINCA})
AddCustomShipment("Gilet par balle moyen", "models/combine_vests/elitevest.mdl", "light kevlar armor", 6000, 1, false, 0, false, {TEAM_VENDEUR,TEAM_VENDEURILL,TEAM_QUINCA})
AddCustomShipment("Gilet par balle lourd", "models/combine_vests/elitevest.mdl", "medium kevlar armor", 10000, 1, false, 0, false, {TEAM_VENDEUR,TEAM_VENDEURILL,TEAM_QUINCA})
AddCustomShipment("Gilet par balle leger", "models/combine_vests/elitevest.mdl", "light kevlar armor", 1000, 1, false, 0, false, {TEAM_POLICIERA})
AddCustomShipment("Gilet par balle moyen", "models/combine_vests/elitevest.mdl", "medium kevlar armor", 1500, 1, false, 0, false, {TEAM_POLICIERA})
AddCustomShipment("Gilet par balle lourd", "models/combine_vests/elitevest.mdl", "heavy kevlar armor", 2500, 1, false, 0, false, {TEAM_POLICIERA})
(oui, même problème avec les autres jobs où j'ai mis la vente de gilet par balle)

Code:
TEAM_QUINCA = DarkRP.createJob("Quincailler", { color = Color(100, 40, 10, 255), model = { "models/humans/group02/player/temale_01.mdl", "models/humans/group02/player/temale_02.mdl", "models/humans/group02/player/tale_08.mdl", "models/humans/group02/player/tale_07.mdl", "models/humans/group02/player/tale_06.mdl", "models/humans/group02/player/tale_04.mdl", "models/humans/group02/player/tale_05.mdl", "models/humans/group02/player/tale_03.mdl", "models/humans/group02/player/tale_01.mdl", "models/lopez/lopez.mdl" }, description = [[Le vendeur d'armes est la seule personne qui peut vendre des armes a d'autres personnes. Assurez-vous que vous n'etes pas pris à vendre des armes a feu illegales au public! Vous pourriez etre arretez!]], weapons = {"weapon_arc_atmcard","itemstore_pickup"}, command = "quinca", max = 2, salary = 20, admin = 0, vote = false, hasLicense = false, candemote = true, -- CustomCheck medic = false, chief = false, mayor = false, hobo = false, cook = false, PlayerDeath = function(ply, weapon, killer) ply:teamBan() ply:changeTeam(GAMEMODE.DefaultTeam, true) end
})
Essaye avec ce code,


Code:
DarkRP.createShipment("", { model = "", entity = "", price = , amount = , separate = false, pricesep = , noship = false, allowed = {},
})
Jte laisse faire les modifications adaptées.
 
  • Initiateur de la discussion
Julate

Julate

Geek
Messages
29
Score réaction
1
Points
65
je vais tester
 
DNATROX

DNATROX

Geek
Messages
21
Score réaction
1
Points
80
j'ai deja essayè cela ne marche pas de mon cotè
 
  • Initiateur de la discussion
Julate

Julate

Geek
Messages
29
Score réaction
1
Points
65
Pareil de mon côté... fonctionne toujours pas
 
DNATROX

DNATROX

Geek
Messages
21
Score réaction
1
Points
80
personnellement j'ai fait le test avec le même metier et avec un keypad cracker ca marchè niquel donc je me demande si c'est pas le gamemode/darkrp qui fait de la merdre :(
 
Discord d'entraide
Rejoignz-nous sur Discord