UNPKG

rock-mod

Version:

Rock-Mod is a powerful framework designed for creating and managing mods for Grand Theft Auto (GTA) games.

43 lines (42 loc) 1.38 kB
export class RageStreamingManager { requestAnimationDictionary(dictionary) { mp.game.streaming.requestAnimDict(dictionary); } hasAnimationDictionaryLoaded(dictionary) { return mp.game.streaming.hasAnimDictLoaded(dictionary); } removeAnimationDictionary(dictionary) { mp.game.streaming.removeAnimDict(dictionary); } requestNamedPtfxAsset(assetName) { mp.game.streaming.requestNamedPtfxAsset(assetName); } hasNamedPtfxAssetLoaded(assetName) { return mp.game.streaming.hasNamedPtfxAssetLoaded(assetName); } isModelInCdimage(model) { const modelHash = mp.game.joaat(model); return mp.game.streaming.isModelInCdimage(modelHash); } requestModel(modelHash) { mp.game.streaming.requestModel(modelHash); } hasModelLoaded(modelHash) { return mp.game.streaming.hasModelLoaded(modelHash); } requestIpl(iplName) { mp.game.streaming.requestIpl(iplName); } removeIpl(iplName) { mp.game.streaming.removeIpl(iplName); } setFocusArea(position, offset) { mp.game.streaming.setFocusArea(position.x, position.y, position.z, offset.x, offset.y, offset.z); } clearFocus() { mp.game.streaming.clearFocus(); } setFocusEntity(entityHandle) { mp.game.streaming.setFocusEntity(entityHandle); } }