Was wondering if its anyway the locks can be set to stay on the Mega Drones when you destroy and respawn them with locks
Mega Drones
I generally advise players against destroying and recreating a vehicle as it causes this issue where attachments (locks, storage, etc.) become removed. It creates a problem where plugins need a way to store the attachments in some way which can be tricky to do correctly (attachments may be owned by various different plugins, and attachment data may need to be saved to a data file to handle cases where the vehicle is despawned before server shutdown and respawned by the player after server restart).
Usually when I ask why players are destroying and respawning their vehicle, the most common answer is that players want to repair the vehicle, so historically I add a sort of "repair on fetch" feature to allow players to simply fetch the vehicle in ideal condition. I'm open to adding that feature to Mega Drones if that is the use case being targeted here.
Alternatively, I'm open to adding some sort of "auto deploy lock" feature. Some plugins allow automatically deploying locks onto doors and storage boxes when deployed, so why not automatically add locks onto vehicles when spawned? In general, that would best be achieved by the respective vehicle spawner. For example, Spawn Modular Car has a feature to automatically deploy a lock onto player-spawned cars. Mega Drones could receive a similar feature.
yeah we use vehicle license which already lock to players but at the moment players have to place a lock everytime they deploy the mega drone. And I currently have them set to destroy when the player logs off so they dont leave them about. At the moment the focus is on Mega Drones. Also thinking about it I should have asked this in the Mega Drone thread, sorry about that.