CameraClient

setGameplayPedHint

SET_GAMEPLAY_PED_HINT0x2B486269ACD548D3

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

SignatureJavaScript
setGameplayPedHint(
  ped: Ped,
  x1: number,
  y1: number,
  z1: number,
  p4: boolean,
  duration: number,
  blendOutDuration: number,
  blendInDuration: number
): void
SignatureLua
setGameplayPedHint(
  ped: Ped,
  x1: number,
  y1: number,
  z1: number,
  p4: boolean,
  duration: integer,
  blendOutDuration: integer,
  blendInDuration: integer
)

Usage

JavaScript
setGameplayPedHint(ped, x1, y1, z1, p4, duration, blendOutDuration, blendInDuration);
Lua
setGameplayPedHint(ped, x1, y1, z1, p4, duration, blendOutDuration, blendInDuration)

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
setGameplayPedHint(ped, pos1, p4, duration, blendOutDuration, blendInDuration);
Lua · with vectors
setGameplayPedHint(ped, pos1, p4, duration, blendOutDuration, blendInDuration)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger
x1floatnumbernumber
y1floatnumbernumber
z1floatnumbernumber
p4BOOLbooleanboolean
durationintnumberinteger
blendOutDurationintnumberinteger
blendInDurationintnumberinteger

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Camera CAM
In the game
void SET_GAMEPLAY_PED_HINT(Ped ped, float x1, float y1, float z1, BOOL p4, int duration, int blendOutDuration, int blendInDuration)
Hash
0x2B486269ACD548D3

Open in the interactive natives reference