Editable Functions

GetAircraftAltitude(veh, factor)

Gets the altitude of an aircraft. Used by the aircraft module.

Parameters

ParameterTypeDescription
vehintegerThe vehicle handle.
factornumberThe multiplier to convert altitude from meters to the configured unit.

Returns

ReturnsTypeDescription
altitudenumberThe altitude of the vehicle.

GetFuelLevel(veh)

This function is used by all vehicle modules to get the fuel level of a vehicle.

Parameters

ParameterTypeDescription
vehintegerThe vehicle handle.

Returns

ReturnsTypeDescription
fuelnumberThe fuel level of the vehicle as a percentage.

Notify(text)

Parameters

ParameterTypeDescription
textstring

On this page