RedM Natives

IS_PLAYER_IN_FREE_CAM_MODE

Hash0x1F14F2AC
Runtime nameIsPlayerInFreeCamMode
NamespaceCFX
SideServer
NameOfficial
Docs

Signature

bool IS_PLAYER_IN_FREE_CAM_MODE(char* playerSrc);

Parameters

NameTypeDescription
playerSrcchar*

The player to get the free camera mode status of

Returns bool — Returns if the player is in free camera mode.

Usage

Lua
local retval = IsPlayerInFreeCamMode(playerSrc)

-- always works, by hash
local retval = Citizen.InvokeNative(0x1f14f2ac, playerSrc, Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const retval = IsPlayerInFreeCamMode(playerSrc);

// by hash
const retval = Citizen.invokeNative('0x1f14f2ac', playerSrc, Citizen.returnResultAnyway());
C#
bool retval = Function.Call<bool>((Hash)0x1f14f2ac, playerSrc);

Sources

Cfx.re native reference

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