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.

Make the suspect in the vehicle shoot

Featured Replies

Hi, I'm new to c# and script programming, in this basic chase script I would like to add that when we shoot the car or the suspect during the chase he pulls out a gun and shoots us.I must have made mistakes please be indulgent.

if (Game.LocalPlayer.GetFreeAimingTarget() || Game.LocalPlayer.Character.IsDoingDriveby == suspect || suspectVehicle)
            {
                
                suspect.Inventory.GiveNewWeapon("WEAPON_PISTOL", -1, true);// give the suspect a weapon
                Game.DisplayNotification("SHOT FIRED !"); // that just for know if the "if" work well (but it never worked
                NativeFunction.Natives.SetPedCombatAttributes(suspect, 1, true); //I saw in a topic that it was to keep the suspect in the vehicle
                suspect.Tasks.FightAgainst(Game.LocalPlayer.Character);//make the suspect fight against me
                Functions.PlayScannerAudio("WE_HAVE CRIME_SHOTS_FIRED_01");
            }

Do i need to use the method so that the suspect smash the window ?

by Mytical.

On 3/31/2022 at 2:43 AM, FallOsprey said:

FightAgainst() = Fist/Knife/Bat

FireWeaponAt() = Gun

FireWeaponAt(), uses Vector3 position, not ped/character
nvm I am stupid

Edited by Fentered

-Fentered

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.