Skip to content

Commit ec609d6

Browse files
authored
add doc for missing lib.requestAudioBank (#250)
* feat: add missing requestAudioBank doc * remove tabs and change timeout
1 parent f6cc000 commit ec609d6

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

pages/ox_lib/Modules/Streaming/Client.mdx

+16
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,22 @@ Throws errors for invalid assets and returns true if the asset is loaded.
5858
- Number of ticks to wait for the asset to load.
5959
- Default: `10000`
6060

61+
## lib.requestAudioBank
62+
63+
<Callout>
64+
Remember to call `ReleaseScriptAudioBank(set)` at the end of you code!
65+
</Callout>
66+
67+
```lua
68+
lib.requestAudioBank(audioBank, timeout)
69+
```
70+
71+
72+
- audioBank: `string`
73+
- timeout?: `number`
74+
- Number of ticks to wait for the asset to load.
75+
- Default: `30000`
76+
6177
## lib.requestModel
6278

6379
<Callout>

0 commit comments

Comments
 (0)