Skip to content

Commit

Permalink
feat(natives/gamebuild): update natives from the 2189 gamebuild (#957)
Browse files Browse the repository at this point in the history
  • Loading branch information
spacevx authored Dec 25, 2023
1 parent 055024b commit e07e3c6
Show file tree
Hide file tree
Showing 7 changed files with 73 additions and 56 deletions.
16 changes: 0 additions & 16 deletions HUD/SetMinimapSonarEnabled.md

This file was deleted.

22 changes: 22 additions & 0 deletions HUD/SetMinimapSonarSweep.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
ns: HUD
aliases: ["_SET_MINIMAP_SONAR_ENABLED"]
---
## SET_MINIMAP_SONAR_SWEEP

```c
// 0x6B50FC8749632EC1
void SET_MINIMAP_SONAR_SWEEP(BOOL toggle);
```
Enables or disables the sonar sweep animation on the minimap.
```
NativeDB Introduced: v2189
```
## Parameters
* **toggle**: A boolean value where `true` activates the sonar sweep animation on the minimap, and `false` turns it off.
## Return value
This native does not return any value.
18 changes: 0 additions & 18 deletions HUD/SetToggleMinimapHeistIsland.md

This file was deleted.

22 changes: 22 additions & 0 deletions HUD/SetUseIslandMap.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
ns: HUD
aliases: ["_SET_TOGGLE_MINIMAP_HEIST_ISLAND"]
---
## SET_USE_ISLAND_MAP

```c
// 0x5E1460624D194A38
void SET_USE_ISLAND_MAP(BOOL toggle);
```
Switches the display of the in-game minimap to the Cayo Perico map. This native needs to be called every frame to maintain the toggled state effectively.
```
NativeDB Introduced: v2189
```
## Parameters
* **toggle**: A boolean value where `true` switches the minimap to the Cayo Perico map, and `false` reverts it to the standard map.
## Return value
This native does not return any value.
20 changes: 20 additions & 0 deletions STREAMING/SetIslandEnabled.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
ns: STREAMING
aliases: ["_SET_ISLAND_HOPPER_ENABLED"]
---
## SET_ISLAND_ENABLED

```c
// 0x9A9D1BA639675CF1
void SET_ISLAND_ENABLED(char* islandName, BOOL toggle);
```
Enables the specified island. For more information, see islandhopper.meta
```
NativeDB Introduced: v2189
```
## Parameters
* **islandName**: The name of the island to be enabled or disabled.
* **toggle**: A boolean value where `true` enables the island and `false` disables it.
19 changes: 0 additions & 19 deletions STREAMING/SetIslandHopperEnabled.md

This file was deleted.

12 changes: 9 additions & 3 deletions VEHICLE/DoesVehicleHaveSearchlight.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,22 @@
---
ns: VEHICLE
aliases: ["_DOES_VEHICLE_HAVE_SEARCHLIGHT"]
---
## _DOES_VEHICLE_HAVE_SEARCHLIGHT
## DOES_VEHICLE_HAVE_SEARCHLIGHT

```c
// 0x99015ED7DBEA5113
BOOL _DOES_VEHICLE_HAVE_SEARCHLIGHT(Vehicle vehicle);
BOOL DOES_VEHICLE_HAVE_SEARCHLIGHT(Vehicle vehicle);
```
Determines whether the specified vehicle is equipped with a searchlight.
```
NativeDB Introduced: v2189
```
## Parameters
* **vehicle**:
* **vehicle**: The vehicle to check for the presence of a searchlight.
## Return value
Returns `true` if the vehicle has a searchlight, `false` otherwise.

0 comments on commit e07e3c6

Please sign in to comment.