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.

Blips don't delete and Ped starts shaking.

Featured Replies

Spoiler

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using LSPD_First_Response.Engine.Scripting;
using LSPD_First_Response.Engine.Scripting.Entities;
using LSPD_First_Response.Mod.Callouts;
using LSPD_First_Response.Mod.API;
using LSPD_First_Response.Engine;
using Rage;
using System.Diagnostics;
using Rage.Attributes;
using Rage.Native;
using System.Windows.Forms;

namespace City_Callouts.Callouts
{
    [CalloutInfo("BikerBrawl", CalloutProbability.High)]
    public class BikerBrawl : Callout
    {
        public Ped BikerPed1;
        public Ped BikerPed2;
        public Ped BikerPed3;
        public Ped BikerPed4;
        public Ped BikerPed5;
        public Ped BikerPed6;
        public Vector3 BikerPed1Spot;
        public Vector3 BikerPed2Spot;
        public Vector3 BikerPed3Spot;
        public Vector3 BikerPed4Spot;
        public Vector3 BikerPed5Spot;
        public Vector3 BikerPed6Spot;
        public Vehicle Bike1;
        public Vehicle Bike2;
        public Vehicle Bike3;
        public Vehicle Bike4;
        public Vehicle Bike5;
        public Vehicle Bike6;
        public Vector3 Bike1Spot;
        public Vector3 Bike2Spot;
        public Vector3 Bike3Spot;
        public Vector3 Bike4Spot;
        public Vector3 Bike5Spot;
        public Vector3 Bike6Spot;
        public Blip Biker1Blip;
        public Blip Biker2Blip;
        public Blip Biker3Blip;
        public Blip Biker4Blip;
        public Blip Biker5Blip;
        public Blip Biker6Blip;

