|H|TiTanium Posted August 16, 2013 Share Posted August 16, 2013 I wanna know if it's possible to attach a label to a ped, and the label's text should get set using an editor. Also I'll need a progress bar showing ped's health above its head. I was planing to use atachElementToElement, but it says in wiki that it doesn't work with peds. If you know a way of doing these, please help me Link to comment
xXMADEXx Posted August 16, 2013 Share Posted August 16, 2013 onClientRender - Use to update the position getScreenFromWorldPosition - To make attached to peds getElementPosition - To get the ped & localPlayer position Link to comment
tosfera Posted August 16, 2013 Share Posted August 16, 2013 onClientRender - Use to update the position getScreenFromWorldPosition - To make attached to peds getElementPosition - To get the ped & localPlayer position I'm not sure but maybe you may have to use these functions too; ProcessLineOfSight IsLineOfSightClear Link to comment
|H|TiTanium Posted August 16, 2013 Author Share Posted August 16, 2013 I'm not able to test it now, but I think it's not going to work. Maybe you have misunderstood me, but for what I know these codes aren't related. Also is it possible to output element's health to a progress bar ? Link to comment
xXMADEXx Posted August 16, 2013 Share Posted August 16, 2013 I'm not able to test it now, but I think it's not going to work. Maybe you have misunderstood me, but for what I know these codes aren't related. Also is it possible to output element's health to a progress bar ? Use: getElementHealth guiProgressBarSetProgress 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