How to remove selected weapon when die?

i want remove selected weapon when player die. i try some way but nothing happen.

use GitHub - Deziel0495/WeaponDrop: Drop the weapon you are currently holding by pressing F9.

Hi,

You can just use SetPedDropsWeaponsWhenDead to ensure players drop their selected weapon upon death.