ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Client functions
  3. setElementPreviewCamera

Function

setElementPreviewCamera

ClientGame engineTrilogy Hub only

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)

See also