Jump to content

Off-Duty Cop Mod?


drdetroit

Recommended Posts

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
Link to comment
Share on other sites

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]

 

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

.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.
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

.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
Link to comment
Share on other sites

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...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.




×
×
  • Create New...