RedM Natives

GET_GAMEPLAY_CAM_ROT

Hash0x0252D2B5582957A6
Runtime nameGetGameplayCamRot
NamespaceCAMERA
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x837765A25378F0BB

Signature

Vector3 GET_GAMEPLAY_CAM_ROT(int rotationOrder);

Parameters

NameTypeDescription
rotationOrderint—

Returns Vector3

Usage

Lua
local retval = GetGameplayCamRot(rotationOrder)

-- always works, by hash
local retval = Citizen.InvokeNative(0x0252D2B5582957A6, rotationOrder, Citizen.ResultAsVector())
JavaScript and C#
JavaScript
const retval = GetGameplayCamRot(rotationOrder);

// by hash
const retval = Citizen.invokeNative('0x0252D2B5582957A6', rotationOrder, Citizen.returnResultAnyway(), Citizen.resultAsVector());
C#
Vector3 retval = Function.Call<Vector3>((Hash)0x0252D2B5582957A6, rotationOrder);

Enums and flags

Sources

alloc8or RDR3 NativeDB

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