GET_LANDING_GEAR_STATE
Signature
int GET_LANDING_GEAR_STATE(Vehicle vehicle);Parameters
| Name | Type | Description |
|---|---|---|
vehicle | Vehicle | The vehicle to check. |
Returns int — The current state of the vehicles landing gear.
Description
See the client-side GET_LANDING_GEAR_STATE native for a description of landing gear states.
Usage
local retval = GetLandingGearState(vehicle)
-- always works, by hash
local retval = Citizen.InvokeNative(0xa6f02670, vehicle, Citizen.ResultAsInteger())JavaScript and C#
const retval = GetLandingGearState(vehicle);
// by hash
const retval = Citizen.invokeNative('0xa6f02670', vehicle, Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0xa6f02670, vehicle);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.