- Documentation
- Client functions
- setCameraRenderMirrored
Function
setCameraRenderMirrored
Mirrors the camera image horizontally (a mirror). Also applies to recordings from this camera.
Syntax
bool setCameraRenderMirrored(element camera, bool mirrored)Arguments
cameraelement- The camera.
mirroredbooltrue= mirrored.
Returns
true on success.
Example
local mirror = createCameraRender(400, 120)
setCameraRenderMirrored(mirror, true)
See also
isCameraRenderMirroredChecks whether the camera image is mirrored.attachCameraRenderAttaches the camera to an element (a vehicle, a player, a ped, an object, a model object). The position and target are in metres in the element's frame (x right, y forward, z up); the target defaults to 10 m in front of the camera. A rear-view mirror is a camera at the back of the car looking backwards plussetCameraRenderMirrored.