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.

PNWParksFan

Insiders
  • Joined

  • Last visited

Everything posted by PNWParksFan

  1. Do you actually have SUP installed?
  2. I do have that option enabled. Hadn't occurred to me to reset the lspdfr.ini. I will try that when I get a chance and report back.
  3. Yeah, I definitely get that. You could have devs who want to use it register for an API key requiring approval, and rate-limit it. As the request would originate within the LSPDFR assembly, you could even do some preliminary rate-limiting when the API is used.
  4. Yes, I tried it with all ASI mods removed, no LSPDFR plugins, and no other RPH plugins. I also don't have any unusual antivirus, just Windows Defender, and wasn't running anything weird at the time like the VS debugger or anything like that. RPH is in Developer mode, but I imagine it is for you too. That uses the natives for Ped headshots. Check out this wrapper by @alexguirre: https://gist.github.com/alexguirre/760bff5e8f922901ec337fe9ea0c58cb
  5. Perhaps an easier way to implement this would be an API method to spawn a backup unit at a specific position, and it would do that but without any task assigned to the peds. If you want multiple vehicles, you could just call it multiple times with different positions. Would be helpful for a wide variety of mods. Another event suggestion would be OnPedIdentified(Ped, LHandle), which would fire any time a ped gets asked for their ID, whether as a driver or passenger in a traffic stop, or while on foot. LHandle to the traffic stop, which is null if the ped was stopped on the street. I don't recall off hand whether LHandle is nullable, so if that doesn't work, could be separate events for OnPedIdentifiedTrafficStop and OnPedIdentifiedOnFoot.
  6. Will LSPDFR sync related features be added to the API at some point in the future? It would be cool for callouts/plugins to be able to add their own stats and activities to the activity feed. E.g. "Bob Vance just freed 5 hostages at the Pacific Standard Bank", "EMS just saved 2 people on Vespucci Boulevard... sadly, 3 people did not make it", etc.
  7. OK. Anything I can do or should try in the meantime?
  8. Attached log. Loaded, forced on duty, conducted one pursuit (and ultimately terminated because it was taking too long for a simple test lol). Forced off duty, then unloaded. No crashes during unloading. Tried to load again, failed and threw exception. Interestingly, it says "Graceful termination" but never gets to "LSPDFR has shut down" in the first run, but it does say "LSPDFR has shut down" after the crash in the second run. I tested this with all ASI mods removed, no LSPDFR plugins loaded, no other RPH/SHV/SHVDN plugins loaded, and after a fresh reboot. Regarding the events, that's a good point which I hadn't considered. I'll just make sure to start a new fiber if doing anything that won't return promptly. RagePluginHook.log
  9. Alright, tested some of the new API methods tonight. Here's some questions, suggestions, and bugs: Even with "Main.DisableAmbientScriptHooks = true" set in the lspdfr.ini, once I unload LSPDFR I can't reload it without restarting the game. See log below. I have 16 GB of RAM, an i7-6700k, and a GTX 1070, so it's not a matter of shitty specs. I noted it says "Hook encountered low memory environment", but I'm only using about 70% of available RAM and about 60% of available VRAM. This consistently happens, even across reboots, and is quickly driving me crazy. The new Events work nicely, and will come in handy for a lot of things. Requests for a couple of new events: OnPulloverOfficerTalkingToSuspect(LHandle pullover, Ped suspect) - Fire whenever the "Press E to talk to Suspect" prompt is shown, i.e. when the traffic stop interaction menu is available. Would be useful for e.g. if you want the ped to do something specific while being talked to, or if you want to add integrations like many mods do for questioning menus, narcotics observations, etc. OnBackupRequested(Vehicle vehicle, Vector3 position, EBackupResponseType responseType, EBackupUnitType backupUnitType, string agencyScriptName) - Fire this event whenever backup is requested, either through the RequestBackup API Function or through the in-game backup menu. Would be useful for more detailed/specific callouts (think e.g. the bank heist callout), or for mods that wish to customize backup behavior in some way. It appears that when an Event handler is called, it is not called in a separate GameFiber. Therefore, if you sleep, hibernate, or loop/yield in an event handler, it will hold up other LSPDFR processes. For example, putting a Sleep in OnPulloverStarted causes the vehicle to keep driving and not pull over until the sleep ends; putting it in OnCalloutFinished causes no new callouts to come in and callout cleanup not to run. It's easy enough to put my logic inside the event handler in a new GameFiber myself, now that I know, but I foresee this being a major pitfall for any dev who doesn't notice, so I think it'd make sense to have the event invokers invoke each event in a new gamefiber automatically. A few bug reports: An occasional NotImplementedException is being thrown during pursuits: Sometimes at the end of a pursuit, cop peds using the MP freemode ped will rapidly flash different hair colors If a matching audio file isn't found for a given police scanner audio string, the remainder of the string won't play after whichever one isn't found
  10. So it turns out I'm slightly an idiot... Better EMS does use RageNativeUI, for the progress bars when EMS responds. I'd forgotten about that. I think it's included in the download, but if it isn't, you can get it from https://github.com/alexguirre/RAGENativeUI/releases/tag/1.6.3.
  11. Thanks for the encouragement 🙂 I need to look more into the agencies framework that LSPDFR 0.4 provides to see how Coastal Callouts might integrate into that in the future. In terms of mod content though, it's designed to be very open-ended, so you could play as a variety of agencies and customize things to your liking. Coastal has its own customization XML files similar to the LSPDFR 0.4 agency/station customization files, which lets you customize in which areas what types of boats and helicopters will respond. Agencies that are all represented in some way or another include: US Coast Guard Los Santos County Sheriff (I don't have anything set up separately for BCSO, but you could add customization for Blaine County if you wanted) Marine patrol boats Rescue helicopter Los Santos Port Police Los Santos Fire Department (fire boat, and fire rescue helicopter) Los Santos Lifeguards The installation process is one of the main things still holding up release. It's a very complicated mod to install, because of how much content it adds to the game in so many different types and locations of files. Right now it's all manual install, and a lot of beta testers have complained about the install process being tedious. Most people get something wrong on the first try. So I am building a custom installer that will install everything. It will not require OpenIV to install. I will include manual installation instructions for those who prefer it, but would strongly recommend doing the automatic install for most people. The mod will include the full Coastal Callouts DLC with over 20 different vehicles including boats, planes, helicopters; several custom peds; a multitude of map and ambient scenario edits; custom props; and more. I will probably provide a "basic" install option with only the required custom props and without any vehicles/peds/map edits for people who might not want all the DLC content.
  12. I don't see any crashes or issues in the log, Better EMS appears to have loaded correctly. Make sure your fire and ambulance vehicles can spawn properly, and check your INI to see which keybindings you're using.
  13. Sorry folks, but it's too early for me to have any answers about future LSPDFR 0.4 compatibility. I don't anticipate releasing Coastal Callouts until the future API Update for LSPDFR 0.4 that the developers have announced plans for, at minimum. At the moment, a number of things don't work in LSPDFR 0.4, including crucially the ability to do traffic stops on boats. Please note that there are also other things I need to finish which are not directly related to the release of LSPDFR 0.4. I will post more information here once I have more to share.
  14. If something doesn't work, UPLOAD YOUR LOG please.
  15. It works fine. It's almost certainly crashing because of some other mod you have installed. All mods do a bunch of stuff when you first go on duty, it's likely a coincidence of the timing. Upload your log if you want me to check, but I can almost guarantee you it's something else.
  16. Not an error, just a warning. It does work on LSPDFR 0.4, you can ignore that warning.
  17. Better EMS doesn't even use RNUI (or NativeUI), it's got no menus. But that was probably causing some other mod to crash. Glad you got it working! 🙂
  18. It works fine with LSPDFR 0.4 already. Post your log please if you're having crashes.
  19. Sure. You pull over a boat for the same reasons you'd pull over a car, just on the water 🙂. Speeding, boating intoxicated, being reckless, smuggling drugs, etc. It's also common to do safety inspections on boats where you stop them, board the boat to make sure they have all the required equipment and permits, then send them on their way. I use API integration with LSPDFR+ to add custom traffic stop questions with boating-specific questions like checking for boating license, fishing license, life jackets, etc. Here's a very short simple video showing some of the very initial testing I did. There's a bit of custom code in use here to facilitate it, but it's using stock LSPDFR 0.3.1 pullovers + LSPDFR+ Traffic Stop menu.
  20. Regarding the Newtonsoft dependency, quite a number of mods use other versions of it, and some common FiveM mods conflict if a different version of Newtonsoft is in the root GTA V folder too. I think this is a good one to bundle with ILMerge, for both LSPDFR itself and any plugin creators using it too. I'm personally planning to not use it out of the root folder anymore going forward, having seen a number of conflicts with this particular dependency. With boats, I understand it's not a core/deliberate feature of LSPDFR, but it did work just fine in LSPDFR 0.3.1 without any workarounds, but I know a lot has changed with pullover logic since then. (Congrats btw, cars pull over to the curb much better now, I was impressed with that.) What objections would you have to allowing it on any boat though? I can't envision any situations where it would cause a problem - as long as you can't blip unoccupied vehicles, it shouldn't be a problem with e.g. boats on trailers in traffic or anything like that. I suppose an allow pullover entity override would be useful though... maybe someone someday will think up some scenario where they want to pull over a taxiing plane or something, who knows. Having a function to call whenever you want to attract ambient patrol units to respond to an area would be nice, especially if you could specify Code 2 or Code 3, and if it returned the Vehicle instance. I could imagine people using that for stuff ranging from traffic stop backups to road blocks to callout responses. For Hospitals and Fire stations: I can think of several mods, both my own and others, which use this data already. For EMS-related mods (Better EMS and Agency Callouts come to mind), ambulances deliver patients they've picked up to the hospital. Better EMS also spawns the responding vehicles at the Fire Station and/or Hospital. There could also be callout scenarios like e.g. drive an officer with a gunshot wound to the nearest hospital, etc. So being able to customize and then get the position (with that position being a spot a vehicle could spawn/park) would be nice. Thanks for being receptive to ideas about the upcoming API update!
  21. I've already tested Better EMS, it works, you just need to move the scanner audio files to the new location and ignore the version warning at startup.
  22. You got a link to back that statement up? Because that doesn't appear to be true whatsoever.
  23. Is it just me or is ambient traffic heavily reduced during pursuits now? Is there any option to disable that?

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.