lolman Posted June 27, 2015 Share 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? Link to comment
Tomas Posted June 27, 2015 Share Posted June 27, 2015 Do you mean this? isElementInWater Link to comment
lolman Posted June 27, 2015 Author Share 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... Link to comment
DNL291 Posted June 27, 2015 Share Posted June 27, 2015 I would say it's the 'bottom' argument in dxDrawText function which is wrong. Link to comment
lolman Posted June 27, 2015 Author Share 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 Link to comment
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