CameraClient

setFlyCamMaxHeight

SET_FLY_CAM_MAX_HEIGHT0xF9D02130ECDD1D77

The GTA V native SET_FLY_CAM_MAX_HEIGHT of the CAM namespace, as LS:MP client scripts call it: the global function setFlyCamMaxHeight, in JavaScript and in Lua.

SignatureJavaScript
setFlyCamMaxHeight(cam: Cam, height: number): void
SignatureLua
setFlyCamMaxHeight(cam: Cam, height: number)

Usage

JavaScript
setFlyCamMaxHeight(cam, height);
Lua
setFlyCamMaxHeight(cam, height)

Parameters

ParameterTypeJavaScriptLua
camCamnumberinteger
heightfloatnumbernumber

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Camera CAM
In the game
void SET_FLY_CAM_MAX_HEIGHT(Cam cam, float height)
Hash
0xF9D02130ECDD1D77
Formerly
_SET_CAMERA_RANGE

Open in the interactive natives reference