Skip to content
View in the app

A better way to browse. Learn more.

LCPDFR.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Off-Duty Cop Mod?

Featured Replies

Good afternoon,

 

So, when my business get's robbed (Farnsworth Business Mod), or an armed gunman starts shooting up my Burger Shots while I'm off-duty, is there a mod that would allow me to flash a badge at the arriving cops, after I kill the SOB, so they stand down and don't come after me for defending my place? 

 

If not, might be a good script idea for when off-duty and something goes down to where you have to use leathel force.  Would essentially end the wanted level.

 

Good day,

DrDetroit

Edited by drdetroit

  • Replies 28
  • Views 3.8k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • A very simple script like: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows.Forms; using GTA; namespace OffDuty { public class OffDuty

  • Visual Studio 2012: http://www.microsoft.com/visualstudio/eng/downloads   EDIT: My tired brain posted the wrong link..

  • .net.dll is a compiled script. .cs is source C# code. .cs is what you save the actual code as; if you want to compile it (can help with speed, and also achieves an effect similar to locking a model),

ya its called using a trainer, when the cops show up just clear your wanted level... You really don't have a badge in the game, the only thing that stops you from getting wanted when playing LCPDFR, is the script that prevents wanted level....

[u]​Click that spoiler you will not be disappointed!![/u]

 

[spoiler]http://www.choose.yudia.net/rickroll.swf

You've been Rick Rolled[/spoiler]

 

In trainer, you can just disable your wanted level and set it for cops to ignore you.

  • Author

Yea, I get that, but i don't use the trainer in-game.  It lags my game a bit and the keys are all F'ed up, I made the changes I needed then disabled the trainer.

 

Anyhow, thanks for the reply's on the matter.

 

Good day,

DrDetroit

Could we get a link to the business script? I have heard about it but could only find a mod that was closed.

 

 

Thanks!

A very simple script like:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using GTA;

namespace OffDuty
{
    public class OffDuty : Script
    {
        public OffDuty()
        {
            //set interval
            Interval = 20000;

            //bind keydown event.
            this.KeyDown += new GTA.KeyEventHandler(testKeyDown);
          }
                public void testKeyDown(object sender, GTA.KeyEventArgs e)
                {
                     if (e.Key == Keys.Q)
                      {
                         player.wantedlevel = 0
                         Game.DisplayText("You have shown your badge to the officer");
                        }
                  }
 }

Might work.

 

Note: I ripped this from something I'm working on, I haven't tested it, nor do I think I've set it up properly (I cut some stuff out), this was just a quick mock up of what you could do.

Processor: Intel i5-6600 @ 3.30GHz 

GPU: MSI ARMOR GeForce GTX 1080 OC

Ram: 16GB Skylake

Couldn't you just use the in-game phone? It takes about two seconds and you don't need to load a trainer. If you're concerned about your savegame, just load an alt. one.

Tips/Donate: u.gamecaster.com/unr3al
Twitch Channel: Twitch.tv/unr3al_twitch
YouTube Channel: YouTube.com/unr3algaming
Twitter: @unr3alofficial

quite difficult getting out ur phone when cops are trying to kill you. One shot and you gotta get the phone again because he decided to store it in his wardrobe jacket exactly when he caught a bullit trough the brains and still be perfectly fine.

  • Author

Thanks Harper, I was going to play around with that script.  Just trying to figure out what software you scriptors use to write scripts...think I had seen a tutorial on this site, will check it out.

 

Thanks again fellas'!

 

DrDetroit

Thanks Harper, I was going to play around with that script.  Just trying to figure out what software you scriptors use to write scripts...think I had seen a tutorial on this site, will check it out.

 

Thanks again fellas'!

 

DrDetroit

 

Visual Studio 2012: http://www.microsoft.com/visualstudio/eng/downloads

 

EDIT: My tired brain posted the wrong link..

Processor: Intel i5-6600 @ 3.30GHz 

GPU: MSI ARMOR GeForce GTX 1080 OC

Ram: 16GB Skylake

That works. I use VS2010; same basic thing, just older. If you want free, you can use the Express Editions of Visual Studio.

Technically, SHDN scripts can also be written in any half-decent text editor (such as Notepad++) - SHDN can run scripts from source; it doesn't need them to be compiled.

Thanks Harper, I was going to play around with that script.  Just trying to figure out what software you scriptors use to write scripts...think I had seen a tutorial on this site, will check it out.

 

Thanks again fellas'!

 

DrDetroit

 

You could use Visual Studio to compile it, or you can simply use something like Notepad++, paste it in, and save it as XXXXX.cs (not .txt) and put it in your scripts folder.

  • Author

You could use Visual Studio to compile it, or you can simply use something like Notepad++, paste it in, and save it as XXXXX.cs (not .txt) and put it in your scripts folder.

 

 

That was my next question; would I save the text as .cs or .net.dll?  Looks like most of my scripts are the .net.dll extension, not sure what the difference is.

 

In any event, I'll install VS and see how I can tweak the script, it will help that it's a simple script that I can play with.  I just DL's a free version of VS 2012 professional.

 

Thanks again guys for the interest and help, very much appreciated.

 

Good day,

DrDetroit

.net.dll is a compiled script. .cs is source C# code. .cs is what you save the actual code as; if you want to compile it (can help with speed, and also achieves an effect similar to locking a model), then the compiled version would be a DLL.

I just DL's a free version of VS 2012 professional.

Don't pirate software. Microsoft has a free Express Edition if you don't want to pay.

A neat one could be a normal model with a holster & gun on the backside. Kinda like real life off duties carry. Short sleaved shirt? Ussualy though off duty carry weapons in their wasteband under the shirt though

Everything needs more lights.

Don't off-duty cops carry weapons concealed, as a general rule? Not sure why you'd model a concealed weapon, b/c no one would be able to see it.

  • Author

.net.dll is a compiled script. .cs is source C# code. .cs is what you save the actual code as; if you want to compile it (can help with speed, and also achieves an effect similar to locking a model), then the compiled version would be a DLL.

Don't pirate software. Microsoft has a free Express Edition if you don't want to pay.

 

 

Nope, It's not pirated...it's a 60 or 90 day free trial that I got off of Harper's link above.  I buy everything I own.  I can't stand thieves!  By the way; If I purchase the software, is the professional version the one I should get?

 

And thanks for the heads up on how to compile/save the script.

 

DrDetroit

Edited by drdetroit

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Similar Content

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.