setPedVisualFieldMaxElevationAngle
SET_PED_VISUAL_FIELD_MAX_ELEVATION_ANGLE0x78D0B67629D75856The 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.
setPedVisualFieldMaxElevationAngle(ped: Ped, angle: number): voidsetPedVisualFieldMaxElevationAngle(ped: Ped, angle: number)Usage
JavaScript
setPedVisualFieldMaxElevationAngle(ped, angle);Lua
setPedVisualFieldMaxElevationAngle(ped, angle)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
ped | Ped | number | integer |
angle | float | number | number |
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