PedClient

setPedShouldPlayFleeScenarioExit

SET_PED_SHOULD_PLAY_FLEE_SCENARIO_EXIT0xEEED8FAFEC331A70

The GTA V native SET_PED_SHOULD_PLAY_FLEE_SCENARIO_EXIT of the PED namespace, as LS:MP client scripts call it: the global function setPedShouldPlayFleeScenarioExit, in JavaScript and in Lua.

SignatureJavaScript
setPedShouldPlayFleeScenarioExit(ped: Ped, p1: any, p2: any, p3: any): boolean
SignatureLua
setPedShouldPlayFleeScenarioExit(ped: Ped, p1: any, p2: any, p3: any): boolean

Usage

JavaScript
const result = setPedShouldPlayFleeScenarioExit(ped, p1, p2, p3);
Lua
local result = setPedShouldPlayFleeScenarioExit(ped, p1, p2, p3)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger
p1Anyanyany
p2Anyanyany
p3Anyanyany

Returns

BOOL JavaScript boolean, Lua boolean

Reference

Namespace
Ped PED
In the game
BOOL SET_PED_SHOULD_PLAY_FLEE_SCENARIO_EXIT(Ped ped, Any p1, Any p2, Any p3)
Hash
0xEEED8FAFEC331A70

Open in the interactive natives reference