ed
This commit is contained in:
parent
5ae435ed6e
commit
8011bd1e8f
7384 changed files with 1197 additions and 88546 deletions
|
@ -1,10 +0,0 @@
|
|||
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);
|
||||
}
|
||||
});
|
|
@ -1,25 +0,0 @@
|
|||
fx_version "cerulean"
|
||||
games { 'gta5' }
|
||||
|
||||
author 'Prompt Mods'
|
||||
description 'Gas+Church+Houses1+Trainstation+Marina+Boathouse+Sheriff+Hospital+Airfield'
|
||||
version '1.0.0'
|
||||
|
||||
this_is_a_map 'yes'
|
||||
|
||||
escrow_ignore {
|
||||
'stream/**'
|
||||
}
|
||||
|
||||
-- scripts --
|
||||
lua54 'yes'
|
||||
|
||||
|
||||
client_scripts {
|
||||
'client.js'
|
||||
}
|
||||
|
||||
server_scripts{
|
||||
'sv_MapDataHandler.lua',
|
||||
'server.js'
|
||||
}
|
|
@ -1,27 +0,0 @@
|
|||
const fs = require('fs');
|
||||
const path = require('path');
|
||||
|
||||
const resourceName = GetCurrentResourceName();
|
||||
const resourcePath = GetResourcePath(resourceName);
|
||||
const resourceStreamPath = path.join(resourcePath, 'stream');
|
||||
|
||||
const walk = (dir) => fs.readdirSync(dir, { withFileTypes: true }).flatMap((file) => file.isDirectory() ? walk(path.join(dir, file.name)) : path.join(dir, file.name));
|
||||
|
||||
const resources = [];
|
||||
const streamFiles = walk(resourceStreamPath);
|
||||
|
||||
for (const streamFile of streamFiles) {
|
||||
const relativePath = path.relative(resourcePath, streamFile);
|
||||
const baseName = path.basename(streamFile);
|
||||
const cacheString = RegisterResourceAsset(resourceName, relativePath);
|
||||
|
||||
resources.push({
|
||||
fileName: baseName,
|
||||
cacheString,
|
||||
});
|
||||
}
|
||||
|
||||
onNet('requestVertexHubResources/cfx_prompt_sandy_mapdata', () => {
|
||||
const resourcesDto = JSON.stringify(resources);
|
||||
emitNet('registerVertexHubResources/cfx_prompt_sandy_mapdata', source, resourcesDto);
|
||||
});
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue