Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions HUD/ClearFakeConeArray.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
ns: HUD
aliases: [ "0x8410C5E0CD847B9D" ]
---
## CLEAR_FAKE_CONE_ARRAY

```c
// 0x8410C5E0CD847B9D
void CLEAR_FAKE_CONE_ARRAY();
```

```
NativeDB Introduced: v1290
```

Clears every fake cone. Scripts mostly call this before setting up cones for blips, to ensure everything is clean.
16 changes: 0 additions & 16 deletions HUD/N_0x35a3cd97b2c0a6d2.md

This file was deleted.

14 changes: 0 additions & 14 deletions HUD/N_0x8410c5e0cd847b9d.md

This file was deleted.

47 changes: 0 additions & 47 deletions HUD/N_0xf83d0febe75e62c9.md

This file was deleted.

19 changes: 19 additions & 0 deletions HUD/RemoveFakeConeData.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
ns: HUD
aliases: [ "0x35A3CD97B2C0A6D2" ]
---
## REMOVE_FAKE_CONE_DATA

```c
// 0x35A3CD97B2C0A6D2
void REMOVE_FAKE_CONE_DATA(Blip blip);
```

```
NativeDB Introduced: v1290
```
Removes fake cone data for a blip.
Make sure to call this after [`SET_BLIP_SHOW_CONE`](#_0x13127EC3665E8EE1).

## Parameters
* **blip**:
48 changes: 48 additions & 0 deletions HUD/SetupFakeConeData.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
---
ns: HUD
aliases: [ "0xF83D0FEBE75E62C9" ]
---
## SETUP_FAKE_CONE_DATA

```c
// 0xF83D0FEBE75E62C9
void SETUP_FAKE_CONE_DATA(cs_type(Any) Blip blip, cs_type(Any) float visualFieldMinAzimuthAngle, cs_type(Any) float visualFieldMaxAzimuthAngle, cs_type(Any) float centreOfGazeMaxAngle, cs_type(Any) float peripheralRange, cs_type(Any) float focusRange, cs_type(Any) float heading, cs_type(Any) bool continuousUpdate);
```

```
NativeDB Added Parameter 9: int hudColour
NativeDB Introduced: v1290
```

Sets the 'data' for a cone for a blip. Scripts mostly use this for security cameras in various heists, such as Cayo Perico, Casino, etc.

See [here](https://docs.fivem.net/docs/game-references/hud-colors/) for the hud colours for the cone

Name in scripts: `SETUP_FAKE_CONE_DATA()`

For people who don't know how to convert degrees to radians and the other way around:

```
degrees = radians * 180 / pi
radians = degrees * pi / 180
```

## Parameters
* **blip**: A blip from an entity. The entity can not be a ped. The width and length will not change if it is a ped.
* **visualFieldMinAzimuthAngle**: Minimum azimuth angle. Scripts mostly use -1.0
* **visualFieldMaxAzimuthAngle**: Maximum azimuth angle. Scripts mostly use 1.0
* **centreOfGazeMaxAngle**: Width of the cone (0.0 to ~3.0)
* **peripheralRange**:Peripheral range. Scripts mostly use 1.0.
* **focusRange**: Length of the cone. (8.2 is 'normal' sized)
* **heading**: This heading is in radians, this can be calculated with (heading + 180.00) * (pi/180)
* **continuousUpdate**: scripts mostly use true.

## Examples

```lua
local ped = PlayerPedId()
local blip = AddBlipForEntity(ped)

SetupFakeConeData(blip, -1.0, 1.0, 0.36, 1.0, 8.2, (0.5 * math.pi), 0, 11)
SetBlipShowCone(blip, true, 11)
```
Loading