Skip to content

Commit

Permalink
Update SetPlayerWantedLevelNoDrop.md
Browse files Browse the repository at this point in the history
  • Loading branch information
gtasnail authored Jul 30, 2023
1 parent 0c83257 commit 4f5b121
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions PLAYER/SetPlayerWantedLevelNoDrop.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,16 @@ ns: PLAYER

```c
// 0x340E61DE7F471565 0xED6F44F5
void SET_PLAYER_WANTED_LEVEL_NO_DROP(Player player, int wantedLevel, BOOL p2);
```
```
p2 is always false in R* scripts
void SET_PLAYER_WANTED_LEVEL_NO_DROP(Player player, int wantedLevel, BOOL delayedResponse);
```
## Parameters
* **player**:
* **wantedLevel**:
* **p2**:
* **player**: the target player
* **wantedLevel**: the wanted level 1-5
* **delayedResponse**: false = 0-5sec police spawn response time, true = 10-20sec police spawn response time
## Examples
```lua
local player = PlayerId()
SetPlayerWantedLevelNoDrop(player, 5, false) -- 5 star wanted level
```

0 comments on commit 4f5b121

Please sign in to comment.