TasksClient

setPedPathAvoidFire

SET_PED_PATH_AVOID_FIRE0x4455517B28441E60

The GTA V native SET_PED_PATH_AVOID_FIRE of the TASK namespace, as LS:MP client scripts call it: the global function setPedPathAvoidFire, in JavaScript and in Lua.

SignatureJavaScript
setPedPathAvoidFire(ped: Ped, avoidFire: boolean): void
SignatureLua
setPedPathAvoidFire(ped: Ped, avoidFire: boolean)

Usage

JavaScript
setPedPathAvoidFire(ped, avoidFire);
Lua
setPedPathAvoidFire(ped, avoidFire)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger
avoidFireBOOLbooleanboolean

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Tasks TASK
In the game
void SET_PED_PATH_AVOID_FIRE(Ped ped, BOOL avoidFire)
Hash
0x4455517B28441E60

Open in the interactive natives reference