M MY Multiplayer: Wiki
Side
Kind

setCameraMatrix

Client

Fixes the camera at a point, looking at another, until setCameraTarget gives it back to a ped.

bool setCameraMatrix(float x, y, z, float lookAtX, lookAtY, lookAtZ [, float roll = 0, float fov = 70])

Parameters

NameTypeDescription
x, y, zfloatWhere the camera stands. A vec3 also works.
lookAtX, lookAtY, lookAtZfloatWhere it looks. It must differ from the position. A vec3 also works.
rollfloatThe sideways tilt, in degrees.default 0
fovfloatThe field of view in degrees. 0 or less becomes 70; 180 or more becomes 179.default 70

Returns

true once the camera is placed.

Example

setCameraMatrix(1468.0, -1755.0, 60.0, 1544.0, -1675.0, 13.5, 0, 60)

See also