The FiveM developer’s field guide
Know the native.
Build the world.
Engine functions, framework docs, and game assets.
One reference. From the first lookup to the last line.
knowledge base
Explore / FiveM
Native reference
- CAMvoid
SET_CAM_DEBUG_NAME
``` NOTE: Debugging functions are not present in the retail version of the game. ```
0x1B93E0107865DD40 - CAMvoid
_SET_CAM_DOF_FNUMBER_OF_LENS
``` This native has its name defined inside its codE ```
0x7DD234D6F3914C5B - CAMvoid
_SET_CAM_DOF_FOCAL_LENGTH_MULTIPLIER
``` Native name labeled within its code ```
0x47B595D60664CFFA - CAMvoid
_SET_CAM_DOF_FOCUS_DISTANCE_BIAS
``` This native has a name defined inside its code ```
0xC669EEA5D031B7DE - CAMvoid
_SET_CAM_DOF_MAX_NEAR_IN_FOCUS_DISTANCE
``` This native has a name defined inside its code ```
0xC3654A441402562D - CAMvoid
_SET_CAM_DOF_MAX_NEAR_IN_FOCUS_DISTANCE_BLEND_LEVEL
``` This native has a name defined inside its code ```
0x2C654B4943BDDF7C - CAMvoid
SET_CAM_DOF_PLANES
Description not yet documented
0x3CF48F6F96E749DC - CAMvoid
SET_CAM_DOF_STRENGTH
Specifies how much the DoF effect should be applied (Set using [`SET_CAM_NEAR_DOF`](#\_0x3FA4BF0A7AB7DE2C), [`SET_CAM_FAR_DOF`](#\_0xEDD91296CD01AEE0), etc.)
0x5EE29B4D7D5DF897 - CAMvoid
_SET_CAM_EFFECT
``` if p0 is 0, effect is cancelled if p0 is 1, effect zooms in, gradually tilts cam clockwise apx 30 degrees, wobbles slowly. Motion blur is active until cancelled. if p0 is 2, effect immediately tilts cam clockwise apx 30 degrees, begins to wobble slowly, then gradually tilts cam back to normal. The wobbling will continue until the effect is cancelled. ```
0x80C8B1846639BB19 - CAMvoid
SET_CAM_FAR_CLIP
Description not yet documented
0xAE306F2A904BF86E - CAMvoid
SET_CAM_FAR_DOF
Specifies when the camera should stop being in focus. Can be used together with [`SET_USE_HI_DOF`](#\_0xA13B0222F3D94A94), [`SET_CAM_NEAR_DOF`](#\_0x3FA4BF0A7AB7DE2C), [`SET_CAM_USE_SHALLOW_DOF_MODE`](#\_0x16A96863A17552BB), [`SET_CAM_DOF_STRENGTH`](#\_0x5EE29B4D7D5DF897) and other DoF related natives. ### Usage Example A usage example for this native can be found in the following native documentation: [`SET_CAM_DOF_STRENGTH`](#\_0x5EE29B4D7D5DF897).
0xEDD91296CD01AEE0 - CAMvoid
SET_CAM_FOV
Adjusts the field of view (FOV) for a specified camera, allowing for a wider or narrower perspective of the game world. The field of view is measured in degrees and affects how much of the game world is visible at any given moment through the camera. ``` NativeDB Introduced: v323 ```
0xB13C14F66A00D047 - CAMvoid
SET_CAM_INHERIT_ROLL_VEHICLE
``` The native seems to only be called once. The native is used as so, CAM::SET_CAM_INHERIT_ROLL_VEHICLE(l_544, getElem(2, &l_525, 4)); In the exile1 script. ```
0x45F1DE9C34B93AE6 - CAMvoid
SET_CAM_MOTION_BLUR_STRENGTH
Description not yet documented
0x6F0F77FBA9A8F2E6 - CAMvoid
SET_CAM_NEAR_CLIP
Description not yet documented
0xC7848EFCCC545182 - CAMvoid
SET_CAM_NEAR_DOF
Specifies when the camera should start being in focus. Can be used together with [`SET_USE_HI_DOF`](#\_0xA13B0222F3D94A94), [`SET_CAM_FAR_DOF`](#\_0xEDD91296CD01AEE0), [`SET_CAM_USE_SHALLOW_DOF_MODE`](#\_0x16A96863A17552BB), [`SET_CAM_DOF_STRENGTH`](#\_0x5EE29B4D7D5DF897) and other DoF related natives. ### Usage Example A usage example for this native can be found in the following native documentation: [`SET_CAM_DOF_STRENGTH`](#\_0x5EE29B4D7D5DF897).
0x3FA4BF0A7AB7DE2C - CAMvoid
SET_CAM_PARAMS
Description not yet documented
0xBFD8727AEA3CCEBA - CAMvoid
SET_CAM_ROT
Sets the rotation of the camera.
0x85973643155D0B07 - CAMvoid
SET_CAM_SHAKE_AMPLITUDE
Description not yet documented
0xD93DB43B82BC0D00 - CAMvoid
SET_CAM_SPLINE_DURATION
``` I named p1 as timeDuration as it is obvious. I'm assuming tho it is ran in ms(Milliseconds) as usual. ```
0x1381539FEE034CDA - CAMvoid
SET_CAM_SPLINE_NODE_EASE
Description not yet documented
0x83B8201ED82A9A2D - CAMvoid
SET_CAM_SPLINE_NODE_EXTRA_FLAGS
Description not yet documented
0x7BF1A54AE67AC070 - CAMvoid
SET_CAM_SPLINE_NODE_VELOCITY_SCALE
Description not yet documented
0xA6385DEB180F319F - CAMvoid
SET_CAM_SPLINE_PHASE
Description not yet documented
0x242B5874F0A4E052 - CAMvoid
SET_CAM_SPLINE_SMOOTHING_STYLE
Sets the smoothing style for a DEFAULT_SPLINE_CAMERA Ranges from 0 to 3 in rockstar scripts although there are actually 26 ``` 0: No lead-in or lead-out smoothing 1: Smooth lead-in 2: Smooth lead-out 3: Both lead-in and lead-out are smoothed 4-6: Longer speed up, lead-in, lead-out, and both in order as above. 6: see above, but missed a node in testing(?) 7: Smoothed lead-in, longer smoothed lead-out 8: Longer lead-in and lead-out than 6, didn't drop node 9: Constant acceleration 10: Constant deceleration. Dropped 2 nodes in testing. 11: Same as 0 12: 10 but slower lead-in, reaches end node less early 13: Extremely close to 3, slightly longer lead-in/lead-out 14: Constant acceleration, dropped last 2 nodes in testing and halted (?) 15: Very similar to 10, did not drop any nodes. 16: Long lead-in, dropped 2 nodes in testing, very long leadout. 17: Constant acceleration, slower speed-up than 9 18: Same as 17 is to 9, slightly longer lead-out, lingers at end node 19: Very long lead in and out 20: Very long, gradual lead-in acceleration at start, gets extremely fast 21: Same as 20 but for constant deceleration 22: 20 and 21 combined, long linger at end node. Dropped 2 nodes in testing 23: Constant acceleration, doesn't complete path before it stops 24: Same as 23 but with constant deceleration, but completes path 25: 23 and 24 combined, insanely fast at middle. 26: No noticable lead-in, misses last 2 nodes in testing 27+: Alternates between 0 and 26 ``` The above is documented and graphed at [Spline Cam Interp Graphs](https://docs.google.com/spreadsheets/d/1ejyiMcEYrhhQOL0mLe8664UN-vU4Oh-SBqQnVcKlFIk/edit?usp=sharing) Using 1-3 will result in misalignment from the passed durations for the spline nodes, the overall duration will remain but other nodes will be shortened if smoothing anything. Graph below demonstrates interpolation between 0-1000 and back 10 times. 
0xD1B0F412F109EA5D - CAMvoid
SET_CAM_USE_SHALLOW_DOF_MODE
Enables or disables the usage of a shallow DOF. Needs to be set to true to use [`SET_CAM_NEAR_DOF`](#\_0x3FA4BF0A7AB7DE2C), [`SET_CAM_FAR_DOF`](#\_0xEDD91296CD01AEE0), etc. Doesn't need to be called every tick. ### Usage Example A usage example for this native can be found in the following native documentation: [`SET_CAM_DOF_STRENGTH`](#\_0x5EE29B4D7D5DF897).
0x16A96863A17552BB - CAMvoid
SET_CAM_VIEW_MODE_FOR_CONTEXT
Description not yet documented
0x2A2173E46DAECD12 - CAMvoid
SET_CINEMATIC_BUTTON_ACTIVE
Description not yet documented
0x51669F7D1FB53D9F - CAMvoid
SET_CINEMATIC_CAM_SHAKE_AMPLITUDE
Description not yet documented
0xC724C701C30B2FE7 - CAMvoid
SET_CINEMATIC_MODE_ACTIVE
``` Toggles the vehicle cinematic cam; requires the player ped to be in a vehicle to work. ```
0xDCF0754AC3D6FD4E - CAMvoid
SET_CINEMATIC_NEWS_CHANNEL_ACTIVE_THIS_UPDATE
Description not yet documented
0xDC9DA9E8789F5246 - CAMvoid
SET_FIRST_PERSON_AIM_CAM_NEAR_CLIP_THIS_UPDATE
Description not yet documented
0x0AF7B437918103B3 - CAMvoid
SET_FIRST_PERSON_AIM_CAM_ZOOM_FACTOR
Description not yet documented
0x70894BD0915C5BCA - CAMvoid
_SET_FIRST_PERSON_CAM_PITCH_RANGE
Description not yet documented
0xBCFC632DB7673BF0 - CAMvoid
SET_FLY_CAM_COORD_AND_CONSTRAIN
Description not yet documented
0xC91C6C55199308CA - CAMvoid
SET_FLY_CAM_HORIZONTAL_RESPONSE
Description not yet documented
0x503F5920162365B2 - CAMvoid
SET_FLY_CAM_MAX_HEIGHT
Description not yet documented
0xF9D02130ECDD1D77 - CAMvoid
_SET_FLY_CAM_VERTICAL_SPEED_MULTIPLIER
Description not yet documented
0xE827B9382CFB41BA - CAMBOOL
SET_FOLLOW_PED_CAM_THIS_UPDATE
Overrides the ped follow camera (not first person camera) with the specified camera. The game loads all camera metadata from `update/update.rpf/x64/data/metadata/cameras.ymt` and `x64a.rpf/data/metadata/cameras.ymt` with the ped follow cameras being of type `camFollowPedCameraMetadata`. | Follow Camera Names | |----------------------------------------------| | DEFAULT_FOLLOW_PED_CAMERA | | FOLLOW_PED_ATTACHED_TO_ROPE_CAMERA | | FOLLOW_PED_ON_EXILE1\_LADDER_CAMERA | | FOLLOW_PED_SKY_DIVING_CAMERA | | FOLLOW_PED_SKY_DIVING_FAMILY5\_CAMERA | | NIGHTCLUB_FOLLOW_PED_CAMERA | | FOLLOW_PED_INTIMIDATION_CAMERA | | FOLLOW_PED_IN_WATER_CAMERA | | FOLLOW_PED_PRONE_CAMERA | | FOLLOW_PED_ON_SEAT_CAMERA | | FOLLOW_PED_HANGING_UPSIDE_DOWN_CAMERA | | FOLLOW_PED_ATTACHED_TO_ROPE_CAMERA | | CUSTOM_TRANSITION_AFTER_WARP_SKY_DIVE_CAMERA | | FOLLOW_PED_ON_HORSE_CAMERA | | FOLLOW_PED_ON_LOUNGER_CAMERA | Other camera hashes (names not found yet) ```cpp // 0x5DBBFB6E // 0xA38DB056 // 0x16B702A3 // 0x41D72A2E ```
0x44A113DD6FFC48D1 - CAMvoid
SET_FOLLOW_PED_CAM_VIEW_MODE
See [`GET_FOLLOW_PED_CAM_VIEW_MODE`](#\_0x8D4D46230B2C353A) for the follow mode enum.
0x5A4F9EDF1673F704
A living reference. Documentation coverage varies by native and source.