pour tous ceux qui ont QBCORE, voici comment le faire fonctionner.
ajoutez ceci à qbcore/shared/weapons.lua
[weapon_flashbang] = {[‘name’] = ‘weapon_flashbang’, [‘label’] = ‘flashbang’, [‘ammotype’] = nil, [‘damagereason’] = ‘Bombed / Exploded / Detonated / Blew up’},
ajoutez ceci à qbcore/shared/items.lua
[‘weapon_grenade’] = {[‘name’] = ‘weapon_grenade’, [‘label’] = ‘Grenade’, [‘weight’] = 1000, [‘type’] = ‘weapon’, [‘ammotype’] = nil, [‘image’] = ‘images/weapon_grenade.png’, [‘unique’] = true, [‘useable’] = false, [‘description’] = ‘A handheld throwable bomb’},
ajoutez ceci à qb-weapons/client/main.lua à l'intérieur des lignes 180-181
sinon si QBCore.Shared.Weapons[arme][« nom »] == « weapon_flashbang » alors
TriggerServerEvent(‘QBCore:Server:RemoveItem’, “weapon_flashbang”, 1)
remplacez la ligne 449 à l'intérieur de qb-inventory/client/main.lua par ceci
elseif weaponName == “weapon_stickybomb” ou weaponName == “weapon_pipebomb” ou weaponName == “weapon_smokegrenade” ou weaponName == “weapon_flare” ou weaponName == “weapon_proxmine” ou weaponName == “weapon_ball” ou weaponName == “weapon_molotov” ou weaponName == “weapon_grenade” ou weaponName == “weapon_flashbang” ou weaponName == “weapon_bzgas” then

![[ESX] Aperçu de la ressource FiveM pour le travail avancé d'ambulance](https://fivemx.com/wp-content/uploads/2023/10/chrome_r89t4g1UUb-jpg-500x375.avif)



Avis
Il n’y a pas encore d’avis.