Jump to content

1 Screenshot

About This File

The actual file is too big for RageMP, and is instead hosted on Git LFS. You can get it from my Github repository at

https://github.com/Andreas1331/ragemp-gtav-heightmap

The repository contains a helpful file with Z-heights for any given X,Y coordinate in GTA:V. I originally wrote a client-side script in JavaScript back in 2018 that would teleport the player in a grid pattern and grab the heights around him using:

entity.getHeight(X, Y, Z, atTop, inWorldCoords);

from  https://wiki.rage.mp/index.php?title=Entity::getHeight  

This is not perfect, and I'm pretty sure that there exists proper height maps that would produce the same or something of higher quality.

All heights are within a bounded box with a lower left point and upper right point in world coordinates:

  • LOWER LEFT: (-4100,-4300)
  • UPPER RIGHT: (4300, 7825)

This covers the land of San Andreas and must of the surrounding waters.

Beaware that some heights might be 0, but my experience is that this is only a few of them.

To use:

float height = GetHeightAtXY(goto.X, goto.Y);
NAPI.Entity.SetEntityPosition(ply, new Vector3(goto.X, goto.Y, height));
  • Like 1

User Feedback

Create an account or sign in to leave a review

You need to be a member in order to leave a review

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

Kopra

  

I would rather use client-side procedure, but this can also be useful. Good job.

×
×
  • Create New...