ND-Framework / ND_Core

ND Framework core
https://discord.gg/nC82d8zvjM
GNU General Public License v3.0
53 stars 37 forks source link

fix(vehicle): set metadata state for vehicle if non-existent #70

Open NotSomething0 opened 4 months ago

NotSomething0 commented 4 months ago

Fixed an issue where vehicle.setMetadata would fail if metadata wasn't already part of its current state. I also added a debug print when skipping metadata storage, for example, if setMetadata was called on an AI vehicle. I can remove it if it's not wanted, but I felt like it might be beneficial instead of silently returning.