waypointPlaybackStartShootingAtCoord
WAYPOINT_PLAYBACK_START_SHOOTING_AT_COORD0x057A25CFCC9DB671The GTA V native WAYPOINT_PLAYBACK_START_SHOOTING_AT_COORD of the TASK namespace, as LS:MP client scripts call it: the global function waypointPlaybackStartShootingAtCoord, in JavaScript and in Lua.
waypointPlaybackStartShootingAtCoord(
ped: Ped,
x: number,
y: number,
z: number,
p4: boolean,
firingPattern: Hash
): voidwaypointPlaybackStartShootingAtCoord(
ped: Ped,
x: number,
y: number,
z: number,
p4: boolean,
firingPattern: Hash
)Usage
JavaScript
waypointPlaybackStartShootingAtCoord(ped, x, y, z, p4, firingPattern);Lua
waypointPlaybackStartShootingAtCoord(ped, x, y, z, p4, firingPattern)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
waypointPlaybackStartShootingAtCoord(ped, pos, p4, firingPattern);Lua · with vectors
waypointPlaybackStartShootingAtCoord(ped, pos, p4, firingPattern)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
ped | Ped | number | integer |
x | float | number | number |
y | float | number | number |
z | float | number | number |
p4 | BOOL | boolean | boolean |
firingPattern | Hash | number | integer |
Returns
Nothing. In JavaScript the call evaluates to undefined.
Reference
- Namespace
- Tasks TASK
- In the game
void WAYPOINT_PLAYBACK_START_SHOOTING_AT_COORD(Ped ped, float x, float y, float z, BOOL p4, Hash firingPattern)- Hash
0x057A25CFCC9DB671