This is pan-containers, one of the first scripts I started from scratch a while ago and I am now working on a rewrite to clean up the spaghetti I did the first time around.
A little bit about how it works
There are 2 items added as of now, a gps and a key. When using a GPS you will begin placement and see a transparent shipping container model, there are 4 circle markers in the corners for some basic placement validation since the containers need clearance to drop from above. Once confirmed you are asked to label the container (and the key) to help keep organised. After labeling a cargobob spawns with an NPC some distance away and begins traveling toward the marked destination where the container will be dropped and an inventory will be accessible via a target option if the player has a correct key.
All containers are persistent through server restarts. You can make duplicates of keys to hand out at the locksmith in southside (not shown in the preview).
The script began as a sort of joke between friends about having storage containers delivered by NPCs via a cargobob. At the time I knew relatively little about lua and fivem scripting so seemed like a decent project to learn with. It was made for QB-Core using qb-inventory and qb-target, but the rewrite will be using ox-inventory and ox-target instead. It is roughly 60-70% done I'd say.
Preview
Big ol' thanks to @frozen lichen for the preview video!
Any thoughts and feedback is welcome! :)