Don't know if it is helpful to anyone, but I have the following in my login script to automatically open all packages:
PHP:
if (can_interact()) for i from 1167 to 1171 cli_execute("use * "+to_item(i));
I'm pretty sure mafia will adjust your inventory correctly when you open packages.