        public override bool OnBeforeCalloutDisplayed()
        {
            BikerPed1Spot = new Vector3(-2193.94727f, 4259.72363f, 48.256115f);
            BikerPed2Spot = new Vector3(-2197.10938f, 4262.18262f, 48.1798325f);
            BikerPed3Spot = new Vector3(-2200.48413f, 4260.24854f, 47.9099922f);
            BikerPed4Spot = new Vector3(-2200.53052f, 4254.12451f, 47.7156029f);
            BikerPed5Spot = new Vector3(-2184.709f, 4261.0625f, 48.88035f);
            BikerPed6Spot = new Vector3(-2187.07886f, 4265.362f, 48.8869f);
            Bike1Spot = new Vector3(-2198.668f, 4271.236f, 48.5119324f);
            Bike2Spot = new Vector3(-2195.46948f, 4268.74854f, 48.54722f);
            Bike3Spot = new Vector3(-2190.25854f, 4264.516f, 48.6812477f);
            Bike4Spot = new Vector3(-2198.53662f, 4245.45557f, 47.8716545f);
            Bike5Spot = new Vector3(-2196.2207f, 4245.86426f, 47.8295555f);
            Bike6Spot = new Vector3(-2193.24829f, 4247.60254f, 47.9418259f);

            CalloutMessage = "Biker Brawl";
            return base.OnBeforeCalloutDisplayed();
        }
        public override void OnCalloutDisplayed()
        {
            base.OnCalloutDisplayed();
            Functions.PlayScannerAudio("ATTENTION_ALL_UNITS_01, CRIME_OFFICER_IN_NEED_OF_ASSISTANCE_04");
        }
        public override bool OnCalloutAccepted()
        {
            BikerPed1 = new Ped("g_m_y_lost_01", BikerPed1Spot, 62.96166f);
            BikerPed2 = new Ped("g_m_y_lost_02", BikerPed2Spot, 229.717392f);
            BikerPed3 = new Ped("g_f_y_lost_01", BikerPed3Spot, 177.600174f);
            BikerPed4 = new Ped("u_f_y_bikerchic", BikerPed4Spot, 91.2887f);
            BikerPed5 = new Ped("g_m_y_lost_03", BikerPed5Spot, 49.3770142f);
            BikerPed6 = new Ped("g_m_y_mexgoon_01", BikerPed6Spot, 187.31987f);
            Bike1 = new Vehicle("DAEMON", Bike1Spot, 255.706f);
            Bike2 = new Vehicle("DAEMON", Bike2Spot, 266.2128f);
            Bike3 = new Vehicle("DAEMON", Bike3Spot, 278.6841f);
            Bike4 = new Vehicle("DAEMON", Bike4Spot, 222.02948f);
            Bike5 = new Vehicle("DAEMON", Bike5Spot, 219.238358f);
            Bike6 = new Vehicle("DAEMON", Bike6Spot, 215.934418f);
            Biker1Blip = new Blip(BikerPed1);
            Biker2Blip = new Blip(BikerPed2);
            Biker3Blip = new Blip(BikerPed3);
            Biker4Blip = new Blip(BikerPed4);
            Biker5Blip = new Blip(BikerPed5);
            Biker6Blip = new Blip(BikerPed6);

            Biker1Blip = BikerPed1.AttachBlip();
            Biker1Blip.IsFriendly = false;
            BikerPed1.IsPersistent = true;
            BikerPed1.BlockPermanentEvents = true;

            Biker2Blip = BikerPed2.AttachBlip();
            Biker2Blip.IsFriendly = false;
            BikerPed2.IsPersistent = true;
            BikerPed2.BlockPermanentEvents = true;

            Biker3Blip = BikerPed3.AttachBlip();
            Biker3Blip.IsFriendly = false;
            BikerPed3.IsPersistent = true;
            BikerPed3.BlockPermanentEvents = true;

            Biker4Blip = BikerPed4.AttachBlip();
            Biker4Blip.IsFriendly = false;
            BikerPed4.IsPersistent = true;
            BikerPed4.BlockPermanentEvents = true;

            Biker5Blip = BikerPed5.AttachBlip();
            Biker5Blip.IsFriendly = false;
            BikerPed5.IsPersistent = true;
            BikerPed5.BlockPermanentEvents = true;

            Biker6Blip = BikerPed6.AttachBlip();
            Biker6Blip.IsFriendly = false;
            BikerPed6.IsPersistent = true;
            BikerPed6.BlockPermanentEvents = true;
            return base.OnCalloutAccepted();
        }
        public override void Process()
        {
            base.Process();
            Game.DisplayHelp("Stop the ~r~Biker~s~.", 5000);
            BikerPed1.Tasks.FightAgainst(Game.LocalPlayer.Character);
            BikerPed2.Tasks.FightAgainst(Game.LocalPlayer.Character);
            BikerPed3.Tasks.FightAgainst(Game.LocalPlayer.Character);
            BikerPed4.Tasks.FightAgainst(Game.LocalPlayer.Character);
            BikerPed5.Tasks.FightAgainst(Game.LocalPlayer.Character);
            BikerPed6.Tasks.FightAgainst(Game.LocalPlayer.Character);
            if (Functions.IsPedArrested(BikerPed1))
            {
                BikerPed1.Tasks.ClearImmediately();
                End();
            }
            if (Functions.IsPedArrested(BikerPed2))
            {

                BikerPed2.Tasks.ClearImmediately();
                End();
            }
            if (Functions.IsPedArrested(BikerPed3))
            {
                BikerPed3.Tasks.ClearImmediately();
                End();
            }
            if (Functions.IsPedArrested(BikerPed4))
            {
                BikerPed4.Tasks.ClearImmediately();
                End();
            }
            if (Functions.IsPedArrested(BikerPed5))
            {
                BikerPed5.Tasks.ClearImmediately();
                End();
            }
            if (Functions.IsPedArrested(BikerPed6))
            {
                BikerPed6.Tasks.ClearImmediately();
                End();
            }
            if (Functions.IsPedStoppedByPlayer(BikerPed1))
            {
                BikerPed1.Tasks.ClearImmediately();
                End();
            }
            if (Functions.IsPedStoppedByPlayer(BikerPed2))
            {
                BikerPed2.Tasks.ClearImmediately();
                End();
            }
            if (Functions.IsPedStoppedByPlayer(BikerPed3))
            {
                BikerPed3.Tasks.ClearImmediately();
                End();
            }
            if (Functions.IsPedStoppedByPlayer(BikerPed4))
            {
                BikerPed4.Tasks.ClearImmediately();
                End();
            }
            if (Functions.IsPedStoppedByPlayer(BikerPed5))
            {
                BikerPed5.Tasks.ClearImmediately();
                End();
            }
            if (Functions.IsPedStoppedByPlayer(BikerPed6))
            {
                BikerPed6.Tasks.ClearImmediately();
                End();
            }
        }
        public override void End()
        {
            base.End();
            if (BikerPed1.Exists()) BikerPed1.Dismiss(); 
            if (BikerPed2.Exists()) BikerPed2.Dismiss(); 
            if (BikerPed3.Exists()) BikerPed3.Dismiss(); 
            if (BikerPed4.Exists()) BikerPed4.Dismiss(); 
            if (BikerPed5.Exists()) BikerPed5.Dismiss(); 
            if (BikerPed6.Exists()) BikerPed6.Dismiss(); 
            if (Bike1.Exists()) Bike1.Dismiss(); 
            if (Bike2.Exists()) Bike2.Dismiss(); 
            if (Bike3.Exists()) Bike3.Dismiss(); 
            if (Bike4.Exists()) Bike4.Dismiss(); 
            if (Bike5.Exists()) Bike5.Dismiss(); 
            if (Bike6.Exists()) Bike6.Dismiss();
            if (Biker1Blip.Exists()) Biker1Blip.Delete();
            if (Biker2Blip.Exists()) Biker2Blip.Delete();
            if (Biker3Blip.Exists()) Biker3Blip.Delete();
            if (Biker4Blip.Exists()) Biker4Blip.Delete();
            if (Biker5Blip.Exists()) Biker5Blip.Delete();
            if (Biker6Blip.Exists()) Biker6Blip.Delete();
        }
    }
}
 

