proracer Posted January 30, 2011 Posted January 30, 2011 I thought if I can anyhow attach GUI element (in this case picture, healthbar) to a player above he's head?
Castillo Posted January 30, 2011 Posted January 30, 2011 I would recommend using DX drawing functions for this kind of stuff.
DiSaMe Posted January 30, 2011 Posted January 30, 2011 To get screen coordinates of some world position, use getScreenFromWorldPosition. Then you can use guiSetPosition to keep changing the position of the GUI, but as Solidsnake14 suggested, DX drawing functions are recommended.
proracer Posted January 30, 2011 Author Posted January 30, 2011 Okay, thx I will try.I saw in the file /race/nametags.lua that it uses functions: getCameraMatrix,getPedOccupiedVehicle,getElementPosition,getDistanceBetweenPoints3D and than getScreenFromWorldPosition.
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