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.

Scripts problem need help!!

Featured Replies

Hi Support / Sam,

 

Need some help on my scripts I try very hard to figure out how to solved this problem but I can't solved. Attached is the video.

 

The suspect stopping but hand and body shakes can't cuff him only can kill him.

 

Spoiler

 public override void Process()
        {
            // 1 in 8 chance of suspect poh having gun
            if (new Random().Next(2) == 0) { SuspectPoh.Inventory.GiveNewWeapon(new WeaponAsset("weapon_combatpistol"), -1, true); }
            {
                SuspectPoh.Tasks.FightAgainst(Game.LocalPlayer.Character, -1);
                SuspectPoh.CanBeShotInVehicles = true;
            }

            if (SuspectVehicle.DistanceTo(Game.LocalPlayer.Character) < 20f && !notificationDisplayed)
            {
                Game.DisplayNotification("web_lossantospolicedept", "web_lossantospolicedept", "~w~Crime Callouts", "~y~Dispatch", "Loading ~g~Informations~w~ of the ~y~LSPD Database~w~...");
                GameFiber.Wait(1000);
                Functions.DisplayVehicleRecord(SuspectVehicle, true);
                notificationDisplayed = true;
            }

            if (!PursuitCreated && Game.LocalPlayer.Character.DistanceTo(SuspectPoh.Position) < 30f)
            {
                Pursuit = Functions.CreatePursuit();
                Functions.AddPedToPursuit(Pursuit, SuspectPoh);
                Functions.SetPursuitIsActiveForPlayer(Pursuit, true);
                PursuitCreated = true;
            }

            if (PursuitCreated && !Functions.IsPursuitStillRunning(Pursuit))
            {
                End();
            }

            //If the player presses the end key, the callout will be ended
            if (Game.IsKeyDown(Settings.EndCall)) End();
            if (SuspectPoh.IsCuffed) End();
            if (SuspectPoh.IsDead) End();
            if (Functions.IsPedArrested(SuspectPoh)) End();
            base.Process();
        }

image.thumb.png.e94a1594de0619b262d7ec79ab112fe7.png

The scree shot is a sample.

 

Spoiler

 public override void Process()
        {
            // 1 in 8 chance of suspect poh having gun
            if (new Random().Next(2) == 0) { SuspectPoh.Inventory.GiveNewWeapon(new WeaponAsset("weapon_combatpistol"), -1, true); }
            {
                SuspectPoh.Tasks.FightAgainst(Game.LocalPlayer.Character, -1);
                SuspectPoh.CanBeShotInVehicles = true;
            }

            if (SuspectVehicle.DistanceTo(Game.LocalPlayer.Character) < 20f && !notificationDisplayed)
            {
                Game.DisplayNotification("web_lossantospolicedept", "web_lossantospolicedept", "~w~Crime Callouts", "~y~Dispatch", "Loading ~g~Informations~w~ of the ~y~LSPD Database~w~...");
                GameFiber.Wait(1000);
                Functions.DisplayVehicleRecord(SuspectVehicle, true);
                notificationDisplayed = true;
            }

            if (!PursuitCreated && Game.LocalPlayer.Character.DistanceTo(SuspectPoh.Position) < 30f)
            {
                Pursuit = Functions.CreatePursuit();
                Functions.AddPedToPursuit(Pursuit, SuspectPoh);
                Functions.SetPursuitIsActiveForPlayer(Pursuit, true);
                PursuitCreated = true;
            }

            if (PursuitCreated && !Functions.IsPursuitStillRunning(Pursuit))
            {
                End();
            }

            //If the player presses the end key, the callout will be ended
            if (Game.IsKeyDown(Settings.EndCall)) End();
            if (SuspectPoh.IsCuffed) End();
            if (SuspectPoh.IsDead) End();
            if (Functions.IsPedArrested(SuspectPoh)) End();
            base.Process();
        }

 

  • Author

Dear LMS,

 

What do you mean by your logfile? And thank for your reply.

 

15 minutes ago, LMS said:

Could you attach your logfile as well please? Usually that issue occurs when the arrest task is reapplied constantly.

