gta.fadeCamera

From GTA Connected
(Redirected from FadeCamera)
Jump to: navigation, search

Function Server and Client All Games Online and Offline

Server 1.1.0, Client 1.1.0

Server:
void gta.fadeCamera(Client client, bool fadeIn, [ float time = 1.0 ], [ int colour = 0 ])
Client:
void gta.fadeCamera(bool fadeIn, [ float time = 1.0 ], [ int colour = 0 ])

Description

The gta.fadeCamera function is used to fade the game camera.

Parameters

Type Name Presence Default Value Description
Client client required n/a The client to fade the camera for. Server only.
bool fadeIn required n/a Whether to fade in or fade out.
float time optional 1.0 The duration to fade over, in seconds.
int colour optional 0 The destination colour of the fade.

Returns

Success Returns

Type Description
void This function doesn't return any values on success.

Failure Returns

Type Value
void n/a

Notes

There aren't any notes for this function.

Examples

There aren't any examples for this function.

Compatibility

  • This function was previously named game.fadeCamera in version 1.0.71.

Related

Server Related

fadeCamera


Client Related

gta.cameraInterior - Previous Name: cameraInterior
gta.cameraMatrix - Previous Name: cameraMatrix
gta.cameraTarget - Previous Name: cameraTarget
gta.fadeCamera - Previous Name: fadeCamera
gta.fading
gta.restoreCamera - Previous Name: restoreCamera
gta.setCameraLookAt - Previous Name: setCameraLookAt
gta.setCameraLookAtEntity - Previous Name: setCameraLookAtEntity
gta.setCameraMatrix - Previous Name: setCameraMatrix
gta.setCameraTarget - Previous Name: setCameraTarget
gta.setGenerateCarsAroundCamera - Previous Name: setGenerateCarsAroundCamera
gta.updateCamera - Previous Name: updateCamera