Creates a camera.
Creates a camera and sets it to look towards a location.
...
1,022 bytes (119 words) - 01:01, 26 January 2021
<syntaxhighlight lang="javascript">camera.setFarDof(farDOF);</syntaxhighlight>
...
341 bytes (33 words) - 23:02, 15 June 2018
<syntaxhighlight lang="javascript">camera.setDofStrength(dofStrength);</syntaxhighlight>
...
356 bytes (33 words) - 23:01, 15 June 2018
<syntaxhighlight lang="javascript">camera.playAnim(animName, animDictionary, x, y, z, xRot, yRot, zRot, p9, p10);</sy
...
773 bytes (108 words) - 21:25, 14 July 2019
<syntaxhighlight lang="javascript">camera.setUseShallowDofMode(toggle);</syntaxhighlight>
...
354 bytes (33 words) - 23:05, 15 June 2018
<syntaxhighlight lang="javascript">camera.stopShaking(stopImmediately);</syntaxhighlight>
//stop shaking camera after 5 seconds.
...
722 bytes (74 words) - 08:49, 23 April 2024
<syntaxhighlight lang="javascript">camera.stopPointing();</syntaxhighlight>
...
317 bytes (29 words) - 23:06, 15 June 2018
Attaches a camera to the bone specified.
camera.attachToPedBone(ped, boneIndex, x, y, z, heading);
...
1 KB (140 words) - 13:17, 26 October 2018
<syntaxhighlight lang="javascript">camera.setActiveWithInterp(camFrom, duration, easeLocation, easeRotation);</syntax
*'''camFrom:''' Camera.Handle
...
762 bytes (77 words) - 17:12, 27 July 2018
<syntaxhighlight lang="javascript">camera.setDebugName(name);</syntaxhighlight>
...
417 bytes (46 words) - 22:59, 15 June 2018
<pre>camera.setParams(x, y, z, rx, ry, rz, fov, duration, p9, p10, p11);</pre>
...
701 bytes (99 words) - 13:18, 26 October 2018
<syntaxhighlight lang="javascript">camera.pointAtCoord(x, y, z);</syntaxhighlight>
//Pointing the camera to player's position
...
464 bytes (58 words) - 20:32, 12 September 2021
Sets the camera so it's pointing towards a ped's bone.
<pre>camera.pointAtPedBone(ped, boneIndex, x, y, z, p6);</pre>
...
1,010 bytes (128 words) - 13:18, 26 October 2018
<syntaxhighlight lang="javascript">camera.getAnimCurrentPhase();</syntaxhighlight>
...
320 bytes (29 words) - 22:45, 15 June 2018
<syntaxhighlight lang="javascript">camera.getFarDof();</syntaxhighlight>
...
310 bytes (29 words) - 22:47, 15 June 2018
<syntaxhighlight lang="javascript">camera.getFov();</syntaxhighlight>
...the current Field of View of it is less than or equals to 10 destroys the camera.
...
645 bytes (78 words) - 23:31, 11 December 2020
Attaches your camera to an object.
<pre>camera.attachTo(entity, xOffset, yOffset, zOffset, isRelative);</pre>
...
883 bytes (111 words) - 21:19, 27 March 2019
<syntaxhighlight lang="javascript">camera.shake(type, amplitude);</syntaxhighlight>
...
647 bytes (87 words) - 23:05, 15 June 2018
Example from michael2 script.<br><br>Camera::ANIMATED_SHAKE_CAM(l_5069, 'shake_Camera_all@', 'light', '', 1f);
<pre>camera.animatedShake(p1, p2, p3, amplitude);</pre>
...
467 bytes (62 words) - 21:20, 27 March 2019
<syntaxhighlight lang="javascript">camera.setDofMaxNearInFocusDistanceBlendLevel(p1);</syntaxhighlight>
...
423 bytes (45 words) - 23:01, 15 June 2018
Removes the camera.
<pre>camera.destroy(destroy);</pre>
...
593 bytes (71 words) - 23:27, 11 December 2020
Returns whether or not the passed camera handle is active.
<syntaxhighlight lang="javascript">camera.isActive();</syntaxhighlight>
...
759 bytes (98 words) - 23:34, 11 December 2020
...field (DOF) settings, providing smoother transitions for objects near the camera. Adjusting this parameter allows you to refine the near-focus blur effect,
*'''camera:''' {{RageType|number}} — The camera handle.
...
1 KB (155 words) - 22:12, 2 November 2024
...es how far the camera can render objects; increasing this value allows the camera to display objects at greater distances. This is especially useful for enha
<syntaxhighlight lang="javascript">camera.setFarClip(farClip);</syntaxhighlight>
...
1 KB (132 words) - 11:39, 2 November 2024
<syntaxhighlight lang="javascript">camera.getFov();</syntaxhighlight>
...the current Field of View of it is less than or equals to 10 destroys the camera.
...
645 bytes (78 words) - 23:31, 11 December 2020
Get camera direction
<syntaxhighlight lang="javascript">camera.getDirection();</syntaxhighlight>
...
1 KB (147 words) - 12:29, 21 December 2018
...pt (rendering) camera, and want to go back to the <br>character (gameplay) camera, call this native with render set to false.<br>Setting ease to true will sm
p3 freezes the previous/gameplay camera when easing is turned on.
...
853 bytes (120 words) - 18:16, 4 August 2020
Sets the field of view of the camera.<br>---------------------------------------------<br>Min: 1.0f<br>Max: 130.
<syntaxhighlight lang="javascript">camera.setFov(fieldOfView);</syntaxhighlight>
...
673 bytes (78 words) - 23:20, 11 December 2020
<syntaxhighlight lang="javascript">camera.getCoord();</syntaxhighlight>
This function returns undefined or a valid result, if you point with your camera on something.
...
1 KB (143 words) - 12:30, 21 December 2018
Attaches your camera to an object.
<pre>camera.attachTo(entity, xOffset, yOffset, zOffset, isRelative);</pre>
...
883 bytes (111 words) - 21:19, 27 March 2019
Sets the position of the camera.
<syntaxhighlight lang="javascript">camera.setCoord(posX, posY, posZ);</syntaxhighlight>
...
650 bytes (80 words) - 19:43, 14 September 2021
Sets a specific Depth of Field (DOF) parameter for a specified camera.
* '''cameraHandle:''' {{RageType|number}} - The handle of the camera.
...
971 bytes (121 words) - 18:06, 25 December 2024
...ves the value of a specific Depth of Field (DOF) parameter for a specified camera.
* '''cameraHandle:''' {{RageType|number}} - The handle of the camera.
...
950 bytes (120 words) - 18:06, 25 December 2024
Creates a camera.
Creates a camera and sets it to look towards a location.
...
1,022 bytes (119 words) - 01:01, 26 January 2021
Attaches a camera to the bone specified.
camera.attachToPedBone(ped, boneIndex, x, y, z, heading);
...
1 KB (140 words) - 13:17, 26 October 2018
...en previous node and this one<br><br>p8 big values ~100 will slow down the camera movement before reaching this node<br><br>p9 != 0 seems to override the rot
<syntaxhighlight lang="javascript">mp.game.cam.addCamSplineNode(camera, x, y, z, xRot, yRot, zRot, length, p8, p9);</syntaxhighlight>
...
1,007 bytes (156 words) - 21:05, 6 May 2017
*'''camera:''' {{RageType|number}}
mp.game.cam.setDebugName(camera, name)
...
450 bytes (46 words) - 04:24, 27 May 2024
Enables the camera view from your phone
Up arrow to enable the camera, down arrow to disable the camera
...
749 bytes (99 words) - 00:21, 23 January 2019
*'''camera:''' {{RageType|number}}
mp.game.cam.setDofFnumberOfLens(camera, p1)
...
453 bytes (46 words) - 04:22, 27 May 2024
*'''camera:''' {{RageType|number}}
mp.game.cam.setDofFocalLengthMultiplier(camera, multiplier)
...
477 bytes (46 words) - 04:22, 27 May 2024