diff --git a/HUD/ClearFakeConeArray.md b/HUD/ClearFakeConeArray.md new file mode 100644 index 000000000..60af6bb0c --- /dev/null +++ b/HUD/ClearFakeConeArray.md @@ -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. diff --git a/HUD/N_0x35a3cd97b2c0a6d2.md b/HUD/N_0x35a3cd97b2c0a6d2.md deleted file mode 100644 index f5378d193..000000000 --- a/HUD/N_0x35a3cd97b2c0a6d2.md +++ /dev/null @@ -1,16 +0,0 @@ ---- -ns: HUD ---- -## _0x35A3CD97B2C0A6D2 - -```c -// 0x35A3CD97B2C0A6D2 -void _0x35A3CD97B2C0A6D2(Blip blip); -``` - -``` -NativeDB Introduced: v1290 -``` - -## Parameters -* **blip**: diff --git a/HUD/N_0x8410c5e0cd847b9d.md b/HUD/N_0x8410c5e0cd847b9d.md deleted file mode 100644 index ac19d625a..000000000 --- a/HUD/N_0x8410c5e0cd847b9d.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -ns: HUD ---- -## _0x8410C5E0CD847B9D - -```c -// 0x8410C5E0CD847B9D -void _0x8410C5E0CD847B9D(); -``` - -``` -NativeDB Introduced: v1290 -``` - diff --git a/HUD/N_0xf83d0febe75e62c9.md b/HUD/N_0xf83d0febe75e62c9.md deleted file mode 100644 index 7c9cb7364..000000000 --- a/HUD/N_0xf83d0febe75e62c9.md +++ /dev/null @@ -1,47 +0,0 @@ ---- -ns: HUD ---- -## _0xF83D0FEBE75E62C9 - -```c -// 0xF83D0FEBE75E62C9 -void _0xF83D0FEBE75E62C9(cs_type(Any) Blip blip, Any p1, Any p2, cs_type(Any) float width, Any p4, cs_type(Any) float length, cs_type(Any) float heading, Any p7); -``` - -``` -NativeDB Added Parameter 9: int hudColour -NativeDB Introduced: v1290 -``` - -Sets the 'data' for a cone for a blip - -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. -* **p1**: -1.0 in decompiled scripts (unk) -* **p2**: 1.0 in decompiled scripts (unk) -* **width**: Width of the cone (0.0 to ~3.0) -* **p4**: 1.0 in decompiled scripts (unk) -* **length**: 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) -* **p7**: 1 in decompiled scripts (unk) - -## Examples - -```lua -local ped = PlayerPedId() -local blip = AddBlipForEntity(ped) - -Citizen.InvokeNative(0xF83D0FEBE75E62C9, blip, -1.0, 1.0, 0.36, 1.0, 8.2, (0.5 * math.pi), 0, 11) -SetBlipShowCone(blip, true, 11) -``` diff --git a/HUD/RemoveFakeConeData.md b/HUD/RemoveFakeConeData.md new file mode 100644 index 000000000..1d524bb3c --- /dev/null +++ b/HUD/RemoveFakeConeData.md @@ -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**: diff --git a/HUD/SetupFakeConeData.md b/HUD/SetupFakeConeData.md new file mode 100644 index 000000000..f263b6a16 --- /dev/null +++ b/HUD/SetupFakeConeData.md @@ -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) +```