playerOpenParachuteRequest
Asks your gamemode when a falling player who carries a parachute opens it, by their own key or through
players.openParachute. Allowed, the parachute opens for everyone.
Renamed in 0.28 from parachuteOpenRequest; see renamed names.
Signature
Section titled “Signature”server.on("playerOpenParachuteRequest", ({ player, position, velocity }) => boolean | void | Promise<boolean | void>)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
player |
PlayerSnapshot |
The falling player. |
pedNetworkId |
number |
The network ID of the player’s ped. |
deploymentRequestId |
number |
This opening’s number for the player’s connection; the Parachute carries it too. |
weapon |
number |
The weapon in hand: 46, the parachute. |
position |
Vector3 |
Where the player is, in metres. |
velocity |
Vector3 |
How fast they fall, in metres per second. |
interior |
number |
Always 0: parachutes open only outside. |
provenance |
"client-report" |
The player’s game reported the position and speed. |
Returns
Section titled “Returns”false keeps the parachute closed: the player goes on falling. true, or nothing, opens it. See
how decisions work.
Example
Section titled “Example”Open only 100 m or more above sea level.
import { server } from "nativemp";
server.on("playerOpenParachuteRequest", ({ position }) => position[2] >= 100);Related
Section titled “Related”players.openParachute: open a player’s parachuteplayerParachuteOpened: it openedplayerParachuteEnded: the descent ended