_SET_GAMEPLAY_CAM_PARAMS_THIS_UPDATE
Sets the third person gameplay camera zoom level and blends in.
0x066167C63111D8CFSetGameplayCamParamsThisUpdateSignature
void _SET_GAMEPLAY_CAM_PARAMS_THIS_UPDATE(float speed, BOOL respectHorizontalOffset, float horizontalOffset, BOOL respectDistance, float distance);Parameters
| Name | Type | Description |
|---|---|---|
speed | float | — |
respectHorizontalOffset | BOOL | — |
horizontalOffset | float | — |
respectDistance | BOOL | — |
distance | float | — |
Returns void
Description
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.
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
SetGameplayCamParamsThisUpdate(speed, respectHorizontalOffset, horizontalOffset, respectDistance, distance)
-- always works, by hash
Citizen.InvokeNative(0x066167C63111D8CF, speed, respectHorizontalOffset, horizontalOffset, respectDistance, distance)JavaScript and C#
SetGameplayCamParamsThisUpdate(speed, respectHorizontalOffset, horizontalOffset, respectDistance, distance);
// by hash
Citizen.invokeNative('0x066167C63111D8CF', speed + 0.0000001, respectHorizontalOffset, horizontalOffset + 0.0000001, respectDistance, distance + 0.0000001);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. Write10.0orvalue + 0.0. The generated JS wrappers add0.0000001to 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
InvokeNativewith 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.