Feel free to look inside the code to take the stuff into your backpack.
I learned all of this from griffpatch and remade all the code by myself.