Skip to content

Commit

Permalink
Update SwitchCrimeType.md (#975)
Browse files Browse the repository at this point in the history
* Update SwitchCrimeType.md

'from'  -->  'in'

* Update SwitchCrimeType.md

Update native name, description and parameters.

* Rename SwitchCrimeType.md to SuppressCrimeThisFrame.md

---------

Co-authored-by: ammonia-cfx <[email protected]>
  • Loading branch information
Whoeza and 4mmonium authored Feb 13, 2024
1 parent 7036b83 commit 5af62e8
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 22 deletions.
18 changes: 18 additions & 0 deletions PLAYER/SuppressCrimeThisFrame.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
ns: PLAYER
aliases: ["0x9A987297ED8BD838", "_SWITCH_CRIME_TYPE"]
---
## SUPPRESS_CRIME_THIS_FRAME

```c
// 0x9A987297ED8BD838 0x59B5C2A2
void SUPPRESS_CRIME_THIS_FRAME(Player player, int crimeType);
```
Suppresses a crime for a given player for this frame only.
**Note:** This native needs to be executed inside a thread if a crime is meant to be suppressed for a given amount of time.
## Parameters
* **player**: The player we are suppressing the crime for.
* **crimeType**: The crime to suppress, see [`REPORT_CRIME`](#_0xE9B09589827545E7) for available types.
22 changes: 0 additions & 22 deletions PLAYER/SwitchCrimeType.md

This file was deleted.

0 comments on commit 5af62e8

Please sign in to comment.