示例#1
0
        public override bool OnBeforeCalloutDisplayed()
        {
            //Sets the spawn points for various things.
            SpawnPoint     = new Vector3();
            SusSpawnPoint  = new Vector3(1179, 2652, 37);
            MechSpawnPoint = new Vector3(1180, 2650, 37);
            VehSpawnPoint  = new Vector3(1177, 2650, 37);

            //If peds are valid, display the area the callout is in.
            this.ShowCalloutAreaBlipBeforeAccepting(SpawnPoint, 15f);
            this.AddMinimumDistanceCheck(5f, SpawnPoint);

            //Set the callout message, and the position.
            this.CalloutMessage  = "Public Disturbance";
            this.CalloutPosition = SpawnPoint;

            //Play the scanner audio using SpawnPoint.

            /*
             * Need to update PlayScannerAudioUsingPosition
             */
            Functions.PlayScannerAudioUsingPosition("CITIZENS_REPORT_03 A_02 POSSIBLE_BNE CRIME_BREAK_AND_ENTER IN_OR_ON_POSITION", this.SpawnPoint);

            computerPlusRunning = Main.IsLSPDFRPluginRunning("ComputerPlus", new Version("1.3.0.0"));

            if (computerPlusRunning)
            {
                callID = ComputerPlusWrapperClass.CreateCallout("Public Disturbance in Harmony", "Public Disturbance", SpawnPoint, (int)EResponseType.Code_3);
            }

            return(base.OnBeforeCalloutDisplayed());
        }
示例#2
0
        public override bool OnBeforeCalloutDisplayed()
        {
            VehSpawnPoint = new Vector3(466, 2592, 43);
            SpawnPoint    = new Vector3(474, 2590, 44);

            //If peds are valid, display the area the callout is in.
            this.ShowCalloutAreaBlipBeforeAccepting(SpawnPoint, 15f);
            this.AddMinimumDistanceCheck(5f, SpawnPoint);

            //Set the callout message, and the position
            this.CalloutMessage  = "US Route 68 House Check";
            this.CalloutPosition = SpawnPoint;

            //Play the scanner audio using SpawnPoint..
            Functions.PlayScannerAudioUsingPosition("CITIZENS_REPORT_03 A_02 POSSIBLE_BNE CRIME_BREAK_AND_ENTER IN_OR_ON_POSITION", this.SpawnPoint);

            computerPlusRunning = Main.IsLSPDFRPluginRunning("ComputerPlus", new Version("1.3.0.0"));

            if (computerPlusRunning)
            {
                callID = ComputerPlusWrapperClass.CreateCallout("Harmony House Check", "Harmony House Check", SpawnPoint, (int)EResponseType.Code_2);
            }

            return(base.OnBeforeCalloutDisplayed());
        }