The Lab
CAMERA native

_SET_GAMEPLAY_CAM_INITIAL_ZOOM

returns void1 parambuild 1207

Sets the zoom level the gameplay camera starts with, camInitialZoom.

Signature

C
void _SET_GAMEPLAY_CAM_INITIAL_ZOOM(float camInitialZoom); // 0xBCDA0BA8762FACB9 b1207

Parameters

#NameType
1camInitialZoomfloat

Facts

Facts about _SET_GAMEPLAY_CAM_INITIAL_ZOOM
Name
_SET_GAMEPLAY_CAM_INITIAL_ZOOM
Hash
0xBCDA0BA8762FACB9
Namespace
Returns
void
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
Citizen.InvokeNative(0xBCDA0BA8762FACB9, -- _SET_GAMEPLAY_CAM_INITIAL_ZOOM
  0.0 -- float camInitialZoom
)
JavaScript
// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
Citizen.invokeNative("0xBCDA0BA8762FACB9", // _SET_GAMEPLAY_CAM_INITIAL_ZOOM
  0.0 // float camInitialZoom
);
C#
Function.Call((Hash)0xBCDA0BA8762FACB9, // _SET_GAMEPLAY_CAM_INITIAL_ZOOM
  0.0f // float camInitialZoom
);
All CAMERA natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.