Hey, been working on just a little lua script that lets you play like a cop. It lets you call backup and you can arrest mission NPCs too.
Here's everything it does so far:
Controls:
The main controls are the horn key and the up and down arrow keys. I recommend changing your horn key to something like H so it isn't the same as the melee key.
Press and hold H (or whatever your horn key is) when ingame for the option to become a cop (or to stop being a cop).
Press and hold H (or whatever your horn key is), then press up arrow or down arrow to request/remove backup.
In missions, take someone as a hostage then press H (or whatever your horn key is) to start interrogating them. Press E while interrogating to arrest, or H again to go back to normal.
You can release arrested NPCs by pressing E beside them (they will not be able to be interacted with again after)
Since the player's team is never changed, this seems to work really well in all missions (ones where the police aren't the enemy at least) without causing bugs
Install:
If you don't use any sr3_city.lua mod like Sandbox, just place all files (except readme.txt) in your SR3 install folder.
If you already have a sr3_city.lua already in your install folder, don't replace it. Follow these instructions:
Then save your sr3_city.lua file with the edits.
Thanks to antonin for his SR2 mod which gave some ideas for making this:
https://www.saintsrowmods.com/forum/threads/play-as-a-cop.2943/
Here's everything it does so far:
- Toggle your status as a cop or go back to being a saint
- Become a cop and police and saints will be allies (so cops won't shoot you or your homies)
- You can call for backup (note this sets your notoriety but the cops that come will help you)
- Arrest some NPCs (only works with mission NPCs because of how the game is coded)
- You can go rogue and get kicked out if you kill too many civilians or whatever
- Get cop outfit automatically when you become a cop
- Whether or not you can go rogue by committing crimes as a cop
- Change keybinds and messages
Controls:
The main controls are the horn key and the up and down arrow keys. I recommend changing your horn key to something like H so it isn't the same as the melee key.
Press and hold H (or whatever your horn key is) when ingame for the option to become a cop (or to stop being a cop).
Press and hold H (or whatever your horn key is), then press up arrow or down arrow to request/remove backup.
In missions, take someone as a hostage then press H (or whatever your horn key is) to start interrogating them. Press E while interrogating to arrest, or H again to go back to normal.
You can release arrested NPCs by pressing E beside them (they will not be able to be interacted with again after)
Since the player's team is never changed, this seems to work really well in all missions (ones where the police aren't the enemy at least) without causing bugs
Install:
If you don't use any sr3_city.lua mod like Sandbox, just place all files (except readme.txt) in your SR3 install folder.
If you already have a sr3_city.lua already in your install folder, don't replace it. Follow these instructions:
- Copy all files except sr3_city.lua and readme.txt to your SR3 install folder.
- Open the sr3_city.lua that you already have
- Edit the following:
Add this code to the top of the file:
Find the bit where it says "function sr3_city_main()" and insert this directly on the next line down
It should look like this now:
Code:
include("policemod.lua")
Find the bit where it says "function sr3_city_main()" and insert this directly on the next line down
Code:
policemod_main()
It should look like this now:
Code:
function sr3_city_main()
policemod_main()
Then save your sr3_city.lua file with the edits.
Thanks to antonin for his SR2 mod which gave some ideas for making this:
https://www.saintsrowmods.com/forum/threads/play-as-a-cop.2943/
Attachments
Last edited: