CameraClient

pointCamAtPedBone

POINT_CAM_AT_PED_BONE0x68B2B5F33BA63C41

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

SignatureJavaScript
pointCamAtPedBone(
  cam: Cam,
  ped: Ped,
  boneIndex: number,
  x: number,
  y: number,
  z: number,
  p6: boolean
): void
SignatureLua
pointCamAtPedBone(
  cam: Cam,
  ped: Ped,
  boneIndex: integer,
  x: number,
  y: number,
  z: number,
  p6: boolean
)

Usage

JavaScript
pointCamAtPedBone(cam, ped, boneIndex, x, y, z, p6);
Lua
pointCamAtPedBone(cam, ped, boneIndex, x, y, z, p6)

Three consecutive numbers can be given as one vector: { x, y, z } (or [x, y, z]) in JavaScript, a Vector3 in Lua.

JavaScript · with vectors
pointCamAtPedBone(cam, ped, boneIndex, pos, p6);
Lua · with vectors
pointCamAtPedBone(cam, ped, boneIndex, pos, p6)

Parameters

ParameterTypeJavaScriptLua
camCamnumberinteger
pedPednumberinteger
boneIndexintnumberinteger
xfloatnumbernumber
yfloatnumbernumber
zfloatnumbernumber
p6BOOLbooleanboolean

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.

Parameters p0-p5 seems correct. The bool p6 is unknown, but through every X360 script it's always 1. Please correct p0-p5 if any prove to be wrong.

Reference

Namespace
Camera CAM
In the game
void POINT_CAM_AT_PED_BONE(Cam cam, Ped ped, int boneIndex, float x, float y, float z, BOOL p6)
Hash
0x68B2B5F33BA63C41

Open in the interactive natives reference