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.

LtFlash

Members
  • Joined

  • Last visited

Everything posted by LtFlash

  1. Sweet Jesus, didn't know about that incident. I'm truly shocked. -- '73 - Da Bronx full size: http://pcullinan.smugmug.com/gallery/8870105_GVgQC#!i=588105342&k=pQ9GS56&lb=1&s=O
  2. I believe the error might be caused by this part: Functions.AddPedToPursuit(this.attackPursuitHandler, attacker); attacker.Task.FightAgainst(LPlayer.LocalPlayer.Ped); You may do it this way: //attacker.DisablePursuitAI = true; attacker.RangeToDetectEnemies = fRange; Functions.SetPursuitForceSuspectsToFight(hPursuit, true); You might turn off the AI and set up ped's task before creating a pursuit so he will be eg. WanderAround() and not running away. When you or any other Officer will be closer than fRange attacker will start fighting because he's forced to.
  3. alexslx, is right. I'd use GetOffsetPosition(), set it to 1,5 of length of a car to the front and search for a car in a radius of length of a car. You could also add some kind of maker which would tell the player if the car is detected or not.
  4. Requiescat in pace for all of civilians and those who gone to WTC to save lives and lost their own in an ultimate sacrifice. I highly recommend to spend 1:30h to listen to stories of the men who survived:
  5. Never got such error, try this: if (ped != null && ped.Exists()) { //all actions here } also you should protect a ped you want to control from being removed from memory (eg. when he's too far from you he gets removed by a game as an useless resource). You can use API functions (SetPedIsOwned... and AddToScriptDeletionList) or ped.BecomeMissionCharacter() and ped.NoLongerNeeded() of SHDN. It's very important to "claim the ownership" of the ped for any script.
  6. @admissivecomic: open the game console with [~] button and type: "startcallout test". The command should start a callout "test" but since there's no such - it'll pick a random one. Thanks to this method you won't need to wait for a call to appear, sending the command repeatedly will let you check if there's a real problem or you had bad luck.
  7. If I understand that correctly, a new static event ("helper") would only let to redirect an internal event of GTA.Script. The problem is that after creating a new instance of a class TestPerFrameDraw : GTA.Script inside the *.dll of lcpdfr mod (which is not located in .scripts obviously) the PerFrameDrawing isn't raised at all. I can only guess that SH doesn't "handle" the class and that's the reason of the issue because exactly the same TestPerFrameDraw as *.cs/*.net.dll located in .scripts works perfectly fine.
  8. I'd suggest you to start from something else. The idea you described may be used in an interesting script but 1) it doesn't have much in common with LCPD:FR API - it's more about object manipulation (ScriptHook), 2) you'd need to override some GTA scripts which wouldn't be easy. it will make you pissed quickly and you'll give up instead of enjoying the new hobby. I highly recommend you to start the adventure with peds and their tasks, eg. create a script which will spawn a ped with a blip who's walkin' around and your task is to arrest him. He may also flee when he sees you or start shootin when you point a gun on him. It will learn you to manage resources, end calls, protect the script from exceptions etc. Feel free to post code snippets so we can help you.
  9. ad. 5) use GTA.World.GetVehicles() to get vehicles within given distance around the position and remove them all from the array. ad. 6) Depends on the situation - sometimes a ped can use nodes that are not available to cars (eg. pavements that are not going along the street) or - when configured specifically - he can ignorePath = true and go through yards etc. Also, there's a native method to get a distance to the waypoint probably, you have to revise them and check. ad. 8) set BlockPermanentEvents = true and AlwaysKeepTask = true. I'd also create a sequence of 1. ped.Task.LeaveVehicle(), 2. ped.Task.FightAgainst() ad. 9) please, post here a snippet from your code so we can check what's wrong in there. ad. 10) even an API example uses List<>, the issue with GTA memory allocation is something different I believe.
  10. I don't want to give any specific date, I'm kinda busy right now and can't spend on it as much time as want to.
  11. I failed in finding a solution so I gotta ask for a consult: I want to display an image on the screen. I can't use a native since it seems to handle only build-in GTA files and PerFrameDrawing from a newly created class that inherits from GTA.Script doesn't work within LCPD:FR plugin. Is there any way to call e.Graphics.DrawXYZ() from the plugin or I need to recreate d3D function from SHDN?
  12. Developer diary *.ini file will let you set up keys, turn off any call, configure time dependency of calls, set some additional parameters - feature is implemented, the mod will have it's own random radio chatter based on real recordings, modern as well as old ones - on stage of collecting samples, "ManDown" call is fixed. The new version will be published after all necessary tests.
  13. gatekeeper, it's great to have you on board. Feel free to take a part in this thread. The 90's were busy for the Department, I'm sure you got some interesting stories you might want to share. Also, I've one more picture for you: I want to recommend Compeast's model of this truck. It was created as a memento of 9/11: Compeast: "Model is based on NYPD ESU Mack R Bronx Truck Nine, functioning during the 90's, and died during the WTC attack." http://www.gta4-mods.com/vehicles/mack-r-bronx-1993-nypd-emergency-service-unit-f27615 http://www.gta4-mods.com/vehicles/els-mack-r-bronx-1993-nypd-emergency-service-f27805
  14. OK, let's get back to the Bronx. As I mentioned station houses have their nicknames, most of them are called a Fort [something], eg. 84 - Fort Panic, 66 - Fort Surrender, 67 - Fort Jah and so on, there was exceptions - 42nd - Warriors of the Wasteland, 77th - The Alamo etc. The nickname kinda defined the precinct. They also had their specific t-shirts/graphic motives, here's some of them: 40PCT 41PCT BTW - that's Ralph Friedman, one of the most famous NYPD cop. He "participated" in like 16 shootings... You can see him on the NY Illustrated report from Fort Apache - FCV96 posted that video. PO Ted Dziedzic 42PCT 44PCT
  15. Ohi, that's me again. I'd like to ask you, LMS, if you could add a possibility to set custom PersonaData for the newly created ped, eg. as a param for an additional constructor. Correct me if I'm wrong but it seems that ped's data is impossible to change atm. Having a chance to control it would let me create a couple of interesting features
  16. '?do=embed' frameborder='0' data-embedContent>> suggested, I even replied but nobody gave a sh*** about that so I'll repeat: fully doable but you have to simplify a lot of things, even with basic attempt of making dialogues it would take some MASSIVE amount of work. I have a simple script (rather 5% of a script) which is based on "fedex-like" missions and a summary after each stage of investigation (eg. "Response to the scene", "Report of the 1st Officer on the scene") which make it more like a text adventure game + driving. It took me a lot of time to get it actually working. Just think about one thing: how would you develop a full case which consist of many stages when LCPD:FR is using mainly a callout system?
  17. Guys, better be sittin' down while watching this... Here's the Bronx: Found it 5 mins ago... EDIT: Holy moly, gotta buy this... 5:16
  18. Great stuff guys! @strike: I actually thought that there will be only 1 part of that video. I'm glad I was wrong. @FCV96: superb findings! It seemed to me that there's no footage with Diplomat/FA/GF. The car from 2nd vid is probably Chrysler Le Baron (= Fifth Ave?)
  19. Full list of included cars: http://gta.com.ua/forum2/index.php?showtopic=4200
  20. http://kidnapping.uslegal.com/state-kidnapping-abduction-laws/texas-kidnappingabduction-laws/ took me 15 seconds

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.