CameraClient

setGameplayCamFollowPedThisUpdate

SET_GAMEPLAY_CAM_FOLLOW_PED_THIS_UPDATE0x8BBACBF51DA047A8

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

SignatureJavaScript
setGameplayCamFollowPedThisUpdate(ped: Ped): void
SignatureLua
setGameplayCamFollowPedThisUpdate(ped: Ped)

Usage

JavaScript
setGameplayCamFollowPedThisUpdate(ped);
Lua
setGameplayCamFollowPedThisUpdate(ped)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger

Returns

Nothing. In JavaScript the call evaluates to undefined.

Notes

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

Forces gameplay cam to specified ped as if you were the ped or spectating it

Reference

Namespace
Camera CAM
In the game
void SET_GAMEPLAY_CAM_FOLLOW_PED_THIS_UPDATE(Ped ped)
Hash
0x8BBACBF51DA047A8

Open in the interactive natives reference