RedM Natives

REACT_LOOK_AT

Hash0xE7FA07624574B79A
Runtime nameReactLookAt
NamespaceTASK
SideClient
NameOfficial
Docs
Since build1207

Signature

void REACT_LOOK_AT(Ped ped, Ped targetPed, int lookIntensity, int exitAnimation, float duration, int p5, Ped targetPed2, Any p7, Any p8);

Parameters

NameTypeDescription
pedPed—
targetPedPed—
lookIntensityint—
exitAnimationint—
durationfloat—
p5int—
targetPed2Ped—
p7Any—
p8Any—

Returns void

Description

lookIntensity: see SET_PED_SHOULD_PLAY_FLEE_SCENARIO_EXIT

exitAnimation: LOOK_RETURN_GENERIC = 1,
LOOK_RETURN_DISMISSIVE = 2,
LOOK_RETURN_RELIEVED = 3

Usage

Lua
ReactLookAt(ped, targetPed, lookIntensity, exitAnimation, duration, p5, targetPed2, p7, p8)

-- always works, by hash
Citizen.InvokeNative(0xE7FA07624574B79A, ped, targetPed, lookIntensity, exitAnimation, duration, p5, targetPed2, p7, p8)
JavaScript and C#
JavaScript
ReactLookAt(ped, targetPed, lookIntensity, exitAnimation, duration, p5, targetPed2, p7, p8);

// by hash
Citizen.invokeNative('0xE7FA07624574B79A', ped, targetPed, lookIntensity, exitAnimation, duration + 0.0000001, p5, targetPed2, p7, p8);
C#
Function.Call((Hash)0xE7FA07624574B79A, ped, targetPed, lookIntensity, exitAnimation, duration, p5, targetPed2, p7, p8);
  • 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.