setFlyCamCoordAndConstrain
SET_FLY_CAM_COORD_AND_CONSTRAIN0xC91C6C55199308CAThe GTA V native SET_FLY_CAM_COORD_AND_CONSTRAIN of the CAM namespace, as LS:MP client scripts call it: the global function setFlyCamCoordAndConstrain, in JavaScript and in Lua.
setFlyCamCoordAndConstrain(cam: Cam, x: number, y: number, z: number): voidsetFlyCamCoordAndConstrain(cam: Cam, x: number, y: number, z: number)Usage
JavaScript
setFlyCamCoordAndConstrain(cam, x, y, z);Lua
setFlyCamCoordAndConstrain(cam, x, y, z)Three consecutive numbers can be given as one vector: { x, y, z } (or [x, y, z]) in JavaScript, a Vector3 in Lua.
JavaScript · with vectors
setFlyCamCoordAndConstrain(cam, pos);Lua · with vectors
setFlyCamCoordAndConstrain(cam, pos)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
cam | Cam | number | integer |
x | float | number | number |
y | float | number | number |
z | float | number | number |
Returns
Nothing. In JavaScript the call evaluates to undefined.
Reference
- Namespace
- Camera CAM
- In the game
void SET_FLY_CAM_COORD_AND_CONSTRAIN(Cam cam, float x, float y, float z)- Hash
0xC91C6C55199308CA