Editable Functions
GetAircraftAltitude(veh, factor)
Gets the altitude of an aircraft. Used by the aircraft module.
Parameters
| Parameter | Type | Description |
|---|---|---|
veh | integer | The vehicle handle. |
factor | number | The multiplier to convert altitude from meters to the configured unit. |
Returns
| Returns | Type | Description |
|---|---|---|
altitude | number | The altitude of the vehicle. |
GetFuelLevel(veh)
This function is used by all vehicle modules to get the fuel level of a vehicle.
Parameters
| Parameter | Type | Description |
|---|---|---|
veh | integer | The vehicle handle. |
Returns
| Returns | Type | Description |
|---|---|---|
fuel | number | The fuel level of the vehicle as a percentage. |
Notify(text)
Parameters
| Parameter | Type | Description |
|---|---|---|
text | string |