SET_PED_SHOULD_PLAY_FLEE_SCENARIO_EXIT
0 - REACT_LOOK_NONE 1 - REACT_LOOK_LOW 2 - REACT_LOOK_MEDIUM 3 - REACT_LOOK_HIGH
Hash
0xEEED8FAFEC331A70Runtime name
SetPedShouldPlayFleeScenarioExitNamespacePED
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0xEEED8FAFEC331A70Signature
BOOL SET_PED_SHOULD_PLAY_FLEE_SCENARIO_EXIT(Ped ped, float x, float y, float z, int lookIntensity);Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | — |
x | float | — |
y | float | — |
z | float | — |
lookIntensity | int | — |
Returns BOOL
Description
lookIntensity:
0 - REACT_LOOK_NONE
1 - REACT_LOOK_LOW
2 - REACT_LOOK_MEDIUM
3 - REACT_LOOK_HIGH
Usage
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#
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());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. Write10.0orvalue + 0.0. The generated JS wrappers add0.0000001to non-zero floats for the same reason.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.