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.

Blip problem (I NEED HELP!)

Featured Replies

Hello, im making searching area, i can make blip code respecting only one ped, if i make other code with blip and respecting other ped, then it does not works, please help me.

My code:

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

namespace CALLOUTPACKNAME.Callouts
{
    [CalloutInfo("CalloutName", CalloutProbability.VeryLow)]
    public class CalloutNameSpace : Callout
    {
        private Ped myPed;
        private Ped myPed;
        private Ped myPed;
        private Ped myPed;
        private Ped myPed;
        private Ped myPed;
        private Ped myPed;
        private Ped myPed;
        private Ped myPed;
        private Ped myPed;
        private Ped myPed;
        private Ped myPed;
        private Ped myPed;
        private Ped myPed;
        private Ped myPed;
        private Ped myPed;
        private Vector3 AreaBlip;
        private Vector3 SearchAreaLocation;
        private Vector3 Route;
        private Vector3 SpawnPoint0;
        private Vector3 SpawnPoint1;
        private Vector3 SpawnPoint2;
        private Vector3 SpawnPoint3;
        private Vector3 SpawnPoint4;
        private Vector3 SpawnPoint5;
        private Vector3 SpawnPoint6;
        private Vector3 SpawnPoint7;
        private Vector3 SpawnPoint8;
        private Vector3 SpawnPoint9;
        private Vector3 SpawnPoint10;
        private Vector3 SpawnPoint11;
        private Vector3 SpawnPoint12;
        private Vector3 SpawnPoint13;
        private Vector3 SpawnPoint14;
        private Vector3 SpawnPoint15;
        private Blip SearchAreaBlip;
        private Blip Waypoint;
        private Blip SuspectBlip;

        public override bool OnBeforeCalloutDisplayed()
        {

            AreaBlip = new Vector3(-427.577f, 1116.049f, 326.783f);
            Route = new Vector3(-427.577f, 1116.049f, 326.783f);
            SearchAreaLocation = new Vector3(-427.577f, 1116.049f, 326.783f);
            SpawnPoint0 = new Vector3(-427.577f, 1116.049f, 326.783f);
            SpawnPoint1 = new Vector3(-397.247f, 1127.590f, 322.724f);
            SpawnPoint2 = new Vector3(-428.174f, 1122.083f, 325.854f);
            SpawnPoint3 = new Vector3(454.413f, -740.819f, 27.358f);
            SpawnPoint4 = new Vector3(459.643f, -759.451f, 27.358f);
            SpawnPoint5 = new Vector3(452.857f, -779.992f, 27.358f);
            SpawnPoint6 = new Vector3(460.017f, -809.125f, 27.322f);
            SpawnPoint7 = new Vector3(478.739f, -700.984f, 32.051f);
            SpawnPoint8 = new Vector3(480.516f, -747.916f, 37.396f);
            SpawnPoint9 = new Vector3(476.067f, -804.597f, 42.672f);
            SpawnPoint10 = new Vector3(466.171f, -779.360f, 32.459f);
            SpawnPoint11 = new Vector3(430.765f, -711.007f, 35.727f);
            SpawnPoint12 = new Vector3(449.468f, -725.472f, 35.987f);
            SpawnPoint13 = new Vector3(447.883f, -755.353f, 38.004f);
            SpawnPoint14 = new Vector3(449.329f, -780.423f, 44.531f);
            SpawnPoint15 = new Vector3(433.665f, -806.423f, 38.013f);
            ShowCalloutAreaBlipBeforeAccepting(AreaBlip, 50f); AddMinimumDistanceCheck(40f, AreaBlip);
            CalloutMessage = "Callout Name"; CalloutPosition = AreaBlip;
          
            return base.OnBeforeCalloutDisplayed();
        }


        public override bool OnCalloutAccepted()
        {
            Functions.PlayScannerAudio("RESPOND_CODE_3");

            myPed = new Ped("a_m_m_og_boss_01", SpawnPoint0, 0f);
            myPed.IsPersistent = true;
            myPed.BlockPermanentEvents = true;

            Suspect = new Ped("a_m_m_og_boss_01", SpawnPoint1, 0f);
            Suspect.IsPersistent = true;
            Suspect.BlockPermanentEvents = true;

            Waypoint = new Blip(Route);
            Waypoint.Color = (Color.Yellow);
            Waypoint.EnableRoute(Color.Yellow);

            return base.OnCalloutAccepted();
        }

        public override void Process()
        {
            base.Process();

                if (Game.LocalPlayer.Character.DistanceTo(Suspect.Position) < 5f)
                {
                    SuspectBlip = Suspect.AttachBlip();
                    SuspectBlip.IsFriendly = false;
                    SuspectBlip.Scale = 0.75f;
                }

                if (Game.LocalPlayer.Character.DistanceTo(myPed.Position) < 80f)
                {
                    SearchAreaBlip = new Blip(SearchAreaLocation, 80f);
                    SearchAreaBlip.Color = Color.Yellow;
                    SearchAreaBlip.Alpha = 0.5f;
                }

                if (Game.LocalPlayer.Character.DistanceTo(myPed.Position) < 80f)
                {
                    Waypoint.Delete();
                    Waypoint.DisableRoute();
                }

        }

        public override void End()
        {
            base.End();
        }
    }
}

 

Edited by WildJam

  • Author

i maked it like that, when im near the ped, then search area appears and waypoint disasspers.

 

i tried dont make it in loop, but still doesn't works. I dont know what i can do i tried a lot ways there i thought can be.

  • 3 weeks later...

are you trying to have 16 different ped spawn?  is that the reason for the 16 different spawnspoints? or are you picking on spot out of a list of spawn points?  

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.