[Help] Disable trainer when dead VRP

Hi, I’m using the VRP framework and when you get killed, you’re in a coma state for five minutes then you respawn.
I modified mello trainer so that people can only edit cosmetics of their character and vehicles just by deleting bits in the html. The problem is people found out if they open their trainer while unconscious and change ped, it restores their health…is there a way to make it so if
if (in_coma true) then (
Disable trainer input)
or something like that. Because I really need to get this fixed
and I don’t know the variables nor the coding language.
Thanks for reading