PedClient

setPedVisualFieldPeripheralRange

SET_PED_VISUAL_FIELD_PERIPHERAL_RANGE0x9C74B0BC831B753A

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

SignatureJavaScript
setPedVisualFieldPeripheralRange(ped: Ped, range: number): void
SignatureLua
setPedVisualFieldPeripheralRange(ped: Ped, range: number)

Usage

JavaScript
setPedVisualFieldPeripheralRange(ped, range);
Lua
setPedVisualFieldPeripheralRange(ped, range)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger
rangefloatnumbernumber

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Ped PED
In the game
void SET_PED_VISUAL_FIELD_PERIPHERAL_RANGE(Ped ped, float range)
Hash
0x9C74B0BC831B753A

Open in the interactive natives reference