I stopped playing the game a couple of months ago and unless I start playing the game again I will probably not update the mod. The console commands listed below should works anyway.
Thanks everyone!
Those with an uncompatible version of the game and/or CET can always enter the console command manually at the start of each gameplay:
Game.PrevSys_off() *Turns off the crime prevention system aka the cops.
Game.PrevSys_on() *Turns on the crime prevention system
If you're looking for an updated version that works with the current game, try my Toggle Police System mod. It offers similar features and has been updated for the latest compatibility. https://www.nexusmods.com/cyberpunk2077/mods/19860
This mod works: [Disable Police System] https://www.nexusmods.com/cyberpunk2077/mods/9263 If you kill an npc and cops are already present they still shoot you but you don't get stars and there won't be reinforcements.
I found a more interesting solution. You can disable the cops respawning with a simple red script: @replaceMethod(PreventionSystem) public final static func DelayedSpawnUnitRequest(context: GameInstance, recordID: TweakDBID, preventionLevel: Uint32, spawnTransform: WorldTransform, delay: Float) -> Void { } so cops will attack you on your aggression, but will not unlimited respawn from nowhere
THIS WILL CREATE A folder named r6 at: (Drive Letter):\Program Files\Steam\steamapps\common\Cyberpunk 2077\ Or wherever your game is installed.
NEXT Go inside that (r6) folder, and look for a folder called scripts.
EXAMPLE D:\Program Files\Steam\steamapps\common\Cyberpunk 2077\r6\scripts
NEXT Go into the scripts folder.
CREATE A FOLDER I called mine, Disable Cop Respawn
NEXT Go into the folder you just made (Disable Cop Respawn) or whatever you called it.
Create a .txt file, that you're going to rename completely (I am using Notepad++ for editing the text file. It's free software, google it.)
I named my text file DisableCopRespawn.reds
* For Clarity - Do not use a .txt at the end of it.
IN THE TEXT FILE PUT @replaceMethod(PreventionSystem) public final static func DelayedSpawnUnitRequest(context: GameInstance, recordID: TweakDBID, preventionLevel: Uint32, spawnTransform: WorldTransform, delay: Float) -> Void { }
I'm liking this a lot better actually after testing it. I'm using both systems together because really the more ways to keep the cops out of the game as much as possible, the better, lol.
I did all your steps to create the mod folder and the script file in there, i also put all content in it you showed to us, but it showed that message below:
"REDScript compilation has failed. This error has been caused by mods listed below: -Disable Cop Respawn ; this is the mod folder i named
You should check if these mods are outdated and update them if possible. They may also be incompatible with the current version of the game, in which case you should remove them and try again.
The game will start but no scripts will take effect. If you need more information, consult the logs."
this sorta works. i still get wanted it just randomly goes away and when shooting police it'll sometimes not trigger wanted. its far from ideal but better than nothing
I took this out just to see if it was making a difference on my gameplay experience, and it definitely still is. I'm so glad for this mod! I'm using the latest version of the game and this is still working. Thank you.
Update: I couldn't resist trying Rivarez system, and it's a lot nicer because it just always works and removes the CET menu ui. That's appreciated!
Thank god for the command to turn it off, im in the middle of a fight and a stray bullet hits a civ and boom! Cops..... yet not enough cops to fight crime in the first place? This logic from the developers is retarded.
It works with 1.5 (and the hotfixes)! I even use this along with Vehicle combat to disable extra stars that sort of hang around forever after you defeat all the enemies and are out of combat. This is the mod that keeps giving.
97 comments
Thanks everyone!
Those with an uncompatible version of the game and/or CET can always enter the console command manually at the start of each gameplay:
Game.PrevSys_off()
*Turns off the crime prevention system aka the cops.
Game.PrevSys_on()
*Turns on the crime prevention system
https://www.nexusmods.com/cyberpunk2077/mods/19860
[Disable Police System] https://www.nexusmods.com/cyberpunk2077/mods/9263
If you kill an npc and cops are already present they still shoot you but you don't get stars and there won't be reinforcements.
ignore this mod because this mod is outdated and cannot work anymore.
go find another way to do this trick or NCPD will continue to hunt you down.
You can disable the cops respawning with a simple red script:
@replaceMethod(PreventionSystem)
so cops will attack you on your aggression, but will not unlimited respawn from nowherepublic final static func DelayedSpawnUnitRequest(context: GameInstance, recordID: TweakDBID, preventionLevel: Uint32, spawnTransform: WorldTransform, delay: Float) -> Void {
}
For this script to work you need to:
INSTALL REDSCRIPT
https://www.nexusmods.com/cyberpunk2077/mods/1511
THIS WILL CREATE
A folder named r6 at:
(Drive Letter):\Program Files\Steam\steamapps\common\Cyberpunk 2077\
Or wherever your game is installed.
NEXT
Go inside that (r6) folder, and look for a folder called scripts.
EXAMPLE
D:\Program Files\Steam\steamapps\common\Cyberpunk 2077\r6\scripts
NEXT
Go into the scripts folder.
CREATE A FOLDER
I called mine, Disable Cop Respawn
NEXT
Go into the folder you just made (Disable Cop Respawn) or whatever you called it.
Create a .txt file, that you're going to rename completely
(I am using Notepad++ for editing the text file. It's free software, google it.)
I named my text file
DisableCopRespawn.reds
* For Clarity - Do not use a .txt at the end of it.
IN THE TEXT FILE PUT
@replaceMethod(PreventionSystem)
public final static func DelayedSpawnUnitRequest(context: GameInstance, recordID: TweakDBID, preventionLevel: Uint32, spawnTransform: WorldTransform, delay: Float) -> Void {
}
Save the file
Launch the Game
SAMPLE OF STRUCTURE
D:\Program Files\
Steam\
steamapps\
common\
Cyberpunk 2077\
r6\
scripts\
Disable Cop Respawn\
DisableCopRespawn.reds
I'm liking this a lot better actually after testing it. I'm using both systems together because really the more ways to keep the cops out of the game as much as possible, the better, lol.
I did all your steps to create the mod folder and the script file in there, i also put all content in it you showed to us, but it showed that message below:
"REDScript compilation has failed.
This error has been caused by mods listed below:
-Disable Cop Respawn ; this is the mod folder i named
You should check if these mods are outdated and update them if possible. They may also be incompatible with the current version of the game, in which case you should remove them and try again.
The game will start but no scripts will take effect.
If you need more information, consult the logs."
@replaceMethod(PreventionSystem)
private func OnAttach() -> Void {}
Disable Prevention System on Version 2.x
For those, who didn't get it - create the file with ".reds" extension in r6\scripts, with contents of joserich's post.
In my case it had an issue with copy-pasting the @ so i had to retype it then it work
Update:
I couldn't resist trying Rivarez system, and it's a lot nicer because it just always works and removes the CET menu ui. That's appreciated!
0 wanted mods really