Enemy Alert

by InfamousSabre
Please explain why you're reporting this file:

Enemy Alert

Version 1.0

Enemy Alert blips enemies and/or their vehicles on the radar just like in GTA V.
You can also blip them on screen if you use PD2Blips: http://www.gta4-mods.com/script/pd2-blips-f28413


-Original Release
9.48/10 - 23 votes
Downloads: 4,317
Added: June 6, 2014 6:32AM
Last Downloaded: May 21, 2017 1:22PM
File Size: 19.40 KB

This file has no videos.
Sorry, you must be registered and logged in to add a video to this file. Log in now!

Good Idea!!!

Posted on June 6, 2014 12:51PM by superParlanchin
Nice. Never thought about that! Did you get the idea from GTA V?
Posted on June 6, 2014 1:20PM by ThatOneHick
SuperParlanchin: Thanks, mate!

ThatOneHick: The idea actually originally came from someone wanting Ambiance to respond to all enemies attacking/chasing the player instead of just police. When I started working on it though, I remembered how GTA V blips all enemies and how I missed that feature going back to IV, so I added in blips also.
Posted on June 6, 2014 2:48PM by InfamousSabre
Where did you get that GTA V style blips on the screenshot? Like the enemy blip is smaller like GTA V.

Rated: 10/10
Posted on June 6, 2014 10:28PM by gta4police
gta4police: At that big "DOWNLOAD NOW" button up there ;)

The size of a blip is editable with scripting. So I made the blip sizes as close a match as possible to GTA V's.
Posted on June 7, 2014 12:41AM by InfamousSabre
Pretty cool. 10/10.
Posted on June 7, 2014 1:52AM by darthvader20011
Good Idea. BTW I used Net Reflector on your script and took some codes of yours :) Hope you don't mind xD.
Posted on June 7, 2014 5:48AM by Maro Hannover
Maro Hannover: Just give credit. Really ought to ask first.

I am rather curious about what code you needed though.
Posted on June 7, 2014 7:34AM by InfamousSabre
Could you make it replace the blips.wtd whatsoever, instead of a script? There is a problem with my me, I am playing LCPDFR, then, the suspect/enemy's blip is like two, a big blip (GTA IV) then the small blip(GTA V style) inside the big blip.
Posted on June 7, 2014 9:59AM by gta4police
Nice job!

Posted on June 7, 2014 4:18PM by sergiyj
gta4police: It would still show as two blips regardless of how you edit the blip texture. You have two scripts blipping the same ped and one blip is programmed to be smaller than normal. Since its another script thats causing your issue, I really cant do anything about it.

Posted on June 7, 2014 5:01PM by InfamousSabre
@Maro Hannover

If you do that, just learn from the code and don't just copy/paste then edit. If you do just copy/paste then edit, then give credits, or your mod will probably end up like that Speech Recognition mod (reported then removed).
Posted on June 8, 2014 10:02PM by LetsPlayOrDy
Hahaha, nice! Very handy :)

Rated 10/10
Posted on June 9, 2014 11:03AM by Wiebrendh
Nice !

10/10 :)
Posted on June 10, 2014 1:20PM by jomaxxxx
perfect 10/10
Posted on July 3, 2014 7:37AM by AII
Doesn't work for me :(

This is what i get in console:

Error during tick in script 'Enemy Alert':

System.Exception: RemoteEvent 'GetValidPetHandlers' threw a system.NullReferenceException: Object

Reference not set to an instance of an object

at unmanaged.MemoryAccess.GetListOfHandlesInPool(Int32 PoolAddress)

at GTA.World.GetValidPedHandles(Model Model)

at GTA.ScriptDomain.RemoteEvent(RemoteEventArgs ev)

at GTA.RemoteScriptDomain.RaiseEventInLocalScriptDomain(Remote Event EventID Object[] Arguments)

at GTA.NetHook.RaiseEventInLocalScriptDomain(Remote Event EventID Object[] Arguments)

at GTA.World.GetValidPedsHandles(Model Model)

at GTA.World.GetAllPeds(Model ofModel)

at GTA.WOrld.GetAllPeds( )

at EnemyAlert.EnemyScanner_Tick(Object Sender , EventArgs e)

at GTA.Script.TryTick( )

at GTA.Script.DoTick( )

at GTA.ScriptThread.OnTick( )

Please Help me fix this :(
Posted on July 12, 2014 4:04PM by CichaWoda
CichaWoda: What GTA Version and SHDN Version are you running?
Posted on July 14, 2014 9:43PM by InfamousSabre
InfamousSabre: GTA Version and SHDN
Posted on July 15, 2014 8:04AM by CichaWoda
ChichaWoda: Please use Pastebin.com to post your entire ScriptHookDotNet.log (In your GTA install folder), and post the link here. One or more of the following may need to be updated: C++ ScriptHook, .Net ScriptHook wrapper, GTA.
Posted on July 16, 2014 4:19PM by InfamousSabre
InfamousSabre: http://pastebin.com/vD0KsFeK
Posted on July 17, 2014 3:03AM by CichaWoda
CichaWoda: Looks good to me. Latest compatible C++ hook for your version.

Try disabling all your other scripts, and only running EnemyAlert. If it doesn't work then, all I can suggest is updating GTA along with your C++ hook.
Posted on July 17, 2014 11:05AM by InfamousSabre
Sorry, you must be registered and logged in to post a comment. Log in now!