-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
67 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
--- | ||
ns: VEHICLE | ||
aliases: ["_GET_HELI_TAIL_ROTOR_HEALTH"] | ||
--- | ||
## GET_HELI_TAIL_ROTOR_HEALTH | ||
|
||
```c | ||
// 0xAE8CE82A4219AC8C 0xA41BC13D | ||
float GET_HELI_TAIL_ROTOR_HEALTH(Vehicle vehicle); | ||
``` | ||
``` | ||
Max 1000. | ||
At 0 the tail rotor will stall. | ||
``` | ||
## Parameters | ||
* **vehicle**: | ||
## Return value | ||
--- | ||
ns: VEHICLE | ||
aliases: ["_GET_HELI_TAIL_ROTOR_HEALTH"] | ||
--- | ||
## GET_HELI_TAIL_ROTOR_HEALTH | ||
|
||
```c | ||
// 0xAE8CE82A4219AC8C 0xA41BC13D | ||
float GET_HELI_TAIL_ROTOR_HEALTH(Vehicle heli); | ||
``` | ||
``` | ||
NativeDB Introduced: v323 | ||
``` | ||
## Parameters | ||
* **heli**: Helicopter for which you want to get the rotor health. | ||
## Return value | ||
Returns the health of the rear rotor of the helicopter, not the tail rotor as the name suggests. The maximum value is 1000. At 0, the tail rotor will stall. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
--- | ||
ns: VEHICLE | ||
aliases: ["SET_HELI_TAIL_EXPLODE_THROW_DASHBOARD", "WAS_COUNTER_ACTIVATED","0x3EC8BF18AA453FE9"] | ||
--- | ||
## SET_HELI_TAIL_BOOM_CAN_BREAK_OFF | ||
|
||
```c | ||
// 0x3EC8BF18AA453FE9 0x2916D69B | ||
cs_type(BOOL) void SET_HELI_TAIL_BOOM_CAN_BREAK_OFF(Vehicle heli, BOOL toggle); | ||
``` | ||
Enables or disables the ability for a helicopter's tail boom to break off. | ||
``` | ||
NativeDB Introduced: v323 | ||
``` | ||
## Parameters | ||
* **heli**: The helicopter for which the tail boom can break off. | ||
* **toggle**: Determines whether the helicopter's tail boom can break off. | ||
## Examples | ||
```lua | ||
local heli = GetVehiclePedIsIn(PlayerPedId(), false) | ||
if heli == 0 or GetVehicleType(heli) ~= "heli" then return end | ||
SetHeliTailBoomCanBreakOff(heli, true) | ||
``` | ||
|
||
```javascript | ||
const heli = GetVehiclePedIsIn(PlayerPedId(), false); | ||
if (heli === 0 || GetVehicleType(heli) !== "heli") return; | ||
|
||
SetHeliTailBoomCanBreakOff(heli, true); | ||
``` | ||
|
||
```csharp | ||
using static CitizenFX.Core.Native.API; | ||
|
||
int heli = GetVehiclePedIsIn(PlayerPedId(), false); | ||
if (heli == 0 || GetVehicleType(heli) !== "heli") return; | ||
|
||
SetHeliTailBoomCanBreakOff(heli, true); | ||
``` |
This file was deleted.
Oops, something went wrong.