10 lines
		
	
	
		
			No EOL
		
	
	
		
			369 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			10 lines
		
	
	
		
			No EOL
		
	
	
		
			369 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| 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);
 | |
| 	}
 | |
| }); | 
