public static void SkyDive() { int ped = PLAYER.PLAYER_PED_ID(); Vector3 vec = ENTITY.GET_ENTITY_COORDS(ped, true); ENTITY.SET_ENTITY_COORDS(ped, vec.X, vec.Y, 2500f, true, true, true, true); AI.TASK_SKY_DIVE(ped); }
public static void TeleportToWaypoint() { Vector3 wp = WayPoint(); if (wp.X == 0) { return; } GAMEPLAY.GET_GROUND_Z_FOR_3D_COORD(wp.X, wp.Y, 5000.0f, RPC.FreePointer, true); float z = PS4.Extension.ReadFloat(RPC.FreePointer); int ped = PLAYER.PLAYER_PED_ID(); int veh = PED.GET_VEHICLE_PED_IS_IN(ped, false); ENTITY.SET_ENTITY_COORDS(veh == 0 ? ped : veh, wp.X, wp.Y, z, true, true, true, true); }