Spoiler

 public override void Process()
        {
            // 1 in 8 chance of suspect poh having gun
            if (new Random().Next(2) == 0) { SuspectPoh.Inventory.GiveNewWeapon(new WeaponAsset("weapon_combatpistol"), -1, true); }
            {
                SuspectPoh.Tasks.FightAgainst(Game.LocalPlayer.Character, -1);
                SuspectPoh.CanBeShotInVehicles = true;
            }

            if (SuspectVehicle.DistanceTo(Game.LocalPlayer.Character) < 20f && !notificationDisplayed)
            {
                Game.DisplayNotification("web_lossantospolicedept", "web_lossantospolicedept", "~w~Crime Callouts", "~y~Dispatch", "Loading ~g~Informations~w~ of the ~y~LSPD Database~w~...");
                GameFiber.Wait(1000);
                Functions.DisplayVehicleRecord(SuspectVehicle, true);
                notificationDisplayed = true;
            }

            if (!PursuitCreated && Game.LocalPlayer.Character.DistanceTo(SuspectPoh.Position) < 30f)
            {
                Pursuit = Functions.CreatePursuit();
                Functions.AddPedToPursuit(Pursuit, SuspectPoh);
                Functions.SetPursuitIsActiveForPlayer(Pursuit, true);
                PursuitCreated = true;
            }

            if (PursuitCreated && !Functions.IsPursuitStillRunning(Pursuit))
            {
                End();
            }

            //If the player presses the end key, the callout will be ended
            if (Game.IsKeyDown(Settings.EndCall)) End();
            if (SuspectPoh.IsCuffed) End();
            if (SuspectPoh.IsDead) End();
            if (Functions.IsPedArrested(SuspectPoh)) End();
            base.Process();
        }

 

  • Author
10 minutes ago, LMS said:

Your RagePluginHook.log file as it might contain clues as to why the arrest is glitching out.

 

10 minutes ago, LMS said:

Your RagePluginHook.log file as it might contain clues as to why the arrest is glitching out.

 

RagePluginHook_04022021_091002.log

5 minutes ago, tenzintbh said:

 

RagePluginHook_04022021_081615.log

7 minutes ago, tenzintbh said:

 

RagePluginHook_04022021_081615.log

  • Management Team

Thanks, but I do not see any references to "crime name". Please start the game, force your callout, reproduce the bug and then immediately send over the log. 

Please do not PM me unless really necessary (knowing you helps). If you think you need my attention in a topic, tag me.

  • Author

but they is no crash just now i pay the game but don't have the logfiles.

wait i got it

 

RagePluginHook.log

[2/5/2021 12:52:33 AM.831] LSPD First Response: [TRACE] Allowed civilian to shoot
[2/5/2021 12:52:35 AM.223] LSPD First Response: [TRACE] Suspect stuck, trying to reverse
[2/5/2021 12:52:35 AM.294] LSPD First Response: [TRACE] Tenzin Toh (S_M_Y_COP_01) was damaged.
[2/5/2021 12:52:37 AM.835] LSPD First Response: [TRACE] Suspect stuck, leaving vehicle
[2/5/2021 12:52:38 AM.027] LSPD First Response: STP: APPLIED REALISTIC PIT MANEUVER PHYSICS ON HABANERO
[2/5/2021 12:52:38 AM.361] LSPD First Response: [TRACE] Suspect stuck, leaving vehicle
[2/5/2021 12:52:38 AM.858] LSPD First Response: [TRACE] Suspect stuck, leaving vehicle
[2/5/2021 12:52:39 AM.377] LSPD First Response: [TRACE] Suspect stuck, leaving vehicle
[2/5/2021 12:52:39 AM.884] LSPD First Response: [TRACE] Suspect stuck, leaving vehicle

 

Dear LMS,

 

Hope you can help me resolve the scripts issue thank you very much thank you in advance for your kind assistance.😆

  • Author
40 minutes ago, tenzintbh said:

but they is no crash just now i pay the game but don't have the logfiles.

wait i got it

 

RagePluginHook.log

[2/5/2021 12:52:33 AM.831] LSPD First Response: [TRACE] Allowed civilian to shoot
[2/5/2021 12:52:35 AM.223] LSPD First Response: [TRACE] Suspect stuck, trying to reverse
[2/5/2021 12:52:35 AM.294] LSPD First Response: [TRACE] Tenzin Toh (S_M_Y_COP_01) was damaged.
[2/5/2021 12:52:37 AM.835] LSPD First Response: [TRACE] Suspect stuck, leaving vehicle
[2/5/2021 12:52:38 AM.027] LSPD First Response: STP: APPLIED REALISTIC PIT MANEUVER PHYSICS ON HABANERO
[2/5/2021 12:52:38 AM.361] LSPD First Response: [TRACE] Suspect stuck, leaving vehicle
[2/5/2021 12:52:38 AM.858] LSPD First Response: [TRACE] Suspect stuck, leaving vehicle
[2/5/2021 12:52:39 AM.377] LSPD First Response: [TRACE] Suspect stuck, leaving vehicle
[2/5/2021 12:52:39 AM.884] LSPD First Response: [TRACE] Suspect stuck, leaving vehicle