http://sendvid.com/kmpv1jdu

 

 

 

 

On 8/26/2018 at 3:50 PM, Nicooo said:
  Reveal hidden contents

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using LSPD_First_Response.Engine.Scripting;
using LSPD_First_Response.Engine.Scripting.Entities;
using LSPD_First_Response.Mod.Callouts;
using LSPD_First_Response.Mod.API;
using LSPD_First_Response.Engine;
using Rage;
using System.Diagnostics;
using Rage.Attributes;
using Rage.Native;
using System.Windows.Forms;

namespace City_Callouts.Callouts
{
    [CalloutInfo("BikerBrawl", CalloutProbability.High)]
    public class BikerBrawl : Callout
    {
        public Ped BikerPed1;
        public Ped BikerPed2;
        public Ped BikerPed3;
        public Ped BikerPed4;
        public Ped BikerPed5;
        public Ped BikerPed6;
        public Vector3 BikerPed1Spot;
        public Vector3 BikerPed2Spot;
        public Vector3 BikerPed3Spot;
        public Vector3 BikerPed4Spot;
        public Vector3 BikerPed5Spot;
        public Vector3 BikerPed6Spot;
        public Vehicle Bike1;
        public Vehicle Bike2;
        public Vehicle Bike3;
        public Vehicle Bike4;
        public Vehicle Bike5;
        public Vehicle Bike6;
        public Vector3 Bike1Spot;
        public Vector3 Bike2Spot;
        public Vector3 Bike3Spot;
        public Vector3 Bike4Spot;
        public Vector3 Bike5Spot;
        public Vector3 Bike6Spot;
        public Blip Biker1Blip;
        public Blip Biker2Blip;
        public Blip Biker3Blip;
        public Blip Biker4Blip;
        public Blip Biker5Blip;
        public Blip Biker6Blip;

