I primary work on ESX framework so i use ox stuff, but if you want it to work with qb-inventory, etc… you can easily rewrite it for your use. Script is open source
when you creating stash in config, you must enter owner identifier, that allows you to change pin. And when you opening stash for first time, you need to change it and it will write in database. It’s in documentation