how would i create a system to make boxes/crates be placeable in a vehicle for the purpose of a cargo moving mechanic?

i want the player to be able to pick up a quest from an npc, grab a box and go to a pickup truck and have the box be placeable in the back of the pickup truck (or other vehicle), but also be able to be removed once the player has driven to where they’re meant to deliver the box so they can grab it and carry it to the the area where they need to place it in order to trigger the quest completion.