Skip to content

10% off shop orders, applied at checkout

RPScripts

FiveM Police Scripts

Flashbang script

Bought 16 times
Frameworks:
  • ESX
Flashbang
Check compatibility with your server

Details

Frameworks
ESX
File size
12.9 MB
How to install it
Licence and support terms
  • Licence: for your own server or project. No resale or sharing.
  • Updates: when a newer file is available, it appears in your account downloads.
  • Support: download access and product-specific setup questions.
Licence and support terms

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).
In your downloads
  • Origen Police
    • ESX
    • QBCore
    Not for your framework

    Origen Police (QBCore & ESX)

    Origen Network

    $20.70
  • CD Dispatch FiveM resource preview
    • ESX
    • QBCore
    Not for your framework

    CD Dispatch

    Codesign

    $18.00
  • MDT
    • ESX
    Not for your framework

    Police System CAD/MDT

    $22.49
  • Megaphone Mod (Vehicle & Handheld) FiveM resource preview
    • ESX
    • QBCore, Qbox
    Not for your framework

    Megaphone Mod (Vehicle & Handheld)

    ScriptsM

    $17.10
  • Advanced Police Job FiveM resource preview
    • ESX
    • QBCore, Qbox
    Not for your framework

    Advanced Police Job

    Wasabi Scripts

    $26.99
  • Prison
    • ESX
    • Standalone, QBCore, Qbox

    Prison all-in-one system

    rcore

    $28.80
  • Helicopter Camera FiveM resource preview
    • ESX
    • QBCore, Standalone

    Helicopter Camera

    Mads

    $10.80
  • BodyCam + Dashcam (Infinity & OneSync) FiveM resource preview
    • ESX
    Not for your framework

    BodyCam + Dashcam (Infinity & OneSync)

    $14.39