SetPlayerPosFindZ

From SA-MP Wiki

Jump to: navigation, search


This sets the players position then adjusts the players z-coordinate to the nearest solid ground under the position.


Parameters:
(playerid, Float:x, Float:y, Float:z)
playeridThe ID of the player to set the position of.
Float:xThe X coordinate to position the player at.
Float:yThe X coordinate to position the player at.
Float:zThe Z coordinate to position the player at.


ReturnsThis function doesn't return a specific value


SetPlayerPosFindZ(playerid, 1567.0, 1252.0, 80.0);

Related Functions

The following functions may be useful, as they are related to this function in one way or another.


Related Callbacks

The following callbacks might be useful, as they're related to this function in one way or another.

  • OnPlayerClickMap: Called when a player sets a waypoint/target on the pause menu map.
Personal tools