[2/5/2021 12:53:32 AM.038] LSPD First Response: [TRACE] Suspect freed
[2/5/2021 12:53:32 AM.040] LSPD First Response: OP_Immersive_Dispatch [OfficerCheckIn] Check Timer Ended
[2/5/2021 12:53:32 AM.040] LSPD First Response: [TRACE] Removing ped from Chase #1 (GameplayMandatory)
[2/5/2021 12:53:32 AM.040] LSPD First Response: [TRACE] Released 0 entities from Chase #1 Content Manager
[2/5/2021 12:53:32 AM.040] LSPD First Response: [TRACE] Instance cleaned (Chase #1)
[2/5/2021 12:53:32 AM.040] LSPD First Response: [TRACE] Ped Sean Sterling has become idle again
[2/5/2021 12:53:32 AM.046] LSPD First Response: [TRACE] Thread PlayerArrest #1 has been shut down
[2/5/2021 12:53:32 AM.066] LSPD First Response: [TRACE] Sean Sterling killed by Tenzin Toh
[2/5/2021 12:53:32 AM.067] LSPD First Response: [TRACE] Sean Sterling (A_M_Y_STLAT_01) was damaged.
[2/5/2021 12:53:32 AM.068] LSPD First Response: [TRACE] Damage killed ped

Dear LMS,

 

Hope you can help me resolve the scripts issue thank you very much thank you in advance for your kind assistance.😆

 

[2/5/2021 12:53:32 AM.038] LSPD First Response: [TRACE] Suspect freed
[2/5/2021 12:53:32 AM.040] LSPD First Response: OP_Immersive_Dispatch [OfficerCheckIn] Check Timer Ended
[2/5/2021 12:53:32 AM.040] LSPD First Response: [TRACE] Removing ped from Chase #1 (GameplayMandatory)
[2/5/2021 12:53:32 AM.040] LSPD First Response: [TRACE] Released 0 entities from Chase #1 Content Manager
[2/5/2021 12:53:32 AM.040] LSPD First Response: [TRACE] Instance cleaned (Chase #1)
[2/5/2021 12:53:32 AM.040] LSPD First Response: [TRACE] Ped Sean Sterling has become idle again
[2/5/2021 12:53:32 AM.046] LSPD First Response: [TRACE] Thread PlayerArrest #1 has been shut down
[2/5/2021 12:53:32 AM.066] LSPD First Response: [TRACE] Sean Sterling killed by Tenzin Toh
[2/5/2021 12:53:32 AM.067] LSPD First Response: [TRACE] Sean Sterling (A_M_Y_STLAT_01) was damaged.
[2/5/2021 12:53:32 AM.068] LSPD First Response: [TRACE] Damage killed ped

Dear LMS,

 

Not easy to programming scripts. (sweat) ....

  • Management Team

Thanks for the logfile. Unfortunately, I cannot see anything wrong with it. You could try removing other plugins and just run your callout and LSPDFR and see if it resolves the issue.

Please do not PM me unless really necessary (knowing you helps). If you think you need my attention in a topic, tag me.

  • Author

Dear LMS,

 

I follow your instruction but no luck error still persist.

Thank You

RagePluginHook.log

Dear LMS,

 

I programming the callout scripts got error need your help.

 

Dear LMS,

 

Is it some of my coding wrong? cause error. 

Can help to take a look? Thank you for your help.

 

I got highlighted in red. kindly help to take a look. Many thanks

 

Spoiler

 public override void Process()
        {
            // 1 in 8 chance of suspect poh having gun
            if (new Random().Next(2) == 0) { SuspectPoh.Inventory.GiveNewWeapon(new WeaponAsset("weapon_combatpistol"), -1, true); }
            {
                SuspectPoh.Tasks.FightAgainst(Game.LocalPlayer.Character, -1);
                SuspectPoh.CanBeShotInVehicles = true;

            }

            if (SuspectVehicle.DistanceTo(Game.LocalPlayer.Character) < 20f && !notificationDisplayed)
            {
                Game.DisplayNotification("web_lossantospolicedept", "web_lossantospolicedept", "~w~Crime Callouts", "~y~Dispatch", "Loading ~g~Informations~w~ of the ~y~LSPD Database~w~...");
                GameFiber.Wait(1000);
                Functions.DisplayVehicleRecord(SuspectVehicle, true);
                notificationDisplayed = true;
            }

            if (!PursuitCreated && Game.LocalPlayer.Character.DistanceTo(SuspectPoh.Position) < 30f)
            {
                Pursuit = Functions.CreatePursuit();
                Functions.AddPedToPursuit(Pursuit, SuspectPoh);
                Functions.SetPursuitIsActiveForPlayer(Pursuit, true);
                PursuitCreated = true;
            }

            if (PursuitCreated && !Functions.IsPursuitStillRunning(Pursuit))
            {
                End();
            }

            //If the player presses the end key, the callout will be ended
            if (Game.IsKeyDown(Settings.EndCall)) End();
            if (SuspectPoh.IsCuffed) End();
            if (SuspectPoh.IsDead) End();
            if (Functions.IsPedArrested(SuspectPoh)) End();
            base.Process();

        }

 

  • Management Team

Try to remember that you have assigned a weapon and made the suspect fight in the first block, similar to what you did for notificationDisplayed. Then make sure to only run that top block once.

Please do not PM me unless really necessary (knowing you helps). If you think you need my attention in a topic, tag me.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Similar Content

Recently Browsing 0

  • No registered users viewing this page.

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.