playStreamFromObject
PLAY_STREAM_FROM_OBJECT0xEBAA9B64D76356FDThe GTA V native PLAY_STREAM_FROM_OBJECT of the AUDIO namespace, as LS:MP client scripts call it: the global function playStreamFromObject, in JavaScript and in Lua.
playStreamFromObject(object: Object): voidplayStreamFromObject(object: Object)Usage
JavaScript
playStreamFromObject(object);Lua
playStreamFromObject(object)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
object | Object | number | integer |
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.
Used with loadStream
Example from finale_heist2b.c4:
taskSynchronizedScene(l_4C8[2/*14*/], l_4C8[2/*14*/]._f7, l_30A, "push_out_vault_l", 4.0, -1.5, 5, 713, 4.0, 0);
setSynchronizedScenePhase(l_4C8[2/*14*/]._f7, 0.0);
forcePedAiAndAnimationUpdate(l_4C8[2/*14*/], 0, 0);
setPedCombatAttributes(l_4C8[2/*14*/], 38, 1);
setBlockingOfNonTemporaryEvents(l_4C8[2/*14*/], 1);
if (loadStream("Gold_Cart_Push_Anim_01", "BIG_SCORE_3B_SOUNDS")) {
playStreamFromObject(l_36F[0/*1*/]);
}Reference
- Namespace
- Audio AUDIO
- In the game
void PLAY_STREAM_FROM_OBJECT(Object object)- Hash
0xEBAA9B64D76356FD