setFollowPedCamThisUpdate
SET_FOLLOW_PED_CAM_THIS_UPDATE0x44A113DD6FFC48D1The 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.
setFollowPedCamThisUpdate(camName: string, p1: number): booleansetFollowPedCamThisUpdate(camName: string, p1: integer): booleanUsage
JavaScript
const result = setFollowPedCamThisUpdate(camName, p1);Lua
local result = setFollowPedCamThisUpdate(camName, p1)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
camName | string | string | string |
p1 | int | number | integer |
Returns
BOOL JavaScript boolean, Lua booleanNotes
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