From 0c83257036fdb95e22319c71f2ec00f0dab1057e Mon Sep 17 00:00:00 2001 From: Jumanji <100861025+gtasnail@users.noreply.github.com> Date: Sun, 30 Jul 2023 01:36:52 +0100 Subject: [PATCH 1/4] Update SetPlayerWantedLevel.md Correct p3 to delayedResponse (delays police spawn response time) --- PLAYER/SetPlayerWantedLevel.md | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/PLAYER/SetPlayerWantedLevel.md b/PLAYER/SetPlayerWantedLevel.md index 116ef2095..c31d5d6a4 100644 --- a/PLAYER/SetPlayerWantedLevel.md +++ b/PLAYER/SetPlayerWantedLevel.md @@ -5,17 +5,16 @@ ns: PLAYER ```c // 0x39FF19C64EF7DA5B 0xB7A0914B -void SET_PLAYER_WANTED_LEVEL(Player player, int wantedLevel, BOOL disableNoMission); -``` - -``` -Call SET_PLAYER_WANTED_LEVEL_NOW for immediate effect -wantedLevel is an integer value representing 0 to 5 stars even though the game supports the 6th wanted level but no police will appear since no definitions are present for it in the game files -disableNoMission- Disables When Off Mission- appears to always be false +void SET_PLAYER_WANTED_LEVEL(Player player, int wantedLevel, BOOL delayedResponse); ``` ## Parameters -* **player**: -* **wantedLevel**: -* **disableNoMission**: +* **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() +SetPlayerWantedLevel(player, 5, false) -- 5 star wanted level +``` From 4f5b121cb0432e27ff0781ac4ebf38f07a82a0c1 Mon Sep 17 00:00:00 2001 From: Jumanji <100861025+gtasnail@users.noreply.github.com> Date: Sun, 30 Jul 2023 01:38:53 +0100 Subject: [PATCH 2/4] Update SetPlayerWantedLevelNoDrop.md --- PLAYER/SetPlayerWantedLevelNoDrop.md | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/PLAYER/SetPlayerWantedLevelNoDrop.md b/PLAYER/SetPlayerWantedLevelNoDrop.md index 42008e365..78f6f29dd 100644 --- a/PLAYER/SetPlayerWantedLevelNoDrop.md +++ b/PLAYER/SetPlayerWantedLevelNoDrop.md @@ -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 +``` From 52a3a4b88b6aaadf7500125516b978e3e948837d Mon Sep 17 00:00:00 2001 From: Jumanji <100861025+gtasnail@users.noreply.github.com> Date: Sun, 30 Jul 2023 01:46:57 +0100 Subject: [PATCH 3/4] Update SetPlayerWantedLevel.md further tests show it can be more than 0-5 upto 10 --- PLAYER/SetPlayerWantedLevel.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PLAYER/SetPlayerWantedLevel.md b/PLAYER/SetPlayerWantedLevel.md index c31d5d6a4..8e141400e 100644 --- a/PLAYER/SetPlayerWantedLevel.md +++ b/PLAYER/SetPlayerWantedLevel.md @@ -11,7 +11,7 @@ void SET_PLAYER_WANTED_LEVEL(Player player, int wantedLevel, BOOL delayedRespons ## Parameters * **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 +* **delayedResponse**: false = 0-10sec police spawn response time, true = 10-20sec police spawn response time ## Examples ```lua From c0d0e1bbff57c048ab79e035f70def74ce41bf45 Mon Sep 17 00:00:00 2001 From: Jumanji <100861025+gtasnail@users.noreply.github.com> Date: Sun, 30 Jul 2023 01:49:00 +0100 Subject: [PATCH 4/4] Update SetPlayerWantedLevelNoDrop.md Updated 0-5 to 0-10 --- PLAYER/SetPlayerWantedLevelNoDrop.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PLAYER/SetPlayerWantedLevelNoDrop.md b/PLAYER/SetPlayerWantedLevelNoDrop.md index 78f6f29dd..84f7002d3 100644 --- a/PLAYER/SetPlayerWantedLevelNoDrop.md +++ b/PLAYER/SetPlayerWantedLevelNoDrop.md @@ -11,7 +11,7 @@ void SET_PLAYER_WANTED_LEVEL_NO_DROP(Player player, int wantedLevel, BOOL delaye ## Parameters * **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 +* **delayedResponse**: false = 0-10sec police spawn response time, true = 10-20sec police spawn response time ## Examples ```lua