OnBeforeProcessCamera: Difference between revisions

From GTA Connected
Jump to navigation Jump to search
No edit summary
 
No edit summary
 
Line 1: Line 1:
{{ScriptItem
{{ScriptItem2
|endpoint = client
|name = onBeforeProcessCamera
|side = client
|type = event
|type = event
|name = onBeforeProcessCamera
|games = iii vc sa iv
|usage = each camera processing occurrence occurs, before the camera is processed
|desc = each camera processing occurrence occurs, before the camera is processed
|callbackParameters = Event event
|cancel = false
|cancellable = false
|exampleLuaCS = addEventHandler("onBeforeProcessCamera", function(event)
|exampleLuaCS = addEventHandler("onBeforeProcessCamera", function(event)
outputChatBox("The camera is about to be processed.", COLOUR_ORANGE)
outputChatBox("The camera is about to be processed.", COLOUR_ORANGE)
end)
end)
}}
}}

Latest revision as of 20:28, 19 November 2022

Event Client Only icon-iii.png icon-vc.png icon-sa.png icon-iv.png Online and Offline Not Cancellable

Available since Client 1.0.0

onBeforeProcessCamera(Event event)

The onBeforeProcessCamera event is invoked when each camera processing occurrence occurs, before the camera is processed.

Parameters

void This event doesn't take any parameters.

Attributes

const This event cannot be cancelled.

Notes

There aren't any notes for this event.

Examples

Example 1 - Lua - Client-Side:

addEventHandler("onBeforeProcessCamera", function(event)
    outputChatBox("The camera is about to be processed.", COLOUR_ORANGE)
end)

Compatibility

There isn't any compatibility information for this event.

Related

Client Related

icon-iii.png icon-vc.png icon-sa.png icon-iv.png OnBeforeProcessCamera
icon-iii.png icon-vc.png icon-sa.png icon-iv.png OnCameraProcess