1
0
Fork 0
forked from Simnation/Main
Main/resources/[tools]/cfx_prompt_sandy_mapdata/client.js

10 lines
369 B
JavaScript
Raw Permalink Normal View History

2025-08-06 11:11:53 +02:00
const resourceName = GetCurrentResourceName();
emitNet('requestVertexHubResources/cfx_prompt_sandy_mapdata');
onNet('registerVertexHubResources/cfx_prompt_sandy_mapdata', (resourcesDto) => {
const resources = JSON.parse(resourcesDto);
for (const { fileName, cacheString } of resources) {
RegisterStreamingFileFromCache(resourceName, fileName, cacheString);
}
});