PedClient

setPedVisualFieldMaxElevationAngle

SET_PED_VISUAL_FIELD_MAX_ELEVATION_ANGLE0x78D0B67629D75856

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

SignatureJavaScript
setPedVisualFieldMaxElevationAngle(ped: Ped, angle: number): void
SignatureLua
setPedVisualFieldMaxElevationAngle(ped: Ped, angle: number)

Usage

JavaScript
setPedVisualFieldMaxElevationAngle(ped, angle);
Lua
setPedVisualFieldMaxElevationAngle(ped, angle)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger
anglefloatnumbernumber

Returns

Nothing. In JavaScript the call evaluates to undefined.

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

This native refers to the field of vision the ped has above them, starting at 0 degrees. 90f would let the ped see enemies directly above of them.

Reference

Namespace
Ped PED
In the game
void SET_PED_VISUAL_FIELD_MAX_ELEVATION_ANGLE(Ped ped, float angle)
Hash
0x78D0B67629D75856

Open in the interactive natives reference