{"id":43770,"date":"2022-09-19T20:18:59","date_gmt":"2022-09-19T18:18:59","guid":{"rendered":"https:\/\/esx-scripts.com\/?post_type=product&#038;p=43770"},"modified":"2026-08-06T12:32:49","modified_gmt":"2026-08-06T10:32:49","slug":"script-de-flashbang","status":"publish","type":"product","link":"https:\/\/fivemx.com\/fr\/script-de-flashbang\/","title":{"rendered":"Sc\u00e9nario de flashbang"},"content":{"rendered":"\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p class=\"wp-block-paragraph\">for all the people with the QBCORE- this is how you make it work.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">add this to qbcore\/shared\/weapons.lua<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">[weapon_flashbang] = {[\u2018name\u2019] = \u2018weapon_flashbang\u2019, [\u2018label\u2019] = \u2018flashbang\u2019, [\u2018ammotype\u2019] = nil, [\u2018damagereason\u2019] = \u2018Bombed \/ Exploded \/ Detonated \/ Blew up\u2019},<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">add this to qbcore\/shared\/items.lua<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">[\u2018weapon_grenade\u2019] = {[\u2018name\u2019] = \u2018weapon_grenade\u2019, [\u2018label\u2019] = \u2018Grenade\u2019, [\u2018weight\u2019] = 1000, [\u2018type\u2019] = \u2018weapon\u2019, [\u2018ammotype\u2019] = nil, [\u2018image\u2019] = \u2018images\/weapon_grenade.png\u2019, [\u2018unique\u2019] = true, [\u2018useable\u2019] = false, [\u2018description\u2019] = \u2018A handheld throwable bomb\u2019},<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">add this to qb-weapons\/client\/main.lua inside of lines 180-181<br>elseif QBCore.Shared.Weapons[weapon][&#8220;name&#8221;] == &#8220;weapon_flashbang&#8221; then<br>TriggerServerEvent(&#8216;QBCore:Server:RemoveItem&#8217;, &#8220;weapon_flashbang&#8221;, 1)<br>replace line 449 inside of qb-inventory\/client\/main.lua with this<br>elseif weaponName == &#8220;weapon_stickybomb&#8221; or weaponName == &#8220;weapon_pipebomb&#8221; or weaponName == &#8220;weapon_smokegrenade&#8221; or weaponName == &#8220;weapon_flare&#8221; or weaponName == &#8220;weapon_proxmine&#8221; or weaponName == &#8220;weapon_ball&#8221; or weaponName == &#8220;weapon_molotov&#8221; or weaponName == &#8220;weapon_grenade&#8221; or weaponName == &#8220;weapon_flashbang&#8221; or weaponName == &#8220;weapon_bzgas&#8221; then<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Le script Flashbang ajoute une arme flashbang configurable aux serveurs FiveM, avec des options pour le minuteur d'explosion, la dur\u00e9e de l'effet, le volume sonore, la port\u00e9e et la d\u00e9sactivation de la communication vocale pendant l'\u00e9blouissement.<\/p>","protected":false},"featured_media":43771,"comment_status":"open","ping_status":"closed","template":"","meta":[],"product_brand":[],"product_cat":[2442,96,1820],"product_tag":[],"class_list":["post-43770","product","type-product","status-publish","has-post-thumbnail","product_cat-fivem-weapon-mods","product_cat-esx-scripts","product_cat-police-scripts","first","instock","sale","downloadable","virtual","taxable","purchasable","product-type-simple"],"_links":{"self":[{"href":"https:\/\/fivemx.com\/fr\/wp-json\/wp\/v2\/product\/43770","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fivemx.com\/fr\/wp-json\/wp\/v2\/product"}],"about":[{"href":"https:\/\/fivemx.com\/fr\/wp-json\/wp\/v2\/types\/product"}],"replies":[{"embeddable":true,"href":"https:\/\/fivemx.com\/fr\/wp-json\/wp\/v2\/comments?post=43770"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/fivemx.com\/fr\/wp-json\/wp\/v2\/media\/43771"}],"wp:attachment":[{"href":"https:\/\/fivemx.com\/fr\/wp-json\/wp\/v2\/media?parent=43770"}],"wp:term":[{"taxonomy":"product_brand","embeddable":true,"href":"https:\/\/fivemx.com\/fr\/wp-json\/wp\/v2\/product_brand?post=43770"},{"taxonomy":"product_cat","embeddable":true,"href":"https:\/\/fivemx.com\/fr\/wp-json\/wp\/v2\/product_cat?post=43770"},{"taxonomy":"product_tag","embeddable":true,"href":"https:\/\/fivemx.com\/fr\/wp-json\/wp\/v2\/product_tag?post=43770"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}