so im making a server and i want to make it like arma 3 life as much as i can

is there a way i could make a food,waterhealth hud that looks like this?

Yes using lua’s text function:

function Draw(text, r, g, b, alpha, x, y, width, height, ya, center, font)
    SetTextColour(r, g, b, alpha)
    SetTextFont(font)
    SetTextScale(width, height)
    SetTextWrap(0.0, 1.0)
    SetTextCentre(center)
    SetTextDropshadow(0, 0, 0, 0, 0)
    SetTextEdge(1, 0, 0, 0, 205)
    SetTextEntry("STRING")
    AddTextComponentString(text)
    Citizen.InvokeNative(0x61BB1D9B3A95D802, ya)
    DrawText(x, y)
end

you will need to position it your self when calling this function. example of it:

Draw('Loaded? : '..tostring(done), 255, 255, 255, 255, 0.05, 0.08, 0.25, 0.38, 1, false, 0)

how would i do it so it changes color and the text changes when you need food or water or when u have bee n shot

If you can’t do simple math for numbers to solve to different colors, what do you expect to create with this anyway?

the 255, 255, 255, 255, sets the color and you will need to write a script to handle the rest