- Documentation
- Client functions
- setElementPreviewCamera
Function
setElementPreviewCamera
Sets a fixed preview camera: the position, the target and the field of view (San Andreas metres).
Syntax
bool setElementPreviewCamera(preview preview, float x, y, z, float lx, ly, lz [, float fov])Arguments
previewpreview- The preview.
x, y, zfloat- Camera position.
lx, ly, lzfloat- Target.
fovfloat, optional- Field of view.
Returns
true on success.
Example
setElementPreviewCamera(preview, 2500, -1670, 16, 2495, -1680, 13)