Display hud in different things [onfoot/onvehicle]

hi i want to disable map on foot, and display custom text about health, armor, VOIP.

what is the function to make a drawtext to display only on foot/on vehicle.

[RELEASE] DOJ styled carhud
[Discontinued] Advanced Car Hud System (9/14/2017) v2

Ask here for better help