mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-17 06:56:03 +01:00
feat(package): streaming wrapper
This commit is contained in:
@@ -6,3 +6,5 @@ export * from './interface/menu';
|
||||
export * from './interface/notify';
|
||||
export * from './interface/progress';
|
||||
export * from './interface/textui';
|
||||
|
||||
export * from './streaming';
|
||||
|
||||
14
package/client/resource/streaming/index.ts
Normal file
14
package/client/resource/streaming/index.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
export const requestAnimDict = (animDict: string, timeout?: number): string =>
|
||||
exports.ox_lib.requestAnimDict(animDict, timeout);
|
||||
|
||||
export const requestAnimSet = (animSet: string, timeout?: number): string =>
|
||||
exports.ox_lib.requestAnimSet(animSet, timeout);
|
||||
|
||||
export const requestModel = (model: string | number, timeout?: number): string =>
|
||||
exports.ox_lib.requestModel(model, timeout);
|
||||
|
||||
export const requestStreamedTextureDict = (dict: string, timeout?: number): string =>
|
||||
exports.ox_lib.requestStreamedTextureDict(dict, timeout);
|
||||
|
||||
export const requestNamedPtfxAsset = (fxName: string, timeout?: number): string =>
|
||||
exports.ox_lib.requestNamedPtfxAsset(fxName, timeout);
|
||||
Reference in New Issue
Block a user