Problème d'armes

  • Initiateur de la discussion
S

surky

Geek suprême
Messages
378
Score réaction
26
Points
125
Bonsoir j'ai un problème avec mon métier vendeur d'armes quand il achete une arme dans le f4 sa spawn la caisse et quand la caisse est charger sa despawn la caisse et l'armes est beug avec cette erreur


There are 3 Lua problems!
Please check your console for more information!
[ERROR] A runtime error has occurred in "[C]" on line -1.
The best help I can give you is this:

spawned_weapon has model "models/weapons/w_deserteagle.mdl" with no physics and will be motionless

Hints:
- Does this model have an associated physics model (modelname.phy)?
- Is this model supposed to have physics? Many models, like effects and view models aren't made to have physics
- The issue lies with weapon "fas2_glock20"

The responsibility for the error above lies with (the authors of) one (or more) of these files:
1. function 'Spawn'
2. gamemodes/darkrp/entities/entities/spawned_shipment/init.lua on line 148
3. gamemodes/darkrp/entities/entities/spawned_shipment/init.lua on line 105
------- End of Simplerr error -------

[ERROR] A runtime error has occurred in "[C]" on line -1.
The best help I can give you is this:

spawned_weapon has model "models/weapons/w_deserteagle.mdl" with no physics and will be motionless

Hints:
- Does this model have an associated physics model (modelname.phy)?
- Is this model supposed to have physics? Many models, like effects and view models aren't made to have physics
- The issue lies with weapon "fas2_glock20"

The responsibility for the error above lies with (the authors of) one (or more) of these files:
1. function 'Spawn'
2. gamemodes/darkrp/entities/entities/spawned_shipment/init.lua on line 148
3. gamemodes/darkrp/entities/entities/spawned_shipment/init.lua on line 105
------- End of Simplerr error -------

[ERROR] A runtime error has occurred in "[C]" on line -1.
The best help I can give you is this:

spawned_weapon has model "models/weapons/w_deserteagle.mdl" with no physics and will be motionless

Hints:
- Does this model have an associated physics model (modelname.phy)?
- Is this model supposed to have physics? Many models, like effects and view models aren't made to have physics
- The issue lies with weapon "fas2_glock20"

The responsibility for the error above lies with (the authors of) one (or more) of these files:
1. function 'Spawn'
2. gamemodes/darkrp/entities/entities/spawned_shipment/init.lua on line 148
3. gamemodes/darkrp/entities/entities/spawned_shipment/init.lua on line 105
------- End of Simplerr error -------

Voici mon armes dans le shipment.lua

DarkRP.createShipment("Desert eagle", {
model = "models/weapons/w_deserteagle.mdl",
entity = "fas2_deagle",
price = 6000,
amount = 1,
separate = false,
noship = false,
allowed = {TEAM_GUN},
category = "Pistolet"
})


Merci
 
SuperTata

SuperTata

Geek suprême
Messages
180
Score réaction
11
Points
125
Comme tu peux voir, c'est un problème avec le Modèle =
spawned_weapon has model "models/weapons/w_deserteagle.mdl" with no physics and will be motionless
"


Moi, pour mon Desert Eagle, c'et ça. -->

DarkRP.createShipment("Desert Eagle", {
model = "models/weapons/w_tcom_deagle.mdl",
entity = "m9k_deagle",
amount = 1,
price = 25000,
separate = false,
pricesep = 0,
noship = false,
category = "Pistolets",
allowed = {TEAM_VENDEURARMES}
})
 
  • Initiateur de la discussion
S

surky

Geek suprême
Messages
378
Score réaction
26
Points
125
SuperTata à dit:
Comme tu peux voir, c'est un problème avec le Modèle =
spawned_weapon has model "models/weapons/w_deserteagle.mdl" with no physics and will be motionless
"


Moi, pour mon Desert Eagle, c'et ça. -->

DarkRP.createShipment("Desert Eagle", {
model = "models/weapons/w_tcom_deagle.mdl",
entity = "m9k_deagle",
amount = 1,
price = 25000,
separate = false,
pricesep = 0,
noship = false,
category = "Pistolets",
allowed = {TEAM_VENDEURARMES}
})

Comment ça ? car j'utilise les FAS comment je peut règlé ce problème ?
 
SuperTata

SuperTata

Geek suprême
Messages
180
Score réaction
11
Points
125
surky à dit:
Comment ça ? car j'utilise les FAS comment je peut règlé ce problème ?
DarkRP.createShipment("Desert Eagle", {
model = "models/weapons/w_pist_elite_single.mdl",
entity = "fas2_deagle",
price= 6000

amount = 1,
separate = false,
noship = false,
allowed = {TEAM_GUN},
category = "Pistolet"
})

Essaye cela ?
 
Jo Ballas

Jo Ballas

Geek suprême
Messages
561
Score réaction
103
Points
150
Pourquoi l'erreur t'indique fas2_glock20 alors que tu nous montre un shipment fas2_deagle dans ton exemple, je pense que tu dois avoir plusieurs erreur liée a ton shipment fas2_glock20 & fas2_deagle
Et il t'indique aussi pour ton DesertEagle qu'il n y a pas de models physique et qu'il sera immobile en gros vérifie que tu as bien indiquer le model, et l'entity correspondant a ton DesertEagle et ton Glock 20 sinon cela ne fonctionneras pas.
Tu aussi ceci dans ton erreur [ERROR] A runtime error has occurred in "[C]" on line -1. cela me laisse penser que ta première erreur proviens d'une erreur sur ton premier shipment
Si le problème persiste je te conseille de refaire tes shipments 1 par 1 et de vérifier a chaque fois qu'ils fonctionnes avant d'en rajouter des nouveaux !

Dernière chose n'oublie pas la virgule (je n'en suis pas certain mais j'ai check un vieux shipment qui traînais sur mon bureau cela ce présente comme ceci)

DarkRP.createShipment("Desert Eagle", {
model = "models/weapons/w_pist_deagle.mdl",
entity = "m9k_deagle",
price = 2000,
amount = 1,
separate = false,
pricesep = 2000,
noship = false,
allowed = {TEAM_MARCHANDASSAULT},
})
 
Discord d'entraide
Rejoignz-nous sur Discord