Skip to content

players.openParachute

Opens a falling player’s parachute, as if they pressed the key. playerOpenParachuteRequest is asked the same way.

players.openParachute(player: PlayerTarget): Promise<ActionResult>
Name Type Description
player PlayerTarget The player, or their ID.

A promise of an ActionResult: applied once the parachute opens, rejected with a code, or timeout after five seconds without an answer.

Code Meaning
ineligible The player cannot open it now, or it is already opening or open.
denied playerOpenParachuteRequest refused it.
native-unavailable The player’s game could not open it.

Open the parachute from a command while falling.

gamemodes/my-mode.ts
import { commands, players } from "nativemp";
commands.register("deploy", async (player) => {
await players.openParachute(player);
});