Jump to content

[help]height aircraft


SpoC^

Recommended Posts

Posted

Hello Friends, someone can give me an example of how would the function of the height of the aircraft

Image

01.png

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

02.png

Posted

getAircraftMaxHeight() won't work.

x,y,z = getElemenetPosition (aircraft)

and use the z along with some math, I suggest.

~ This has to be the worst board post I have ever read. It simply makes no sense. You start off by talking about space or something, then you randomly start babbling about cupcakes, and you end off with random fish names.

~ Don't listen to this guy, any board with the categories 'dinosaurs, spaceships, fried foods, wild animals, alien abductions, business casual, robots, and fireworks' has true potential.

 

Posted
getAircraftMaxHeight() won't work.

x,y,z = getElemenetPosition (aircraft)

and use the z along with some math, I suggest.

@aboudmad

Thanks, worked perfectly :)

02.png

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...