use the command
Fuel to get the fuel on a scale of 0-1.
Using
ammo will be trickier, as it only gives the number of rounds left in the current magazine.
To find the max you would need some in depth cfg knowledge.
See if the guys in the addon department could help.
Luke