Weapon despawn on ground

Hey, is there a way that weapons and items on the ground despawn after 5 seconds or something? ty