Currently it only works with peds.
You could experiment with the unparsed CVehicleHealthDataNode
fields to determine if any correlate to entity health. For example, checking (Console commands - Cfx.re Docs) if unk16
and unk17
of fivem/code/components/citizen-server-impl/include/state/SyncTrees_Five.h at master · citizenfx/fivem · GitHub correlate to “has max health” and “health” respectively.