gta.fadeCamera
Function Server and Client
![]()
Online and Offline
Available since 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 ]) |
The gta.fadeCamera function is used to fade the game camera.
Parameters
| 1) | Client | client | The client to fade the camera for. Server only. |
| 2) | bool | fadeIn | Whether to fade in or fade out. |
| 3) | float | time | Optional, defaults to 1.0. The duration to fade over, in seconds. |
| 4) | int | colour | Optional, defaults to 0. The destination colour of the fade. |
Return
| void | This function doesn't return a value. |
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.fadeCamerain version 1.0.71.
Related
Server Related
gta.fadeCamera
Client Related
gta.cameraInterior
gta.cameraMatrix
gta.cameraTarget
gta.fadeCamera
gta.fading
gta.restoreCamera
gta.setCameraLookAt
gta.setCameraLookAtEntity
gta.setCameraMatrix
gta.setCameraTarget
gta.setGenerateCarsAroundCamera
gta.updateCamera