Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update ClearArea* of Cops, Peds and Projectiles. #819

Merged
merged 1 commit into from
Jul 6, 2023
Merged
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
20 changes: 12 additions & 8 deletions MISC/ClearAreaOfCops.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,21 @@ ns: MISC

```c
// 0x04F8FC8FCF58F88D 0x95C53824
void CLEAR_AREA_OF_COPS(float x, float y, float z, float radius, int flags);
void CLEAR_AREA_OF_COPS(float x, float y, float z, float radius, cs_type(int) BOOL createNetEvent);
```

```
flags appears to always be 0
Clears an area of cops at the given coordinates and radius.

## Examples
```lua
-- Clear the area, do also create an event
ClearAreaOfCops(0.0, 0.0, 0.0, 10000.0, true)
```

## Parameters
* **x**:
* **y**:
* **z**:
* **radius**:
* **flags**:
* **x**: The x coordinate of where to clear cops.
* **y**: The y coordinate of where to clear cops.
* **z**: The z coordinate of where to clear cops.
* **radius**: The area radius to clear cops.
* **createNetEvent**: specifies whether a `CClearAreaEvent` event of should be created for online use.

20 changes: 12 additions & 8 deletions MISC/ClearAreaOfPeds.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,21 @@ ns: MISC

```c
// 0xBE31FD6CE464AC59 0x25BE7FA8
void CLEAR_AREA_OF_PEDS(float x, float y, float z, float radius, int flags);
void CLEAR_AREA_OF_PEDS(float x, float y, float z, float radius, cs_type(int) BOOL createNetEvent);
```

```
Example: CLEAR_AREA_OF_PEDS(0, 0, 0, 10000, 1);
Clears an area of peds at the given coordinates and radius.

## Examples
```lua
-- Clear the area, do also create an event
ClearAreaOfPeds(0.0, 0.0, 0.0, 10000.0, true)
```

## Parameters
* **x**:
* **y**:
* **z**:
* **radius**:
* **flags**:
* **x**: The x coordinate of where to clear peds.
* **y**: The y coordinate of where to clear peds.
* **z**: The z coordinate of where to clear peds.
* **radius**: The area radius to clear peds.
* **createNetEvent**: specifies whether a `CClearAreaEvent` event of should be created for online use.

20 changes: 14 additions & 6 deletions MISC/ClearAreaOfProjectiles.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,22 @@ ns: MISC

```c
// 0x0A1CB9094635D1A6 0x18DB5434
void CLEAR_AREA_OF_PROJECTILES(float x, float y, float z, float radius, cs_type(BOOL) int flags);
void CLEAR_AREA_OF_PROJECTILES(float x, float y, float z, float radius, cs_type(int) BOOL createNetEvent);
```

Clears an area of projectiles at the given coordinates and radius.

## Examples
```lua
-- Clear the area, do also create an event
ClearAreaOfProjectiles(0.0, 0.0, 0.0, 10000.0, true)
```


## Parameters
* **x**:
* **y**:
* **z**:
* **radius**:
* **flags**:
* **x**: The x coordinate of where to clear projectiles.
* **y**: The y coordinate of where to clear projectiles.
* **z**: The z coordinate of where to clear projectiles.
* **radius**: The area radius to clear projectiles.
* **createNetEvent**: specifies whether a `CClearAreaEvent` event of should be created for online use.

Loading