lolman Posted June 27, 2015 Posted June 27, 2015 Hello, I'm currently busy with making a HUD but at the part oxygen I want to let it show only if you are under water. What's the eventhandler for that?
lolman Posted June 27, 2015 Author Posted June 27, 2015 function oxygen() local oxygen = getPedOxygenLevel(localPlayer) if isElementInWater(localPlayer) then dxDrawText("Oxygen: %"..tostring(math.round(oxygen, 0)),20.0,380.0,296.0,301.0,tocolor(0,255,0,255),0.5,"bankgothic","left","top",false,false,false) end end I used it but didn't work...
DNL291 Posted June 27, 2015 Posted June 27, 2015 I would say it's the 'bottom' argument in dxDrawText function which is wrong.
lolman Posted June 27, 2015 Author Posted June 27, 2015 Well, I forgot to mention that I've fixed the script a while ago Anyways thanks for trying to help me out
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now