{"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":"2025-12-24T07:29:39","modified_gmt":"2025-12-24T06:29:39","slug":"roteiro-de-flashbang","status":"publish","type":"product","link":"https:\/\/fivemx.com\/pt\/flashbang-script\/","title":{"rendered":"Roteiro Flashbang"},"content":{"rendered":"\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe title=\"[FiveM] mmflashbang - The best flashbangs on the market!\" width=\"1290\" height=\"726\" src=\"https:\/\/www.youtube.com\/embed\/hR1Qrz4Iifw?feature=oembed\" loading=\"lazy\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\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>O script tem um arquivo de configura\u00e7\u00e3o separado onde voc\u00ea pode configurar coisas como:<\/p>\n<ul>\n<li>Etiqueta da arma<\/li>\n<li>Hora da explos\u00e3o<\/li>\n<li>Habilitar\/desabilitar o chat de voz enquanto estiver totalmente flasheado (funciona com mumble-voip e pma-voice)<\/li>\n<li>Dura\u00e7\u00e3o do efeito<\/li>\n<li>Volume do efeito sonoro<\/li>\n<li>Alcance em que a granada funciona<\/li>\n<\/ul>\n<p>Otimiza\u00e7\u00e3o: 0,1 ms ocioso, 0,05 ms m\u00e1ximo durante o trabalho<\/p>\n<p><strong>Use esta granada de luz para o seu <a href=\"https:\/\/fivemx.com\/pt\/roteiros-policiais-2\/\" data-wpil-monitor-id=\"507\">encena\u00e7\u00e3o policial!<\/a><\/strong><\/p>","protected":false},"featured_media":206751,"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\/pt\/wp-json\/wp\/v2\/product\/43770","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fivemx.com\/pt\/wp-json\/wp\/v2\/product"}],"about":[{"href":"https:\/\/fivemx.com\/pt\/wp-json\/wp\/v2\/types\/product"}],"replies":[{"embeddable":true,"href":"https:\/\/fivemx.com\/pt\/wp-json\/wp\/v2\/comments?post=43770"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/fivemx.com\/pt\/wp-json\/wp\/v2\/media\/206751"}],"wp:attachment":[{"href":"https:\/\/fivemx.com\/pt\/wp-json\/wp\/v2\/media?parent=43770"}],"wp:term":[{"taxonomy":"product_brand","embeddable":true,"href":"https:\/\/fivemx.com\/pt\/wp-json\/wp\/v2\/product_brand?post=43770"},{"taxonomy":"product_cat","embeddable":true,"href":"https:\/\/fivemx.com\/pt\/wp-json\/wp\/v2\/product_cat?post=43770"},{"taxonomy":"product_tag","embeddable":true,"href":"https:\/\/fivemx.com\/pt\/wp-json\/wp\/v2\/product_tag?post=43770"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}