PATHFIND
GET_SAFE_COORD_FOR_PED
0xB61C8E878A4199CA
Jenkins: 0xB370270A
Signature
// PATHFIND
BOOL GET_SAFE_COORD_FOR_PED(float x, float y, float z, BOOL onGround, Vector3* outPosition, int flags)
Parameters
| Type | Name |
|---|---|
| float | x |
| float | y |
| float | z |
| BOOL | onGround |
| Vector3* | outPosition |
| int | flags |
Return type BOOL
Build 323
Documentation
Flags are: 1 = 1 = B02_IsFootpath 2 = 4 = !B15_InteractionUnk 4 = 0x20 = !B14_IsInterior 8 = 0x40 = !B07_IsWater 16 = 0x200 = B17_IsFlatGround When onGround == true outPosition is a position located on the nearest pavement. When a safe coord could not be found the result of a function is false and outPosition == Vector3.Zero. In the scripts these flags are used: 0, 14, 12, 16, 20, 21, 28. 0 is most commonly used, then 16. 16 works for me, 0 crashed the script.
APPI RP
Join us on FiveM
Semi-Serious GTA V roleplay on APPI RolePlay — hop into Discord for rules and onboarding, then follow the guide when you're ready to connect.