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.

[Callout plugin] Can't arrest suspect, keeps shaking

Featured Replies

I'm working on a callout and whenever I arrest the Ped, he keeps shaking weird and nog going to the ground, he puts his hands up over and over again. I think it may happens because I gave him a task: Suspect.Tasks.FightAgainst(Game.LocalPlayer.Character, 5000); Do I need to end the task? and how?

I believe this occurs when suspect attempts to fight/reach for a weapon while being arrested

 

EDIT:

A GIF of the issue might help

Edited by CowNation

C++, C#, and Python dev with a dream.. and depression

  • Author

Do you know how to fix that? Do I stop the task or the "give new weapon to ped" tasks?

 

EDIT: if i put // before the tasks, i can arrest him. How do I stop the task when I try to arrest him?

Edited by HazyTube

4 minutes ago, HazyTube said:

Do you know how to fix that? Do I stop the task or the "give new weapon to ped" tasks?

 

EDIT: if i put // before the tasks, i can arrest him. How do I stop the task when I try to arrest him?

 

Suspect.Tasks.Clear();

C++, C#, and Python dev with a dream.. and depression

  • Author
3 minutes ago, CowNation said:

 

No problem

One final question though, Where do I put the Tasks.Clear? Because if i put it under the task it stops the task inmideatly

4 minutes ago, HazyTube said:

One final question though, Where do I put the Tasks.Clear? Because if i put it under the task it stops the task inmideatly

if (Functions.IsPedGettingArrested(Suspect) || Functions.IsPedArrested(Suspect))
{
	Suspect.Tasks.Clear();
}

 

Edited by CowNation

C++, C#, and Python dev with a dream.. and depression

  • Author
1 minute ago, CowNation said:

if (Functions.IsPedGettingArrested(Suspect) || Functions.IsPedArrested(Suspect))
{
	Suspect.Tasks.Clear();
}

 

Thanks

  • Author
31 minutes ago, CowNation said:

if (Functions.IsPedGettingArrested(Suspect) || Functions.IsPedArrested(Suspect))
{
	Suspect.Tasks.Clear();
}

 

Uhh this doesn't work either, the suspect just stays there and is doing just nothing, I cant arrest him

19 minutes ago, HazyTube said:

Uhh this doesn't work either, the suspect just stays there and is doing just nothing, I cant arrest him

Dunno then, you gotta find a way to cancel only the attack task.

Maybe try out these functions.

Suspect.Tasks.ClearImmediately();
Suspect.Tasks.ClearSecondary();

 

C++, C#, and Python dev with a dream.. and depression

  • Author
Just now, CowNation said:

Dunno then, you gotta find a way to cancel only the attack task.

Maybe try out these functions.


Suspect.Tasks.ClearImmediately();
Suspect.Tasks.ClearSecondary();

 

Alright will try some things out, thanks

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.