Skip to content

Conversation

@MohabCodeX
Copy link
Contributor

Fixes : #4337 , Tested.

I removed the manual event call from DestroySatchelCharges and let only the explosion manager handle the event firing, ensuring satchel explosions behave consistently with other explosives like grenades and eliminating the duplicate event triggers.

addEventHandler("onClientExplosion", root,
    function(x, y, z, theType, theVehicle)
        outputChatBox("Explosion detected at: " .. x .. ", " .. y .. ", " .. z, 255, 100, 100)
    end
)

Before:
❌ Event was being triggered twice due to both manual and automatic invocation.

After:
✅ Now triggered only once as expected, preventing duplicate event calls.

Also Tested all Explosion types :

local explosionTypes = {
    [0] = "Grenade",
    [1] = "Molotov",
    [2] = "Rocket",
    [3] = "Car",
    [4] = "Quick Car",
    [5] = "Boat",
    [6] = "Helicopter",
    [7] = "Mine",
    [8] = "Object",
    [9] = "Tank Grenade",
    [10] = "Small",
    [11] = "Tear Gas",
    [12] = "Fire",
    [13] = "Unknown"
}

@MohabCodeX
Copy link
Contributor Author

fixed , no need for this PR

@MohabCodeX MohabCodeX closed this Aug 5, 2025
@MohabCodeX MohabCodeX deleted the fix/satchel-trigger-twice branch August 15, 2025 18:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Satchels are exploding twice

1 participant