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.

PlayAnimation Issues

Featured Replies

I am having an issue with the Ped.Tasks.PlayAnimation method.

 

I have tried: 

 myPed.Tasks.PlayAnimation("mini@cpr@char_b@cpr_str", "cpr_success", 4f, AnimationFlags.None).WaitForCompletion(); 
  GameFiber.StartNew(delegate
            {
               myPed.Tasks.PlayAnimation("mini@cpr@char_b@cpr_str", "cpr_success", 4f, AnimationFlags.None).WaitForCompletion();
            });

and

myPed.Tasks.PlayAnimation("amb@world_human_bum_standing@drunk@idle_a", "idle_a", 15000, AnimationFlags.Loop);
myPed.Tasks.PlayAnimation("amb@medic@standing@tendtodead@idle_a", "idle_b", 5, AnimationFlags.None);

Here is the error I get: 

https://i.imgur.com/osTKAQB.png

 

I'm not sure why it's doing this. Everything I have read says it should work? Keep in mind I am new to GTAV modding but not to programming in general. 

 

Thanks. 

In your project, are you referencing an up-to-date RagePluginHookSDK.dll?
From the error, I see it searches for a PlayAnimation method that returns a Rage.Task, but currently PlayAnimation returns a Rage.AnimationTask. It returned Rage.Task in really old versions of RPH (like from 2 years ago or so).

Just replace the RagePluginHookSDK.dll you're referencing with the one included in the latest RPH version download.

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.