- Documentation
- Client functions
- getCamera
Function
getCamera
Returns the player's camera element, e.g. for attaching other elements or data.
Syntax
element getCamera()Differences from MTA:SA
- In MTA:SA this function is server-side only.
In MTA:SA
getCamera()Returns
The camera element.
Example
local cam = getCamera()
outputChatBox("Kamera: " .. getElementType(cam))