Jump to content

Blips Help


Recommended Posts

hi , i need help in my vehicle blips help . because i have created a blip, i have set the distance . but when i go far . it's still visible in radar. how can i fix this?

px,py,pz = getElementPosition( getLocalPlayer() ) 
vehicles = getElementsByType ( "vehicle" ) 
        for vehicleKey, vehicleValue in ipairs(vehicles) do   
            carx,cary,carz = getElementPosition( vehicleValue ) 
 pcDist = getDistanceBetweenPoints2D ( px, py, carx, cary ) 
            if pcDist <= 100.0 then 
      blip = createBlipAttachedTo ( vehicleValue, 0, 1, 100, 100, 100, 255, 100.0 ) 

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