Script for newbie

Hello, all,
sorry for my bad english.

I am a beginner.
I try to make a status bar, like health, armor, take out, thirst, stamina, and a few others.
Am I having an obstacle to making an oxygen bar?
I don’t know the script, like the script for “GetPedArmour” armor or the health “GetEntityHealth” whereas for the oxygen script I don’t know.
can anyone help me give a script for the oxygen bar?
or where is the place for me to get it?
thank you

The “script” you are referring to is actually called a “native”. All of the natives can be found here https://runtime.fivem.net/doc/natives/

Thank you for your help.
now I understand that it’s called native.
what is the right keyword for oxygen bar?
because I did not find oxygen in the search

1 Like

here ya go
https://runtime.fivem.net/doc/natives/?_0x6BA428C528D9E522

can anyone give me a ready-made script for making oxygen bar?

thank you all.
i fix it with ‘GetPlayerUnderwaterTimeRemaining’.
now i have oxygen bar.

what hud are you using?

i am using this