{"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-12T22:22:05","modified_gmt":"2026-08-12T20:22:05","slug":"flashbang-script","status":"publish","type":"product","link":"https:\/\/fivemx.com\/pl\/flashbang-script\/","title":{"rendered":"Skrypt 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\">\nhttps:\/\/www.youtube.com\/watch?v=hR1Qrz4Iifw&#038;feature=youtu.be\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>Skrypt posiada oddzielny plik konfiguracyjny, w kt\u00f3rym mo\u017cesz ustawi\u0107 takie rzeczy jak:<\/p>\n<ul>\n<li>Etykieta broni<\/li>\n<li>Czas do eksplozji<\/li>\n<li>W\u0142\u0105czanie\/wy\u0142\u0105czanie czatu g\u0142osowego przy pe\u0142nym b\u0142ysku (dzia\u0142a z mumble-voip i pma-voice)<\/li>\n<li>Czas trwania efektu<\/li>\n<li>G\u0142o\u015bno\u015b\u0107 efekt\u00f3w d\u017awi\u0119kowych<\/li>\n<li>Zasi\u0119g dzia\u0142ania granatu<\/li>\n<\/ul>\n<p>Optymalizacja: 0,1 ms bezczynno\u015bci, 0,05 ms maksymalnie podczas pracy<\/p>\n<p><strong>U\u017cyj tego granatu o\u015blepiaj\u0105cego dla swojego <a href=\"https:\/\/fivemx.com\/pl\/skrypty-policyjne\/\"  data-wpil-monitor-id=\"507\">policyjny roleplay!<\/a><\/strong><\/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\/pl\/wp-json\/wp\/v2\/product\/43770","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fivemx.com\/pl\/wp-json\/wp\/v2\/product"}],"about":[{"href":"https:\/\/fivemx.com\/pl\/wp-json\/wp\/v2\/types\/product"}],"replies":[{"embeddable":true,"href":"https:\/\/fivemx.com\/pl\/wp-json\/wp\/v2\/comments?post=43770"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/fivemx.com\/pl\/wp-json\/wp\/v2\/media\/43771"}],"wp:attachment":[{"href":"https:\/\/fivemx.com\/pl\/wp-json\/wp\/v2\/media?parent=43770"}],"wp:term":[{"taxonomy":"product_brand","embeddable":true,"href":"https:\/\/fivemx.com\/pl\/wp-json\/wp\/v2\/product_brand?post=43770"},{"taxonomy":"product_cat","embeddable":true,"href":"https:\/\/fivemx.com\/pl\/wp-json\/wp\/v2\/product_cat?post=43770"},{"taxonomy":"product_tag","embeddable":true,"href":"https:\/\/fivemx.com\/pl\/wp-json\/wp\/v2\/product_tag?post=43770"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}