        public override bool OnBeforeCalloutDisplayed()
        {
            BikerPed1Spot = new Vector3(-2193.94727f, 4259.72363f, 48.256115f);
            BikerPed2Spot = new Vector3(-2197.10938f, 4262.18262f, 48.1798325f);
            BikerPed3Spot = new Vector3(-2200.48413f, 4260.24854f, 47.9099922f);
            BikerPed4Spot = new Vector3(-2200.53052f, 4254.12451f, 47.7156029f);
            BikerPed5Spot = new Vector3(-2184.709f, 4261.0625f, 48.88035f);
            BikerPed6Spot = new Vector3(-2187.07886f, 4265.362f, 48.8869f);
            Bike1Spot = new Vector3(-2198.668f, 4271.236f, 48.5119324f);
            Bike2Spot = new Vector3(-2195.46948f, 4268.74854f, 48.54722f);
            Bike3Spot = new Vector3(-2190.25854f, 4264.516f, 48.6812477f);
            Bike4Spot = new Vector3(-2198.53662f, 4245.45557f, 47.8716545f);
            Bike5Spot = new Vector3(-2196.2207f, 4245.86426f, 47.8295555f);
            Bike6Spot = new Vector3(-2193.24829f, 4247.60254f, 47.9418259f);

            CalloutMessage = "Biker Brawl";
            return base.OnBeforeCalloutDisplayed();
        }
        public override void OnCalloutDisplayed()
        {
            base.OnCalloutDisplayed();
            Functions.PlayScannerAudio("ATTENTION_ALL_UNITS_01, CRIME_OFFICER_IN_NEED_OF_ASSISTANCE_04");
        }
        public override bool OnCalloutAccepted()
        {
            BikerPed1 = new Ped("g_m_y_lost_01", BikerPed1Spot, 62.96166f);
            BikerPed2 = new Ped("g_m_y_lost_02", BikerPed2Spot, 229.717392f);
            BikerPed3 = new Ped("g_f_y_lost_01", BikerPed3Spot, 177.600174f);
            BikerPed4 = new Ped("u_f_y_bikerchic", BikerPed4Spot, 91.2887f);
            BikerPed5 = new Ped("g_m_y_lost_03", BikerPed5Spot, 49.3770142f);
            BikerPed6 = new Ped("g_m_y_mexgoon_01", BikerPed6Spot, 187.31987f);
            Bike1 = new Vehicle("DAEMON", Bike1Spot, 255.706f);
            Bike2 = new Vehicle("DAEMON", Bike2Spot, 266.2128f);
            Bike3 = new Vehicle("DAEMON", Bike3Spot, 278.6841f);
            Bike4 = new Vehicle("DAEMON", Bike4Spot, 222.02948f);
            Bike5 = new Vehicle("DAEMON", Bike5Spot, 219.238358f);
            Bike6 = new Vehicle("DAEMON", Bike6Spot, 215.934418f);
            Biker1Blip = new Blip(BikerPed1);
            Biker2Blip = new Blip(BikerPed2);
            Biker3Blip = new Blip(BikerPed3);
            Biker4Blip = new Blip(BikerPed4);
            Biker5Blip = new Blip(BikerPed5);
            Biker6Blip = new Blip(BikerPed6);

            Biker1Blip = BikerPed1.AttachBlip();
            Biker1Blip.IsFriendly = false;
            BikerPed1.IsPersistent = true;
            BikerPed1.BlockPermanentEvents = true;

            Biker2Blip = BikerPed2.AttachBlip();
            Biker2Blip.IsFriendly = false;
            BikerPed2.IsPersistent = true;
            BikerPed2.BlockPermanentEvents = true;

            Biker3Blip = BikerPed3.AttachBlip();
            Biker3Blip.IsFriendly = false;
            BikerPed3.IsPersistent = true;
            BikerPed3.BlockPermanentEvents = true;

            Biker4Blip = BikerPed4.AttachBlip();
            Biker4Blip.IsFriendly = false;
            BikerPed4.IsPersistent = true;
            BikerPed4.BlockPermanentEvents = true;

            Biker5Blip = BikerPed5.AttachBlip();
            Biker5Blip.IsFriendly = false;
            BikerPed5.IsPersistent = true;
            BikerPed5.BlockPermanentEvents = true;

            Biker6Blip = BikerPed6.AttachBlip();
            Biker6Blip.IsFriendly = false;
            BikerPed6.IsPersistent = true;
            BikerPed6.BlockPermanentEvents = true;
            return base.OnCalloutAccepted();
        }
        public override void Process()
        {
            base.Process();
            Game.DisplayHelp("Stop the ~r~Biker~s~.", 5000);
            BikerPed1.Tasks.FightAgainst(Game.LocalPlayer.Character);
            BikerPed2.Tasks.FightAgainst(Game.LocalPlayer.Character);
            BikerPed3.Tasks.FightAgainst(Game.LocalPlayer.Character);
            BikerPed4.Tasks.FightAgainst(Game.LocalPlayer.Character);
            BikerPed5.Tasks.FightAgainst(Game.LocalPlayer.Character);
            BikerPed6.Tasks.FightAgainst(Game.LocalPlayer.Character);
            if (Functions.IsPedArrested(BikerPed1))
            {
                BikerPed1.Tasks.ClearImmediately();
                End();
            }
            if (Functions.IsPedArrested(BikerPed2))
            {

                BikerPed2.Tasks.ClearImmediately();
                End();
            }
            if (Functions.IsPedArrested(BikerPed3))
            {
                BikerPed3.Tasks.ClearImmediately();
                End();
            }
            if (Functions.IsPedArrested(BikerPed4))
            {
                BikerPed4.Tasks.ClearImmediately();
                End();
            }
            if (Functions.IsPedArrested(BikerPed5))
            {
                BikerPed5.Tasks.ClearImmediately();
                End();
            }
            if (Functions.IsPedArrested(BikerPed6))
            {
                BikerPed6.Tasks.ClearImmediately();
                End();
            }
            if (Functions.IsPedStoppedByPlayer(BikerPed1))
            {
                BikerPed1.Tasks.ClearImmediately();
                End();
            }
            if (Functions.IsPedStoppedByPlayer(BikerPed2))
            {
                BikerPed2.Tasks.ClearImmediately();
                End();
            }
            if (Functions.IsPedStoppedByPlayer(BikerPed3))
            {
                BikerPed3.Tasks.ClearImmediately();
                End();
            }
            if (Functions.IsPedStoppedByPlayer(BikerPed4))
            {
                BikerPed4.Tasks.ClearImmediately();
                End();
            }
            if (Functions.IsPedStoppedByPlayer(BikerPed5))
            {
                BikerPed5.Tasks.ClearImmediately();
                End();
            }
            if (Functions.IsPedStoppedByPlayer(BikerPed6))
            {
                BikerPed6.Tasks.ClearImmediately();
                End();
            }
        }
        public override void End()
        {
            base.End();
            if (BikerPed1.Exists()) BikerPed1.Dismiss(); 
            if (BikerPed2.Exists()) BikerPed2.Dismiss(); 
            if (BikerPed3.Exists()) BikerPed3.Dismiss(); 
            if (BikerPed4.Exists()) BikerPed4.Dismiss(); 
            if (BikerPed5.Exists()) BikerPed5.Dismiss(); 
            if (BikerPed6.Exists()) BikerPed6.Dismiss(); 
            if (Bike1.Exists()) Bike1.Dismiss(); 
            if (Bike2.Exists()) Bike2.Dismiss(); 
            if (Bike3.Exists()) Bike3.Dismiss(); 
            if (Bike4.Exists()) Bike4.Dismiss(); 
            if (Bike5.Exists()) Bike5.Dismiss(); 
            if (Bike6.Exists()) Bike6.Dismiss();
            if (Biker1Blip.Exists()) Biker1Blip.Delete();
            if (Biker2Blip.Exists()) Biker2Blip.Delete();
            if (Biker3Blip.Exists()) Biker3Blip.Delete();
            if (Biker4Blip.Exists()) Biker4Blip.Delete();
            if (Biker5Blip.Exists()) Biker5Blip.Delete();
            if (Biker6Blip.Exists()) Biker6Blip.Delete();
        }
    }
}
 

http://sendvid.com/kmpv1jdu

 

On 8/27/2018 at 12:22 PM, Nicooo said:

Fixed everything!

 

How?

 

Willkommen

 

Website: SimuNews

On 8/27/2018 at 1:22 PM, Nicooo said:

Fixed everything!

How?  Any code update?

 

HELLO!!     I'm a Greek guy and YouTuber.   I really like Modding and playing LSPDFR!  I'm  very familiar with Programming (Coding) and PC Hardware / Software. I'm also a Cuber ( I Solve Rubicks Cubes and other kinds).   

My YouTube Channel:  https://www.youtube.com/c/ATGGGR/

 

 

 

just don't loop tasks in process lol

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...

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.