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.

Stealth22

Friends of LSPDFR
  • Joined

  • Last visited

Everything posted by Stealth22

  1. I feel like I should have known about that...lol. But I've never had to work with playing audio files in my career before
  2. copcar1.Position = suspectVehicle.GetOffsetPosition(Vector3.RelativeBack * 5f); Check out http://docs.ragepluginhook.net, or the Object Browser in Visual Studio. For a lot of this stuff, the documentation is your friend.
  3. I tried using NAudio back in the day, before the API had audio functionality, but it was causing crashes for a lot of people. Maybe check with @Albo1125, he plays audio clips on his bank callout.
  4. You can use Ped.Tasks.CruiseWithVehicle to make him drive around.
  5. That bites. May have to just trigger a pursuit then...or maybe make the driver pull over if the player turns on their lights or siren. It would be re-inventing the wheel, but it would work.
  6. So @LMS, the new additions to the API are awesome. I'm still working on the next version of my callouts, but I had a quick question. Now that we have the ability to set the owner of a vehicle, I was trying to change the vehicles on my Police Impersonator callout. Rather than using civilian Staniers and Buffalos, I made it random between Police4, FBI, and FBI2. That way, the suspect looks like he actually outfitted his own vehicle with lights and sirens. It worked, cause when I ran the plate, it came back as registered to him. (@Albo1125, I was not able to run the plates with Police Radio, but that may have just been a one off) However, I was not able to blip the vehicle at all. This happened with both the unmarked Stanier and FBI Granger. Are emergency vehicles excluded from the blip functionality, or was my GTA V just being stupid? If I think of any more questions, I'll be sure to add them to this thread. Thanks!
  7. A ped object named cop. But you can loop through all of the nearby peds who are cops, just like Albo posted above.
  8. Done. Its in a separate thread now, so hopefully that'll take care of it. @Delco24, give this version (v0.8.2) a try and let me know how it goes.
  9. Perhaps the admin team should look into it though...I'm getting it at the moment as well. Difficult to diagnose, I know. I'll try it again later though.
  10. Yup. Either a list (System.Collections.Generic.List) of Peds, or a list of Handles (myPed.Handle). If you call Ped.Delete, it will just poof them into thin air. You'll probably want to call Dismiss instead, or make them get back into the car and drive away.
  11. Uhhh...I did it the same way in Keep Calm from the beginning. The "fix" was taken from Keep Calm and put into Code 3 Callouts. @LMS...the code was running in a separate GameFiber in Keep Calm from the beginning. Why is it still throwing this exception?
  12. You would have to maintain a list of cop peds (or ped handles would work, for memory management) that you spawn. An array, or preferably a Generic List, would work. What exactly are you trying to do? Rebuild the Code 2 backup function, without having the cops driving away?
  13. Yeah, but what if your CPU took too long to find the name? I'm not saying thats what happened, but that would explain it happening only once...
  14. You've got 1000 as the heading right now. Heading is 0 to 359, if I'm not mistaken, so you can just set that to 0, and put 1000f where the 250 is. Keep in mind though, the unit is metres, not feet. The 'f' on the end converts it to a float. So 1000 metres would be 1km, or 0.62 miles. So he would spawn at any point within a 1km radius...the distance is as the crow flies, so the actual DRIVING distance on the roads would be longer. 250 meters is probably good enough.
  15. if (Rage.Native.NativeFunction.CallByName<uint>("GET_HASH_OF_MAP_AREA_AT_COORDS", Game.LocalPlayer.Character.Position.X, Game.LocalPlayer.Character.Position.Y, Game.LocalPlayer.Character.Position.Z) == Game.GetHashKey("city")) { //player is in city } else { //player is in the country side } There's a code snippet...you can also use the WorldZone functions in the LSPDFR API.
  16. VERSION 0.5.1 Hotfix: Online update check executed in a separate fiber, to prevent crashing on startup Checks for RPH v0.34, along with Stealth.Common.dll v1.4.1.0 Plugin will not start if either of these checks fails
  17. You can insert as many as you want to, but for code organization, its better to put them all in a separate function, to keep clutter out of OnDutyStageChanged. void Functions_OnOnDutyStateChanged(bool OnDuty) { MonitorKeybinds(); //other code can go above/below this line...this way, Functions_OnOnDutyStateChanged is finished with what it's doing, and your code is much cleaner } void MonitorKeybinds() { GameFiber.StartNew(() => { while (true) { if (Game.IsKeyDown(Keys.F1)) { //code here } GameFiber.Yield(); } }); }
  18. You need that namespace for the Persona class, but you also need to import LSPD_First_Response.Mod in order to access the API.Functions.GetPersonaForPed function. Either that, or change that line to LSPD_First_Response.Mod.API.Functions.GetPersonaForPed
  19. CalloutsV is not yet (to my knowledge) compatible with LSPDFR 0.3.
  20. I wonder if it falls back to the hash if it takes too long for the game to search for the name?
  21. I haven't gone through and reinstalled all the vehicles yet. Its a huge undertaking, and I'm too busy (read: lazy?) to do it, lol. Once I get a chance to do this (perhaps this weekend?), I'll post back here with the results.
  22. VERSION 0.8.0 Re-packaged build of v0.7.1, which is compatible with (and requires!) v0.34 of RPH On startup, Keep Calm now checks if Stealth.Common.dll exists (and what version it is), as well as what version of RPH is installed Keep Calm will refuse to run if either of these checks fail Plugin now checks for updates on startup Many thanks to Erwi for testing this version for me!
  23. I have finished the code changes to make Keep Calm compatible with RPH 0.34. However, the changes are untested, as I did not have time to test the plugin last night. EDIT: Thanks to all who PM'd...it has been tested, and I think its good. Will be releasing it pretty soon here.
  24. It's supposed to check for updates on startup, but if it takes too long (either slow internet, or LCPDFR.com servers are busy or slow), then RPH will shut it down saying its locking up the main thread. My fault for not putting it into a separate fiber, lol. I've fixed it, but I also added in some extra checks on the Stealth.Common DLL, and it checks the RPH version as well. I want to make sure its tested before I release it. (Which I can't do until the evening at the earliest, unless someone can test it during the day for me)
  25. Which namespaces have you imported at the top with the using keyword? Try changing it to LSPD_First_Response.Mod.API, or you can keep it as-is, and insert "using LSPD_First_Response.Mod;" at the top of your class file. If you hover your mouse over the squiggly line on API (or look at the Error List window), Visual Studio will tell you what's wrong. Either it doesn't know what API is (because LSPD_First_Response.Mod is not imported), or you have two references that both have an API namespace, and it doesn't know which one to use.

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.