setCamDofShouldKeepLookAtTargetInFocus
SET_CAM_DOF_SHOULD_KEEP_LOOK_AT_TARGET_IN_FOCUS0x7CF3AF51DCFE4108The GTA V native SET_CAM_DOF_SHOULD_KEEP_LOOK_AT_TARGET_IN_FOCUS of the CAM namespace, as LS:MP client scripts call it: the global function setCamDofShouldKeepLookAtTargetInFocus, in JavaScript and in Lua.
setCamDofShouldKeepLookAtTargetInFocus(camera: Cam, state: boolean): voidsetCamDofShouldKeepLookAtTargetInFocus(camera: Cam, state: boolean)⚠
Not in this game build
The global exists, but the native is not part of the game build LS:MP runs: calling it does nothing and returns undefined in JavaScript, nil in Lua. It never throws. See Coverage.
Usage
JavaScript
setCamDofShouldKeepLookAtTargetInFocus(camera, state);Lua
setCamDofShouldKeepLookAtTargetInFocus(camera, state)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
camera | Cam | number | integer |
state | BOOL | boolean | boolean |
Returns
Nothing. In JavaScript the call evaluates to undefined.
Notes
From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.
This native has a name defined inside its code
Reference
- Namespace
- Camera CAM
- In the game
void SET_CAM_DOF_SHOULD_KEEP_LOOK_AT_TARGET_IN_FOCUS(Cam camera, BOOL state)- Hash
0x7CF3AF51DCFE4108- Introduced
- Game build 2944 legacy numbering