Skip to content

10% off with ROLEPLAY10

RPScripts

FiveM Police Scripts

Flashbang

Flashbang script

  • ESX

Description

This script adds a throwable flashbang (weapon_flashbang) to FiveM. Players caught in the blast are stunned for a set time, and their voice chat can be muted while they are fully flashed. Use it for police roleplay!

Configuration

The script has a separate config file where you can set:

  • Weapon label
  • Time to explosion
  • Enabling or disabling voice chat while fully flashed (works with mumble-voip and pma-voice)
  • Effect duration
  • Sound effect volume
  • Range in which the grenade works

QBCore setup

For QBCore, the original guide lists these changes:

  • Add the weapon to qb-core/shared/weapons.lua: ['weapon_flashbang'] = {['name'] = 'weapon_flashbang', ['label'] = 'flashbang', ['ammotype'] = nil, ['damagereason'] = 'Bombed / Exploded / Detonated / Blew up'},
  • Add an item entry for weapon_flashbang to qb-core/shared/items.lua. The original guide shows the weapon_grenade entry as the template: ['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'},
  • In qb-weapons/client/main.lua (around lines 180–181) add: elseif QBCore.Shared.Weapons[weapon]["name"] == "weapon_flashbang" then TriggerServerEvent('QBCore:Server:RemoveItem', "weapon_flashbang", 1)
  • In qb-inventory/client/main.lua (line 449) add weaponName == "weapon_flashbang" to the list of throwables (stickybomb, pipebomb, smokegrenade, flare, proxmine, ball, molotov, grenade, bzgas).

Details

Frameworks
ESX
File size
12.9 MB
Updated
Sep 27, 2026
How to install it

Flashbang script

$6.99€6.99£5.99A$10.99R$35.99CHF 5.99¥1,110

Can't find the exact script? Generate it.

Describe a custom script. 3 free credits per day, up to 15 per calendar month; no card needed.

Try the FiveM AI Script Generator