SET_THIRD_PERSON_CAM_ORBIT_DISTANCE_LIMITS_THIS_UPDATE
Old name: _ANIMATE_GAMEPLAY_CAM_ZOOM
Hash
0x2126C740A4AC370BRuntime name
SetThirdPersonCamOrbitDistanceLimitsThisUpdateNamespaceCAMERA
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0xDF2E1F7742402E81Signature
void SET_THIRD_PERSON_CAM_ORBIT_DISTANCE_LIMITS_THIS_UPDATE(float p0, float distance);Parameters
| Name | Type | Description |
|---|---|---|
p0 | float | — |
distance | float | — |
Returns void
Description
Old name: _ANIMATE_GAMEPLAY_CAM_ZOOM
Usage
SetThirdPersonCamOrbitDistanceLimitsThisUpdate(p0, distance)
-- always works, by hash
Citizen.InvokeNative(0x2126C740A4AC370B, p0, distance)JavaScript and C#
SetThirdPersonCamOrbitDistanceLimitsThisUpdate(p0, distance);
// by hash
Citizen.invokeNative('0x2126C740A4AC370B', p0 + 0.0000001, distance + 0.0000001);Function.Call((Hash)0x2126C740A4AC370B, p0, 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.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.