Jump to content

SET_PED_PANIC_EXIT_SCENARIO


Native Details

  • NameSET_PED_PANIC_EXIT_SCENARIO
  • NamespacePED
  • Native Hash0xFE07FF6495D52E2A
  • First seen version1207

Native Parameters

  • Parameter 0Ped ped
  • Parameter 1float x
  • Parameter 2float y
  • Parameter 3float z

DESCRIPTION

Makes the ped immediately stop its current scenario and quit it quickly.

For example, if your ped is playing "WORLD_HUMAN_SIT_GROUND", when it's finished he would get up slowly. Calling this native will make the ped get up quickly.

Works only after the ped has fully entered the scenario.


CODE EXAMPLE

AI::_0x524B54361229154F(ped, GAMEPLAY::GET_HASH_KEY("WORLD_HUMAN_SIT_GROUND"), 8000, true, true, 0, true);  // Play the scenario for 8 seconds
WAIT(1000); // Wait for the ped to enter the scenario
PED::_0xFE07FF6495D52E2A(ped, 0, 0, 0); // Interrupt the scenario and get up quickly.

User Feedback

Recommended Comments

There are no comments to display.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Add a comment...

Recently Browsing 0

  • No registered users viewing this page.