SpoC^ Posted November 18, 2014 Share Posted November 18, 2014 Hello Friends, someone can give me an example of how would the function of the height of the aircraft Image my result, no sucessful local vehicle = getPedOccupiedVehicle(getLocalPlayer()) local height = getAircraftMaxHeight(vehicle) dxDrawRectangle(sW*255, sH*679, sW*50, sH*16, tocolor(0, 0, 0, 100), false)--fundo dxDrawBorderedText(height.."Mts",sW*150, sH*680, sW*605/2, sH*30/2,tocolor(255,255,255,255),1.0,"default-bold","right","top",false,false,false) local height = getAircraftMaxHeight() dxDrawRectangle(sW*255, sH*679, sW*50, sH*16, tocolor(0, 0, 0, 100), false)--fundo dxDrawBorderedText(height.."Mts",sW*150, sH*680, sW*605/2, sH*30/2,tocolor(255,255,255,255),1.0,"default-bold","right","top",false,false,false) independent of height gets always in 800 Link to comment
AJXB Posted November 18, 2014 Share Posted November 18, 2014 getAircraftMaxHeight() won't work. x,y,z = getElemenetPosition (aircraft) and use the z along with some math, I suggest. Link to comment
SpoC^ Posted November 18, 2014 Author Share Posted November 18, 2014 getAircraftMaxHeight() won't work.x,y,z = getElemenetPosition (aircraft) and use the z along with some math, I suggest. @aboudmad Thanks, worked perfectly 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