{"hash":"0x066167C63111D8CF","ns":"CAMERA","name":"_SET_GAMEPLAY_CAM_PARAMS_THIS_UPDATE","slug":"_SET_GAMEPLAY_CAM_PARAMS_THIS_UPDATE","official":false,"named":true,"luaName":"SetGameplayCamParamsThisUpdate","game":"rdr3","apiset":"client","returnType":"void","params":[{"name":"speed","type":"float"},{"name":"respectHorizontalOffset","type":"BOOL"},{"name":"horizontalOffset","type":"float"},{"name":"respectDistance","type":"BOOL"},{"name":"distance","type":"float"}],"summary":"Sets the third person gameplay camera zoom level and blends in.","descriptions":[{"source":"alloc8or","format":"text","body":"Sets the third person gameplay camera zoom level and blends in.\nMust be called every frame to interpolate.\nOffset and distance permanently affects subtle zoom in weapon wheel and possibly in menus too.\n\nParams: p1 and p3 are usually true."},{"source":"vorp","format":"text","body":"Not official name\nThis 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. \n\nEXAMPLE:\nCitizen.InvokeNative(0x066167c63111d8cf,1.0, true, -1.0, true, 2.0)"},{"source":"femga","format":"pre","body":"0x066167c63111d8cf  (by aaron1a12)\nSets the third person gameplay camera zoom level and blends in.\nMust be called every frame to interpolate.\nImportant: offset and distance permanently affects subtle zoom in weapon wheel and possibly in menus too.\n\nN_0x066167c63111d8cf(fAlpha, iUnk0, fOffset, iUnk1, fDistance)\nN_0x066167c63111d8cf(1.0, 1, 0.0, 1, 0.75)"}],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","sources":["alloc8or","vorp","femga"],"doc":2,"url":"https://natives.borderlinerp.com/natives/CAMERA/_SET_GAMEPLAY_CAM_PARAMS_THIS_UPDATE","markdownUrl":"https://natives.borderlinerp.com/natives/CAMERA/_SET_GAMEPLAY_CAM_PARAMS_THIS_UPDATE.md","snippets":{"lua":"SetGameplayCamParamsThisUpdate(speed, respectHorizontalOffset, horizontalOffset, respectDistance, distance)","luaInvoke":"Citizen.InvokeNative(0x066167C63111D8CF, speed, respectHorizontalOffset, horizontalOffset, respectDistance, distance)","js":"SetGameplayCamParamsThisUpdate(speed, respectHorizontalOffset, horizontalOffset, respectDistance, distance);","jsInvoke":"Citizen.invokeNative('0x066167C63111D8CF', speed + 0.0000001, respectHorizontalOffset, horizontalOffset + 0.0000001, respectDistance, distance + 0.0000001);","csharp":"Function.Call((Hash)0x066167C63111D8CF, speed, respectHorizontalOffset, horizontalOffset, respectDistance, distance);","notes":["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."]}}