RedM Natives

SET_PED_SHOULD_PLAY_FLEE_SCENARIO_EXIT

0 - REACT_LOOK_NONE 1 - REACT_LOOK_LOW 2 - REACT_LOOK_MEDIUM 3 - REACT_LOOK_HIGH

Hash0xEEED8FAFEC331A70
Runtime nameSetPedShouldPlayFleeScenarioExit
NamespacePED
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0xEEED8FAFEC331A70

Signature

BOOL SET_PED_SHOULD_PLAY_FLEE_SCENARIO_EXIT(Ped ped, float x, float y, float z, int lookIntensity);

Parameters

NameTypeDescription
pedPed—
xfloat—
yfloat—
zfloat—
lookIntensityint—

Returns BOOL

Description

lookIntensity:
0 - REACT_LOOK_NONE
1 - REACT_LOOK_LOW
2 - REACT_LOOK_MEDIUM
3 - REACT_LOOK_HIGH

Usage

Lua
local retval = SetPedShouldPlayFleeScenarioExit(ped, x, y, z, lookIntensity)

-- always works, by hash
local retval = Citizen.InvokeNative(0xEEED8FAFEC331A70, ped, x, y, z, lookIntensity, Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const retval = SetPedShouldPlayFleeScenarioExit(ped, x, y, z, lookIntensity);

// by hash
const retval = Citizen.invokeNative('0xEEED8FAFEC331A70', ped, x + 0.0000001, y + 0.0000001, z + 0.0000001, lookIntensity, Citizen.returnResultAnyway());
C#
bool retval = Function.Call<bool>((Hash)0xEEED8FAFEC331A70, ped, x, y, z, lookIntensity);
  • Float parameters: Lua integers (10, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write 10.0 or value + 0.0. The generated JS wrappers add 0.0000001 to non-zero floats for the same reason.

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.