AudioClient

playStreamFromPosition

PLAY_STREAM_FROM_POSITION0x21442F412E8DE56B

The GTA V native PLAY_STREAM_FROM_POSITION of the AUDIO namespace, as LS:MP client scripts call it: the global function playStreamFromPosition, in JavaScript and in Lua.

SignatureJavaScript
playStreamFromPosition(x: number, y: number, z: number): void
SignatureLua
playStreamFromPosition(x: number, y: number, z: number)

Usage

JavaScript
playStreamFromPosition(x, y, z);
Lua
playStreamFromPosition(x, y, z)

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
playStreamFromPosition(pos);
Lua · with vectors
playStreamFromPosition(pos)

Parameters

ParameterTypeJavaScriptLua
xfloatnumbernumber
yfloatnumbernumber
zfloatnumbernumber

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Audio AUDIO
In the game
void PLAY_STREAM_FROM_POSITION(float x, float y, float z)
Hash
0x21442F412E8DE56B
Formerly
SPECIAL_FRONTEND_EQUAL

Open in the interactive natives reference