PedClient

getPedParachuteState

GET_PED_PARACHUTE_STATE0x79CFD9827CC979B6

The GTA V native GET_PED_PARACHUTE_STATE of the PED namespace, as LS:MP client scripts call it: the global function getPedParachuteState, in JavaScript and in Lua.

SignatureJavaScript
getPedParachuteState(ped: Ped): number
SignatureLua
getPedParachuteState(ped: Ped): integer

Usage

JavaScript
const result = getPedParachuteState(ped);
Lua
local result = getPedParachuteState(ped)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger

Returns

int JavaScript number, Lua integer

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

Returns:

-1: Normal
0: Wearing parachute on back
1: Parachute opening
2: Parachute open
3: Falling to doom (e.g. after exiting parachute)

Normal means no parachute?

Reference

Namespace
Ped PED
In the game
int GET_PED_PARACHUTE_STATE(Ped ped)
Hash
0x79CFD9827CC979B6

Open in the interactive natives reference