The Lab
PED native

SET_PED_SHOULD_PLAY_FLEE_SCENARIO_EXIT

returns BOOL5 paramsbuild 1207

Makes ped exit its scenario by fleeing from the given point.

Signature

C
BOOL SET_PED_SHOULD_PLAY_FLEE_SCENARIO_EXIT(Ped ped, float x, float y, float z, int lookIntensity); // 0xEEED8FAFEC331A70 b1207

Parameters

#NameType
1pedPed
2xfloat
3yfloat
4zfloat
5lookIntensityint

Facts

Facts about SET_PED_SHOULD_PLAY_FLEE_SCENARIO_EXIT
Name
SET_PED_SHOULD_PLAY_FLEE_SCENARIO_EXIT
Hash
0xEEED8FAFEC331A70
Namespace
Returns
BOOL
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
local result = Citizen.InvokeNative(0xEEED8FAFEC331A70, -- SET_PED_SHOULD_PLAY_FLEE_SCENARIO_EXIT
  PlayerPedId(), -- Ped ped
  0.0, -- float x
  0.0, -- float y
  0.0, -- float z
  0 -- int lookIntensity
)
if result then
  -- ...
end
JavaScript
// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
const result = Citizen.invokeNative("0xEEED8FAFEC331A70", // SET_PED_SHOULD_PLAY_FLEE_SCENARIO_EXIT
  PlayerPedId(), // Ped ped
  0.0, // float x
  0.0, // float y
  0.0, // float z
  0, // int lookIntensity
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
bool result = Function.Call<bool>((Hash)0xEEED8FAFEC331A70, // SET_PED_SHOULD_PLAY_FLEE_SCENARIO_EXIT
  API.PlayerPedId(), // Ped ped
  0.0f, // float x
  0.0f, // float y
  0.0f, // float z
  0 // int lookIntensity
);
All PED natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.