RedM Natives

_SET_GAMEPLAY_CAM_PARAMS_THIS_UPDATE

Sets the third person gameplay camera zoom level and blends in.

Hash0x066167C63111D8CF
Runtime nameSetGameplayCamParamsThisUpdate
NamespaceCAMERA
SideClient
NameCommunity guess
Docs
Since build1207

Signature

void _SET_GAMEPLAY_CAM_PARAMS_THIS_UPDATE(float speed, BOOL respectHorizontalOffset, float horizontalOffset, BOOL respectDistance, float distance);

Parameters

NameTypeDescription
speedfloat—
respectHorizontalOffsetBOOL—
horizontalOffsetfloat—
respectDistanceBOOL—
distancefloat—

Returns void

Description

alloc8or RDR3 NativeDB

Sets the third person gameplay camera zoom level and blends in.
Must be called every frame to interpolate.
Offset and distance permanently affects subtle zoom in weapon wheel and possibly in menus too.

Params: p1 and p3 are usually true.

VORPCORE RDR3natives

Not official name
This native allows to move the gameplay cam with the given speed, enableSlide will allow to move the cam to the slideOffset, enableZoom will allow to move the cam to the zoomOffset.

EXAMPLE:
Citizen.InvokeNative(0x066167c63111d8cf,1.0, true, -1.0, true, 2.0)

femga rdr3_discoveries · research notes

0x066167c63111d8cf  (by aaron1a12)
Sets the third person gameplay camera zoom level and blends in.
Must be called every frame to interpolate.
Important: offset and distance permanently affects subtle zoom in weapon wheel and possibly in menus too.

N_0x066167c63111d8cf(fAlpha, iUnk0, fOffset, iUnk1, fDistance)
N_0x066167c63111d8cf(1.0, 1, 0.0, 1, 0.75)

Usage

Lua
SetGameplayCamParamsThisUpdate(speed, respectHorizontalOffset, horizontalOffset, respectDistance, distance)

-- always works, by hash
Citizen.InvokeNative(0x066167C63111D8CF, speed, respectHorizontalOffset, horizontalOffset, respectDistance, distance)
JavaScript and C#
JavaScript
SetGameplayCamParamsThisUpdate(speed, respectHorizontalOffset, horizontalOffset, respectDistance, distance);

// by hash
Citizen.invokeNative('0x066167C63111D8CF', speed + 0.0000001, respectHorizontalOffset, horizontalOffset + 0.0000001, respectDistance, distance + 0.0000001);
C#
Function.Call((Hash)0x066167C63111D8CF, speed, respectHorizontalOffset, horizontalOffset, respectDistance, distance);
  • Float parameters: Lua integers (10, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write 10.0 or value + 0.0. The generated JS wrappers add 0.0000001 to non-zero floats for the same reason.
  • The name is a community guess and may change. If the named call is missing in your client build, use InvokeNative with the hash — it always works.

Sources

alloc8or RDR3 NativeDB · VORPCORE RDR3natives · femga rdr3_discoveries

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.