Jump to content

[help]height aircraft


SpoC^

Recommended Posts

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

Link to comment

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...