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.

PawelSad12

Members
  • Joined

  • Last visited

Reputation Activity

  1. Love
    PawelSad12 reacted to Charlie686 in NOOSE skin lost   
    Did you reinstall EUP because of the update?
  2. Like
    PawelSad12 reacted to teha112 in Stop The Ped performance issue   
    So first try to change priority of gtav.exe in task manager, but the most effective way to solve this is just to remove some plugins. Try to remove some of them that you aren't using every call and find just a few plugins that you like to play with, also check if you have the latest version of your plugins. And If you can please send me list of plugins that you are using and other mods, maybe it's not STP problem. (ps. Tak zobaczyłem skąd jesteś dopiero po napisaniu tego tekstu🙃)
  3. Like
    PawelSad12 reacted to LMS in Ped Pursuit Attributes   
    You get the ped's attributes using the API, which returns an instance of the class you posted initially. Then you edit the stats on that instance.
  4. Like
    PawelSad12 reacted to LtFlash in Two conditions for one callout?   
    Pawel,
    one of the most troublesome and important aspect of scripting for GTA/LCPD:FR is to create chunks of code that will work in sequence. There were many techniques: switch...case + enum, bool flags, while loops but I managed to create probably the best solution which is to use a list of functions that might be switched on and off. Here are some resources:
    https://github.com/LtFlash/LtFlash.Common/blob/master/LtFlash.Common/Processes/ProcessHost.cs
    https://github.com/LtFlash/LtFlash.Common/blob/master/Examples/Processes/ProcessHost.cs
    In your code it could be used like this:
     
    public override void OnCalloutBegin() { proc.ActivateProcess(IsPlayerClose); } public override void Process() { proc.Process() } public void IsPlayerClose() { if(DistanceToPlayer < 200f) { //createblips proc.SwapStages(IsPlayerClose, HasPlayerClearTheArea); proc.ActivateStage(DisplayPlayerTaskOnScreen); } } private void DisplayPlayerTaskOnScreen() { //print msg "Eliminate enemies } private void HasPlayerClearTheArea() { if(AreEnemiesDead()) { //print msg End(); } } private bool AreEnemiesDead() { return (!Enemy1.Valid() || Enemy1.IsDead) && (!Enemy2.Valid() || Enemy2.IsDead); }  
    Here's some information on Action delegate behind that technique:
    https://www.dotnetperls.com/action

    Using that, I believe you can solve your problem quickly.
  5. Like
    PawelSad12 reacted to Will in Two conditions for one callout?   
    The way I would do it is make a List<Ped> of your guards. Then check in your Process() for any dead guards in the list and remove them, for example:
     
    foreach(var guard in guards.ToArray()) { if(guard.IsDead) { guards.Remove(guard); } } You could then check for when your List is empty to end the process. Also, make sure you check your CallTheCops variable in the first if statement so you are not creating blips for eternity while the player is in range. Basically, your Process() would look like this:
     
    if (!CallTheCops && Game.LocalPlayer.Character.DistanceTo(Soldier1.Position) < 200f) { //dostuff CallTheCops = true; //this should be a class variable } foreach(var guard in guards.ToArray()) { if(guard.IsDead) { guards.Remove(guard); //guards should be a List<Ped> created whenever you create your guards } } if(guards.Count() == 0) { //end } There are other ways to go about this that are cleaner if your callout becomes more complicated, but this should work for your case.
  6. Like
    PawelSad12 reacted to LukeD in [Solved] References or what?   
    Exception message: Operation is not valid because the specified Rage.Vehicle is invalid.  
    at Rage.TaskInvoker.DriveToPosition(Vehicle vehicle, Vector3 position, Single speed, VehicleDrivingFlags flags, Single acceptedDistance)  
    In this particular case you tell a ped to enter a vehicle you spawned, but then also immediately afterwards tell the same ped to drive that vehicle to a position.
    You didn't pass a vehicle to this method, which means it's defaulted to looking for the vehicle the ped is currently sitting in, which is null because the ped hasn't made it inside the vehicle yet. You added .WaitForCompletion() but then set the timeout to 3,000ms (3 seconds). So after 3 seconds it will stop waiting for the task to be completed and move onto the next line of code anyway.
     
    Try setting the waitforcompletion to -1 (infinite)
    Also, perform safety checks before executing tasks.
    eg.
    if(myVehicle.Exists()) { myPed.Tasks.EnterVehicle(myVehicle); } This way if the vehicle doesn't exist for whatever reason you won't instant crash your plugin.
  7. Like
    PawelSad12 reacted to LukeD in Making ped stay in the area   
    If you've engaged them in a pursuit then they will use the custom AI to escape the police.
    If you specifically want them to stay put then you need to assign a task to them and make it persistent i.e no other tasks can override it.
  8. Like
    PawelSad12 reacted to Will in Making ped stay in the area   
    Your native call is wrong. It should be
    NativeFunction.Natives.TASK_STAY_IN_COVER(Guard1); or
    NativeFunction.Natives.TaskStayInCover(Guard1);  
  9. Like
    PawelSad12 got a reaction from unitedOrange66 in Fellow officers can't call for prisoner transport   
    unitedOrange66
    I've found the solution 🙂 Look for this line in the .ini file:
     
    // You can control all peds arrested using vanilla LSPDFR arrest function with this plugin including disarming vanilla stop/interaction menu (yes/no)
    TakeOverAllArrests=yes
     
    Set it to "no". As a result you'll see police officers taking care of the suspects they arrested on their own (as they used to).
     
    Also it'll give you more options when it comes to dealing with suspects. From this very moment if you hold "E" (by default) you'll proceed with vanilla invastigation process (default menu and default arrest) and if you double hit "E" you'll be able to use the STP menu and perform the STP's arrest 🙂
     
    Also suspects arrested by the fellow officers will not respond to you in any way. The arresting officers will take it from there 🙂
  10. Like
    Hello,
     
    I don't think there is a way to do that without removing STP or Ultimate Backup. I have that issue as well, pretty sure it's a bug.  
  11. Like
    PawelSad12 reacted to unitedOrange66 in More traffic stops GONE WRONG?   
    Hello,
     
    You can edit the StopThePed.ini to increase the chance of DUI or DWI when you pulled someone over. You can also edit how likely the driver will flee the traffic stop.
  12. Like
    PawelSad12 reacted to ItsBaxim in Automatic roadblocks in 2020?   
    Ultimate backup is one of the best mods you can get.  Many more amazing options other then just road blocks.
    Heres the link: https://bejoijo256.wixsite.com/bejoijo/post/ultimate-backup
  13. Like
    PawelSad12 got a reaction from unitedOrange66 in Automatic roadblocks in 2020?   
    Yep, that'll do it. Thank you very much!
  14. Like
    PawelSad12 reacted to unitedOrange66 in Automatic roadblocks in 2020?   
    Indeed traffic policer does not have roadblocks.
     
    However, you can install UltimateBackup here. When you are in pursuit you can press B to open the menu and select road block, or spike strip to disabled suspect vehicle's tires. 
  15. Like
    PawelSad12 reacted to MattexD in Automatic roadblocks in 2020?   
    You can install traffic policer, how you can see Automatic Roadblocks was removed from the author, but traffic policer have some roadblocks. I hope I've made it clear
  16. Like
    PawelSad12 reacted to Hadvezer in The best GPU driver for GTA 5?   
    So try to turn off V-sync since it will try to keep that framerate that your monitor has, if not try updating your gpu driver in geforce experience.
  17. Like
    PawelSad12 reacted to LukeD in Poor performance in action   
    Don't run as many plugins or scripts and try to find plugins which are well optimized. Plugins which cause big spawns (like large events) will require a lot of memory and a lot of processing power. Yes, you can decrease some of your settings like ped/traffic density to reduce some of the demand on spawning. I'd also look at what you're running in the background such as chrome, spotify etc as these require system resources.

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.