AddStateBagChangeHandler("isDead", null, async (bagName, key, value /* boolean */) => {
const ply = GetPlayerFromStateBagName(bagName);
// The player doesn't exist!
if (ply === 0) return;
console.log(`Player: ${GetPlayerName(ply)} ${value ? 'died!' : 'is alive!'`)
})