I'm currently using a LUA script to count the number of Ai in P3D v4 using the offset 025C. But that only gives the total count and doesn't differentiate between ground and airborne.
I've looked though the Offsets file but can't find anything that would give me this info. I still use Traffic Look and that can show them separately. Is it possible to do the same via LUA?
please try this updated version (still 5.151b): FSUIPC5.txt
This contains some corrections for AI trafiic transitioning from air-to-ground and ground-to-air.