getNextAudibleBeat
GET_NEXT_AUDIBLE_BEAT0xC64A06D939F826F5The GTA V native GET_NEXT_AUDIBLE_BEAT of the AUDIO namespace, as LS:MP client scripts call it: the global function getNextAudibleBeat, in JavaScript and in Lua.
getNextAudibleBeat(): [ok: boolean, out1: number, out2: number, out3: number]getNextAudibleBeat(): boolean, number, number, integerUsage
JavaScript
const [ok, out1, out2, out3] = getNextAudibleBeat();Lua
local ok, out1, out2, out3 = getNextAudibleBeat()Parameters
None. The game writes the outputs: they are handed back, not passed in.
Returns
4 values, in this order: an array in JavaScript, multiple return values in Lua.
| # | Value | Type | JavaScript | Lua | Description |
|---|---|---|---|---|---|
| 1 | ok | BOOL | boolean | boolean | The native’s own return value. |
| 2 | out1 | float | number | number | output |
| 3 | out2 | float | number | number | output |
| 4 | out3 | int | number | integer | output |
Reference
- Namespace
- Audio AUDIO
- In the game
BOOL GET_NEXT_AUDIBLE_BEAT(float* out1, float* out2, int* out3)- Hash
0xC64A06D939F826F5- Introduced
- Game build 1493 legacy numbering