I want to create a UI app that essentially acts as a tech inspection for a racing series, I want to make a UI to poll the currently selected car and go through all of it's parts and decide if it's allowed. I've figured out that by using getControlVehicle() I can get the beamNGVehicle object returned. Once I have this, I don't know how to actually use the returned object to go through it's parts, and setup. Thanks in advance, any help is greatly appreciated, you don't have to send a whole code block detailing exactly how to do it, though it would be appreciated, I can work with the documentation that covers how i'd go about this too!
you just need to do alot of reading. its there, trust me. find where the line says your car is spawned and i think just look below it.
not really help full, even if you know the answer is there you can at least link to one post that will op https://www.beamng.com/threads/get-player-vehicle-and-config-solved.42498/#post-639600
I appreciate the help, I forgot to mark this as solved, but I ended up staying up really late that night and eventually came up with this solution Code: for k,v in pairs(partmgmt.getConfig().parts) do print(k,v) end edit: didn't know how to do a code block