GetSafeCoordForPed

From GT-MP
Jump to: navigation, search
GetSafeCoordForPed
Client-Side Function
System-users.png Client-Side Javascript.png JavaScript


Returns a valid position to stand on for a ped.

Syntax

API.getSafeCoordForPed(Vector3 position, bool sidewalk = true, int flags = 0);

Required Arguments

  • position: parameter input should be in Vector3 type.
  • sidewalk: parameter input should be in bool type.
  • flags: parameter input should be in int type.

NOTE: This function returns data in Vector3 type.

Usage example(s)

API.getSafeCoordForPed(Vector3 position, bool sidewalk = true, int flags = 0);

References