CAM Natives - Part 4 of 5
Red Dead Redemption 3 Native Functions Reference
Namespace: CAM
Natives in this file: 50
Total natives in namespace: 233
Generated from: RDR3natives JSON data
_0x70A6658D476C6187
| Property | Value |
|---|---|
| Native Name | _0x70A6658D476C6187 |
| Hash | 0x70A6658D476C6187 |
| Return Type | void |
| Build | 1207 |
| Parameters | None |
Usage
Lua (Direct):
_0x70A6658D476C6187()
Lua (Hash):
Citizen.InvokeNative(0x70A6658D476C6187, )
_FORCE_THIRD_PERSON_CLOSE_THIS_FRAME
Description: Forces camera position to closest 3rd person
| Property | Value |
|---|---|
| Native Name | _FORCE_THIRD_PERSON_CLOSE_THIS_FRAME |
| Hash | 0x718C6ECF5E8CBDD4 |
| Return Type | void |
| API Set | client |
| Build | 1207 |
| Parameters | None |
Usage
Lua (Direct):
ForceThirdPersonCloseThisFrame()
Lua (Hash):
Citizen.InvokeNative(0x718C6ECF5E8CBDD4, )
_0x728491FB3DFFEF99
| Property | Value |
|---|---|
| Native Name | _0x728491FB3DFFEF99 |
| Hash | 0x728491FB3DFFEF99 |
| Return Type | void |
| Build | 1207 |
| Parameters | p0 (Any) |
Parameters
p0(Any)
Usage
Lua (Direct):
_0x728491FB3DFFEF99(p0)
Lua (Hash):
Citizen.InvokeNative(0x728491FB3DFFEF99, p0)
_0x73FF6BE63DC18819
| Property | Value |
|---|---|
| Native Name | _0x73FF6BE63DC18819 |
| Hash | 0x73FF6BE63DC18819 |
| Return Type | Any |
| Build | 1207 |
| Parameters | None |
Usage
Lua (Direct):
local result = _0x73FF6BE63DC18819()
Lua (Hash):
local result = Citizen.InvokeNative(0x73FF6BE63DC18819, )
_0x796085220ADCC847
| Property | Value |
|---|---|
| Native Name | _0x796085220ADCC847 |
| Hash | 0x796085220ADCC847 |
| Return Type | Any |
| Build | 1207 |
| Parameters | None |
Usage
Lua (Direct):
local result = _0x796085220ADCC847()
Lua (Hash):
local result = Citizen.InvokeNative(0x796085220ADCC847, )
_0x7CE9DC58E3E4755F
| Property | Value |
|---|---|
| Native Name | _0x7CE9DC58E3E4755F |
| Hash | 0x7CE9DC58E3E4755F |
| Return Type | Any |
| Build | 1207 |
| Parameters | None |
Usage
Lua (Direct):
local result = _0x7CE9DC58E3E4755F()
Lua (Hash):
local result = Citizen.InvokeNative(0x7CE9DC58E3E4755F, )
_0x7E40A01B11398FCB
| Property | Value |
|---|---|
| Native Name | _0x7E40A01B11398FCB |
| Hash | 0x7E40A01B11398FCB |
| Return Type | void |
| Build | 1207 |
| Parameters | None |
Usage
Lua (Direct):
_0x7E40A01B11398FCB()
Lua (Hash):
Citizen.InvokeNative(0x7E40A01B11398FCB, )
_0x80D7A3E39B120BC4
| Property | Value |
|---|---|
| Native Name | _0x80D7A3E39B120BC4 |
| Hash | 0x80D7A3E39B120BC4 |
| Return Type | Any |
| Build | 1207 |
| Parameters | None |
Usage
Lua (Direct):
local result = _0x80D7A3E39B120BC4()
Lua (Hash):
local result = Citizen.InvokeNative(0x80D7A3E39B120BC4, )
_0x8505E05FC8822843
| Property | Value |
|---|---|
| Native Name | _0x8505E05FC8822843 |
| Hash | 0x8505E05FC8822843 |
| Return Type | void |
| Build | 1207 |
| Parameters | p0 (Any) |
Parameters
p0(Any)
Usage
Lua (Direct):
_0x8505E05FC8822843(p0)
Lua (Hash):
Citizen.InvokeNative(0x8505E05FC8822843, p0)
_0x8B1A5FE7E41E52B2
| Property | Value |
|---|---|
| Native Name | _0x8B1A5FE7E41E52B2 |
| Hash | 0x8B1A5FE7E41E52B2 |
| Return Type | Any |
| Build | 1311 |
| Parameters | None |
Usage
Lua (Direct):
local result = _0x8B1A5FE7E41E52B2()
Lua (Hash):
local result = Citizen.InvokeNative(0x8B1A5FE7E41E52B2, )
_0x8E036B41C37D0E5F
| Property | Value |
|---|---|
| Native Name | _0x8E036B41C37D0E5F |
| Hash | 0x8E036B41C37D0E5F |
| Return Type | void |
| Build | 1207 |
| Parameters | p0 (Any) |
Parameters
p0(Any)
Usage
Lua (Direct):
_0x8E036B41C37D0E5F(p0)
Lua (Hash):
Citizen.InvokeNative(0x8E036B41C37D0E5F, p0)
_0x975F6EBB62632FE3
Description: _IS_SCRIPTED_S*
| Property | Value |
|---|---|
| Native Name | _0x975F6EBB62632FE3 |
| Hash | 0x975F6EBB62632FE3 |
| Return Type | BOOL |
| Build | 1207 |
| Parameters | None |
Usage
Lua (Direct):
local result = _0x975F6EBB62632FE3()
Lua (Hash):
local result = Citizen.InvokeNative(0x975F6EBB62632FE3, )
_0x9AC65A36D3C0C189
| Property | Value |
|---|---|
| Native Name | _0x9AC65A36D3C0C189 |
| Hash | 0x9AC65A36D3C0C189 |
| Return Type | void |
| Build | 1207 |
| Parameters | p0 (Any) |
Parameters
p0(Any)
Usage
Lua (Direct):
_0x9AC65A36D3C0C189(p0)
Lua (Hash):
Citizen.InvokeNative(0x9AC65A36D3C0C189, p0)
_0xA54D643D0773EB65
| Property | Value |
|---|---|
| Native Name | _0xA54D643D0773EB65 |
| Hash | 0xA54D643D0773EB65 |
| Return Type | void |
| Build | 1207 |
| Parameters | dictionary (char*), shotName (char*), duration (int) |
Usage
Lua (Direct):
_0xA54D643D0773EB65(dictionary, shotName, duration)
Lua (Hash):
Citizen.InvokeNative(0xA54D643D0773EB65, dictionary, shotName, duration)
_0xAC77757C05DE9E5A
| Property | Value |
|---|---|
| Native Name | _0xAC77757C05DE9E5A |
| Hash | 0xAC77757C05DE9E5A |
| Return Type | void |
| Build | 1207 |
| Parameters | cameraDictionary (const char*) |
Parameters
cameraDictionary(const char*)
Usage
Lua (Direct):
_0xAC77757C05DE9E5A(cameraDictionary)
Lua (Hash):
Citizen.InvokeNative(0xAC77757C05DE9E5A, cameraDictionary)
_0xB6A80E1E3A5444F1
| Property | Value |
|---|---|
| Native Name | _0xB6A80E1E3A5444F1 |
| Hash | 0xB6A80E1E3A5444F1 |
| Return Type | Any |
| Build | 1311 |
| Parameters | None |
Usage
Lua (Direct):
local result = _0xB6A80E1E3A5444F1()
Lua (Hash):
local result = Citizen.InvokeNative(0xB6A80E1E3A5444F1, )
_0xB85C13E0BF1F2A1C
| Property | Value |
|---|---|
| Native Name | _0xB85C13E0BF1F2A1C |
| Hash | 0xB85C13E0BF1F2A1C |
| Return Type | void |
| Build | 1207 |
| Parameters | p0 (Any) |
Parameters
p0(Any)
Usage
Lua (Direct):
_0xB85C13E0BF1F2A1C(p0)
Lua (Hash):
Citizen.InvokeNative(0xB85C13E0BF1F2A1C, p0)
_0xC205B3C54C6A4E37
| Property | Value |
|---|---|
| Native Name | _0xC205B3C54C6A4E37 |
| Hash | 0xC205B3C54C6A4E37 |
| Return Type | void |
| Build | 1207 |
| Parameters | p0 (Any) |
Parameters
p0(Any)
Usage
Lua (Direct):
_0xC205B3C54C6A4E37(p0)
Lua (Hash):
Citizen.InvokeNative(0xC205B3C54C6A4E37, p0)
_0xC252C0CC969AF79A
| Property | Value |
|---|---|
| Native Name | _0xC252C0CC969AF79A |
| Hash | 0xC252C0CC969AF79A |
| Return Type | void |
| Build | 1207 |
| Parameters | p0 (Any) |
Parameters
p0(Any)
Usage
Lua (Direct):
_0xC252C0CC969AF79A(p0)
Lua (Hash):
Citizen.InvokeNative(0xC252C0CC969AF79A, p0)
_0xC285FD21294A1C49
| Property | Value |
|---|---|
| Native Name | _0xC285FD21294A1C49 |
| Hash | 0xC285FD21294A1C49 |
| Return Type | BOOL |
| Build | 1207 |
| Parameters | cameraDictionary (const char*) |
Parameters
cameraDictionary(const char*)
Usage
Lua (Direct):
local result = _0xC285FD21294A1C49(cameraDictionary)
Lua (Hash):
local result = Citizen.InvokeNative(0xC285FD21294A1C49, cameraDictionary)
_0xC3742F1FDF0A6824
Description: Camera will be or is running
| Property | Value |
|---|---|
| Native Name | _0xC3742F1FDF0A6824 |
| Hash | 0xC3742F1FDF0A6824 |
| Return Type | void |
| Build | 1355 |
| Parameters | None |
Usage
Lua (Direct):
_0xC3742F1FDF0A6824()
Lua (Hash):
Citizen.InvokeNative(0xC3742F1FDF0A6824, )
_0xC3AEBB276825A359
| Property | Value |
|---|---|
| Native Name | _0xC3AEBB276825A359 |
| Hash | 0xC3AEBB276825A359 |
| Return Type | BOOL |
| Build | 1436 |
| Parameters | dictionary (const char*), shotName (const char*), duration (int) |
Parameters
dictionary(const char*)shotName(const char*)duration(int)
Usage
Lua (Direct):
local result = _0xC3AEBB276825A359(dictionary, shotName, duration)
Lua (Hash):
local result = Citizen.InvokeNative(0xC3AEBB276825A359, dictionary, shotName, duration)
_0xCF69EA05CD9C33C9
| Property | Value |
|---|---|
| Native Name | _0xCF69EA05CD9C33C9 |
| Hash | 0xCF69EA05CD9C33C9 |
| Return Type | void |
| Build | 1207 |
| Parameters | None |
Usage
Lua (Direct):
_0xCF69EA05CD9C33C9()
Lua (Hash):
Citizen.InvokeNative(0xCF69EA05CD9C33C9, )
_0xDB382FE20C2DA222
| Property | Value |
|---|---|
| Native Name | _0xDB382FE20C2DA222 |
| Hash | 0xDB382FE20C2DA222 |
| Return Type | void |
| Build | 1207 |
| Parameters | p0 (Any) |
Parameters
p0(Any)
Usage
Lua (Direct):
_0xDB382FE20C2DA222(p0)
Lua (Hash):
Citizen.InvokeNative(0xDB382FE20C2DA222, p0)
_0xDC62CD70658E7A02
| Property | Value |
|---|---|
| Native Name | _0xDC62CD70658E7A02 |
| Hash | 0xDC62CD70658E7A02 |
| Return Type | Any |
| Build | 1207 |
| Parameters | None |
Usage
Lua (Direct):
local result = _0xDC62CD70658E7A02()
Lua (Hash):
local result = Citizen.InvokeNative(0xDC62CD70658E7A02, )
_0xDF7F5BE9150E47E4
| Property | Value |
|---|---|
| Native Name | _0xDF7F5BE9150E47E4 |
| Hash | 0xDF7F5BE9150E47E4 |
| Return Type | void |
| Build | 1207 |
| Parameters | p0 (Any) |
Parameters
p0(Any)
Usage
Lua (Direct):
_0xDF7F5BE9150E47E4(p0)
Lua (Hash):
Citizen.InvokeNative(0xDF7F5BE9150E47E4, p0)
_0xE28F73212A813E82
| Property | Value |
|---|---|
| Native Name | _0xE28F73212A813E82 |
| Hash | 0xE28F73212A813E82 |
| Return Type | void |
| Build | 1207 |
| Parameters | p0 (Any), p1 (Any), p2 (Any), p3 (Any) |
Parameters
p0(Any)p1(Any)p2(Any)p3(Any)
Usage
Lua (Direct):
_0xE28F73212A813E82(p0, p1, p2, p3)
Lua (Hash):
Citizen.InvokeNative(0xE28F73212A813E82, p0, p1, p2, p3)
_0xE2BB2D6A9FE2ECDE
| Property | Value |
|---|---|
| Native Name | _0xE2BB2D6A9FE2ECDE |
| Hash | 0xE2BB2D6A9FE2ECDE |
| Return Type | void |
| Build | 1207 |
| Parameters | p0 (Any) |
Parameters
p0(Any)
Usage
Lua (Direct):
_0xE2BB2D6A9FE2ECDE(p0)
Lua (Hash):
Citizen.InvokeNative(0xE2BB2D6A9FE2ECDE, p0)
_0xE6F364DE6C2FDEFE
| Property | Value |
|---|---|
| Native Name | _0xE6F364DE6C2FDEFE |
| Hash | 0xE6F364DE6C2FDEFE |
| Return Type | void |
| Build | 1207 |
| Parameters | None |
Usage
Lua (Direct):
_0xE6F364DE6C2FDEFE()
Lua (Hash):
Citizen.InvokeNative(0xE6F364DE6C2FDEFE, )
_0xEA113BF9B0C0C5D7
| Property | Value |
|---|---|
| Native Name | _0xEA113BF9B0C0C5D7 |
| Hash | 0xEA113BF9B0C0C5D7 |
| Return Type | Any |
| Build | 1207 |
| Parameters | dictionary (const char*), shotName (const char*), duration (int) |
Parameters
dictionary(const char*)shotName(const char*)duration(int)
Usage
Lua (Direct):
local result = _0xEA113BF9B0C0C5D7(dictionary, shotName, duration)
Lua (Hash):
local result = Citizen.InvokeNative(0xEA113BF9B0C0C5D7, dictionary, shotName, duration)
_0xEF9A3132A0AA6B19
| Property | Value |
|---|---|
| Native Name | _0xEF9A3132A0AA6B19 |
| Hash | 0xEF9A3132A0AA6B19 |
| Return Type | Any |
| Build | 1207 |
| Parameters | None |
Usage
Lua (Direct):
local result = _0xEF9A3132A0AA6B19()
Lua (Hash):
local result = Citizen.InvokeNative(0xEF9A3132A0AA6B19, )
_0xF1A6FEEDF3776EF9
| Property | Value |
|---|---|
| Native Name | _0xF1A6FEEDF3776EF9 |
| Hash | 0xF1A6FEEDF3776EF9 |
| Return Type | void |
| Build | 1207 |
| Parameters | None |
Usage
Lua (Direct):
_0xF1A6FEEDF3776EF9()
Lua (Hash):
Citizen.InvokeNative(0xF1A6FEEDF3776EF9, )
_0xF48664E9C83825E3
| Property | Value |
|---|---|
| Native Name | _0xF48664E9C83825E3 |
| Hash | 0xF48664E9C83825E3 |
| Return Type | void |
| Build | 1207 |
| Parameters | p0 (Any), p1 (Any) |
Parameters
p0(Any)p1(Any)
Usage
Lua (Direct):
_0xF48664E9C83825E3(p0, p1)
Lua (Hash):
Citizen.InvokeNative(0xF48664E9C83825E3, p0, p1)
_0xF824530B612FE0CE
| Property | Value |
|---|---|
| Native Name | _0xF824530B612FE0CE |
| Hash | 0xF824530B612FE0CE |
| Return Type | Any |
| Build | 1207 |
| Parameters | None |
Usage
Lua (Direct):
local result = _0xF824530B612FE0CE()
Lua (Hash):
local result = Citizen.InvokeNative(0xF824530B612FE0CE, )
_0xFC3F638BE2B6BB02
| Property | Value |
|---|---|
| Native Name | _0xFC3F638BE2B6BB02 |
| Hash | 0xFC3F638BE2B6BB02 |
| Return Type | void |
| Build | 1207 |
| Parameters | None |
Usage
Lua (Direct):
_0xFC3F638BE2B6BB02()
Lua (Hash):
Citizen.InvokeNative(0xFC3F638BE2B6BB02, )
_0xFEB8646818294C75
| Property | Value |
|---|---|
| Native Name | _0xFEB8646818294C75 |
| Hash | 0xFEB8646818294C75 |
| Return Type | void |
| Build | 1207 |
| Parameters | p0 (Any), p1 (Any) |
Parameters
p0(Any)p1(Any)
Usage
Lua (Direct):
_0xFEB8646818294C75(p0, p1)
Lua (Hash):
Citizen.InvokeNative(0xFEB8646818294C75, p0, p1)
_0xFEFDDC6E8FDF8A75
Description: _SET_GAMEPLAY_P* - _SET_GAMEPLAY_V*
| Property | Value |
|---|---|
| Native Name | _0xFEFDDC6E8FDF8A75 |
| Hash | 0xFEFDDC6E8FDF8A75 |
| Return Type | void |
| Build | 1207 |
| Parameters | shakeName (const char*), intensity (float) |
Parameters
shakeName(const char*)intensity(float)
Usage
Lua (Direct):
_0xFEFDDC6E8FDF8A75(shakeName, intensity)
Lua (Hash):
Citizen.InvokeNative(0xFEFDDC6E8FDF8A75, shakeName, intensity)
_CAM_CREATE
| Property | Value |
|---|---|
| Native Name | _CAM_CREATE |
| Hash | 0xB8B207C34285E978 |
| Return Type | void |
| Build | 1207 |
| Parameters | cameraDictionary (const char*) |
Parameters
cameraDictionary(const char*)
Usage
Lua (Direct):
CamCreate(cameraDictionary)
Lua (Hash):
Citizen.InvokeNative(0xB8B207C34285E978, cameraDictionary)
_CAM_CREATE_2
| Property | Value |
|---|---|
| Native Name | _CAM_CREATE_2 |
| Hash | 0x7B0279170961A73F |
| Return Type | void |
| Build | 1207 |
| Parameters | cameraDictionary (const char*) |
Parameters
cameraDictionary(const char*)
Usage
Lua (Direct):
CamCreate2(cameraDictionary)
Lua (Hash):
Citizen.InvokeNative(0x7B0279170961A73F, cameraDictionary)
_CAM_DESTROY
| Property | Value |
|---|---|
| Native Name | _CAM_DESTROY |
| Hash | 0x0A5A4F1979ABB40E |
| Return Type | void |
| Build | 1207 |
| Parameters | cameraDictionary (const char*) |
Parameters
cameraDictionary(const char*)
Usage
Lua (Direct):
CamDestroy(cameraDictionary)
Lua (Hash):
Citizen.InvokeNative(0x0A5A4F1979ABB40E, cameraDictionary)
_CINEMATIC_LOCATION_SET_LOCATION_AND_ROTATION
| Property | Value |
|---|---|
| Native Name | _CINEMATIC_LOCATION_SET_LOCATION_AND_ROTATION |
| Hash | 0x0E94C95EC3185FA9 |
| Return Type | void |
| Build | 1207 |
| Parameters | name (const char*), x (float), y (float), z (float), rotX (float), rotY (float), rotZ (float) |
Parameters
name(const char*)x(float)y(float)z(float)rotX(float)rotY(float)rotZ(float)
Usage
Lua (Direct):
CinematicLocationSetLocationAndRotation(name, x, y, z, rotX, rotY, rotZ)
Lua (Hash):
Citizen.InvokeNative(0x0E94C95EC3185FA9, name, x, y, z, rotX, rotY, rotZ)
_CINEMATIC_LOCATION_TRIGGER_SCRIPTED_SHOT_EVENT_2
| Property | Value |
|---|---|
| Native Name | _CINEMATIC_LOCATION_TRIGGER_SCRIPTED_SHOT_EVENT_2 |
| Hash | 0xBC016635D6A73B31 |
| Return Type | void |
| Build | 1207 |
| Parameters | dictionary (const char*), shotName (const char*), duration (int) |
Parameters
dictionary(const char*)shotName(const char*)duration(int)
Usage
Lua (Direct):
CinematicLocationTriggerScriptedShotEvent2(dictionary, shotName, duration)
Lua (Hash):
Citizen.InvokeNative(0xBC016635D6A73B31, dictionary, shotName, duration)
_CREATE_KILL_CAM
Description: Creates Kill Cam for specified Ped Handle
| Property | Value |
|---|---|
| Native Name | _CREATE_KILL_CAM |
| Hash | 0x2F994CC29CAA9D22 |
| Return Type | void |
| Build | 1207 |
| Parameters | ped (Ped) |
Parameters
ped(Ped)
Usage
Lua (Direct):
CreateKillCam(ped)
Lua (Hash):
Citizen.InvokeNative(0x2F994CC29CAA9D22, ped)
_DISABLE_CINEMATIC_MODE_THIS_FRAME
| Property | Value |
|---|---|
| Native Name | _DISABLE_CINEMATIC_MODE_THIS_FRAME |
| Hash | 0x8910C24B7E0046EC |
| Return Type | void |
| Build | 1207 |
| Parameters | None |
Usage
Lua (Direct):
DisableCinematicModeThisFrame()
Lua (Hash):
Citizen.InvokeNative(0x8910C24B7E0046EC, )
_DISABLE_ON_FOOT_FIRST_PERSON_VIEW_THIS_UPDATE_2
Description: Does the same as 0x9C473089A934C930 (DISABLE_ON_FOOT_FIRST_PERSON_VIEW_THIS_UPDATE)
| Property | Value |
|---|---|
| Native Name | _DISABLE_ON_FOOT_FIRST_PERSON_VIEW_THIS_UPDATE_2 |
| Hash | 0x05AB44D906738426 |
| Return Type | void |
| Build | 1207 |
| Parameters | None |
Usage
Lua (Direct):
DisableOnFootFirstPersonViewThisUpdate2()
Lua (Hash):
Citizen.InvokeNative(0x05AB44D906738426, )
End of CAM natives part 4
_0x71D71E08A7ED5BD7
| Property | Value |
|---|---|
| Native Name | _0x71D71E08A7ED5BD7 |
| Hash | 0x71D71E08A7ED5BD7 |
| Return Type | void |
| Build | 1207 |
| API Set | client |
| Parameters | toggle (BOOL) |
Description: Zooms in the third person camera closer to ground level. Must be called every frame to interpolate. Pass false to reset.
Usage
Lua (Direct):
_0x71D71E08A7ED5BD7(toggle)
Lua (Hash):
Citizen.InvokeNative(0x71D71E08A7ED5BD7, toggle)
_0x88544C0E3291DCAE
| Property | Value |
|---|---|
| Native Name | _0x88544C0E3291DCAE |
| Hash | 0x88544C0E3291DCAE |
| Return Type | void |
| Build | 1207 |
| API Set | client |
| Parameters | p0 (BOOL) |
Description: UPDATE_PLAYER_PLAYING_STATE - Releasing Lasso Hint Cam Return type char in ida SET_GAMEPLAY_HINT*
Usage
Lua (Direct):
_0x88544C0E3291DCAE(p0)
Lua (Hash):
Citizen.InvokeNative(0x88544C0E3291DCAE, p0)
_0xA8BA2E0204D8486F
| Property | Value |
|---|---|
| Native Name | _0xA8BA2E0204D8486F |
| Hash | 0xA8BA2E0204D8486F |
| Return Type | void |
| Build | 1355 |
| API Set | client |
Description: NPLOI_UPDATE__GUN_SPINNING_PREVIEW - Adjusting Camera / Ped Reset Flags This Frame DISABLE*
Usage
Lua (Direct):
_0xA8BA2E0204D8486F()
Lua (Hash):
Citizen.InvokeNative(0xA8BA2E0204D8486F)
_SHAKE_GAMEPLAY_CAM_WITH_NAME
| Property | Value |
|---|---|
| Native Name | _SHAKE_GAMEPLAY_CAM_WITH_NAME |
| Hash | 0xC3E9E5D4F413B773 |
| Return Type | void |
| Build | 1207 |
| API Set | client |
| Parameters | shakeName (char*), intensity (float) |
Description: shakeName: REINFORCED_LASSO_STRUGGLE_SHAKE _RES*
Usage
Lua (Direct):
ShakeGameplayCamWithName(shakeName, intensity)
Lua (Hash):
Citizen.InvokeNative(0xC3E9E5D4F413B773, shakeName, intensity)
_SET_CAM_DOF_PARAMS
| Property | Value |
|---|---|
| Native Name | _SET_CAM_DOF_PARAMS |
| Hash | 0xE4B7945EF4F1BFB2 |
| Return Type | void |
| Build | 1207 |
| API Set | client |
| Parameters | cam (Cam), outCamDofParams (Any*) |
Description: Set cam DOF and focal settings.
TODO: Support structs
struct CamDofParams {
float dofStrength; // [0] blur strength
float dofNear; // [1] near falloff
float dofFar; // [2] far falloff
float focalLength; // [3] focal length (e.g. advanced camera uses 30..90)
float minFocal; // [4] min allowed focalLength
float maxFocal; // [5] max allowed focalLength
bool flagA; // [6] lens/DOF enable
bool flagB; // [7] aux toggle (kept conservative)
bool flagC; // [8] aux toggle (kept conservative)
bool flagD; // [9] aux toggle (kept conservative)
};
Usage
Lua (Direct):
SetCamDofParams(cam, outCamDofParams)
Lua (Hash):
Citizen.InvokeNative(0xE4B7945EF4F1BFB2, cam, outCamDofParams)
Examples
local struct = DataView.ArrayBuffer(10*8)
struct:SetFloat32(0*8, 5.0)
struct:SetFloat32(1*8, 2.0)
struct:SetFloat32(2*8, 128.0)
struct:SetFloat32(3*8, 25.0)
struct:SetFloat32(4*8, 25.0)
struct:SetFloat32(5*8, 60.0)
struct:SetInt32(6*8, 1)
struct:SetInt32(7*8, 0)
struct:SetInt32(8*8, 1)
struct:SetInt32(9*8, 1)
Citizen.InvokeNative(0xE4B7945EF4F1BFB2, cam, struct:Buffer())