Make npc don't drop weapon on death

Hello,
I need a lua script that allow or not weapon spawning when a npc die with a console command like “npc_drop_weapon (1/0)” …

Thanks for reading.
Goodbye!