CameraClient

setFollowPedCamThisUpdate

SET_FOLLOW_PED_CAM_THIS_UPDATE0x44A113DD6FFC48D1

The GTA V native SET_FOLLOW_PED_CAM_THIS_UPDATE of the CAM namespace, as LS:MP client scripts call it: the global function setFollowPedCamThisUpdate, in JavaScript and in Lua.

SignatureJavaScript
setFollowPedCamThisUpdate(camName: string, p1: number): boolean
SignatureLua
setFollowPedCamThisUpdate(camName: string, p1: integer): boolean

Usage

JavaScript
const result = setFollowPedCamThisUpdate(camName, p1);
Lua
local result = setFollowPedCamThisUpdate(camName, p1)

Parameters

ParameterTypeJavaScriptLua
camNamestringstringstring
p1intnumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

From the scripts:

setFollowPedCamThisUpdate("FOLLOW_PED_ATTACHED_TO_ROPE_CAMERA", 0);
setFollowPedCamThisUpdate("FOLLOW_PED_ON_EXILE1_LADDER_CAMERA", 1500);
setFollowPedCamThisUpdate("FOLLOW_PED_SKY_DIVING_CAMERA", 0);
setFollowPedCamThisUpdate("FOLLOW_PED_SKY_DIVING_CAMERA", 3000);
setFollowPedCamThisUpdate("FOLLOW_PED_SKY_DIVING_FAMILY5_CAMERA", 0);
setFollowPedCamThisUpdate("FOLLOW_PED_SKY_DIVING_CAMERA", 0);

Reference

Namespace
Camera CAM
In the game
BOOL SET_FOLLOW_PED_CAM_THIS_UPDATE(const char* camName, int p1)
Hash
0x44A113DD6FFC48D1
Formerly
SET_FOLLOW_PED_CAM_CUTSCENE_CHAT

Open in the interactive natives reference