setGameplayPedHint
SET_GAMEPLAY_PED_HINT0x2B486269ACD548D3The 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.
setGameplayPedHint(
ped: Ped,
x1: number,
y1: number,
z1: number,
p4: boolean,
duration: number,
blendOutDuration: number,
blendInDuration: number
): voidsetGameplayPedHint(
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
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
ped | Ped | number | integer |
x1 | float | number | number |
y1 | float | number | number |
z1 | float | number | number |
p4 | BOOL | boolean | boolean |
duration | int | number | integer |
blendOutDuration | int | number | integer |
blendInDuration | int | number | integer |
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