Documentation

Want to improve the docs? Take a look at scripting-api-data!
Found a bug? jc3mp/bugs is a good place to let us know.

Camera

Constructible This class can not be instantiated from your script. Do not try to use the `new` keyword on this class. Auto Destroy Instances of this class will be deleted automatically. Custom Properties You cannot add your own properties to instances of this class. They will not be saved and can cause undefined behavior.

Properties

Name Type Description
position Vector3f the Camera's position in the game world
rotation Vector3f the Camera's rotation in the game world
fieldOfView number the cameras field of view
attachedToPlayer boolean Whether the camera is attached to the local player or it can be set somewhere else

Functions

This class does not have any functions.

Stay informed

By becoming the newest member of our growing forums, we and hundreds of other players will always keep you up to date on everything JC3:MP related.