forked from Simnation/Main
ed
This commit is contained in:
parent
cf533de903
commit
ed382892bd
273 changed files with 0 additions and 0 deletions
10
resources/[tools]/cfx_prompt_sandy_mapdata/client.js
Normal file
10
resources/[tools]/cfx_prompt_sandy_mapdata/client.js
Normal file
|
@ -0,0 +1,10 @@
|
|||
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);
|
||||
}
|
||||
});
|
25
resources/[tools]/cfx_prompt_sandy_mapdata/fxmanifest.lua
Normal file
25
resources/[tools]/cfx_prompt_sandy_mapdata/fxmanifest.lua
Normal file
|
@ -0,0 +1,25 @@
|
|||
fx_version "cerulean"
|
||||
games { 'gta5' }
|
||||
|
||||
author 'Prompt Mods'
|
||||
description 'Motel+Gas+Mechanic+Church+Dealer+Cityhall+Houses1+Trainstation+Marina+Boathouse+Sheriff+Hospital+Airfield+Firestation'
|
||||
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'
|
||||
}
|
27
resources/[tools]/cfx_prompt_sandy_mapdata/server.js
Normal file
27
resources/[tools]/cfx_prompt_sandy_mapdata/server.js
Normal file
|
@ -0,0 +1,27 @@
|
|||
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);
|
||||
});
|
BIN
resources/[tools]/cfx_prompt_sandy_mapdata/stream/_manifest.ymf
Normal file
BIN
resources/[tools]/cfx_prompt_sandy_mapdata/stream/_manifest.ymf
Normal file
Binary file not shown.
Binary file not shown.
BIN
resources/[tools]/cfx_prompt_sandy_mapdata/stream/ch2_05f_2.ybn
Normal file
BIN
resources/[tools]/cfx_prompt_sandy_mapdata/stream/ch2_05f_2.ybn
Normal file
Binary file not shown.
BIN
resources/[tools]/cfx_prompt_sandy_mapdata/stream/cs2_06_18.ybn
Normal file
BIN
resources/[tools]/cfx_prompt_sandy_mapdata/stream/cs2_06_18.ybn
Normal file
Binary file not shown.
BIN
resources/[tools]/cfx_prompt_sandy_mapdata/stream/cs2_06_19.ybn
Normal file
BIN
resources/[tools]/cfx_prompt_sandy_mapdata/stream/cs2_06_19.ybn
Normal file
Binary file not shown.
BIN
resources/[tools]/cfx_prompt_sandy_mapdata/stream/cs2_06_42.ybn
Normal file
BIN
resources/[tools]/cfx_prompt_sandy_mapdata/stream/cs2_06_42.ybn
Normal file
Binary file not shown.
BIN
resources/[tools]/cfx_prompt_sandy_mapdata/stream/cs2_06_43.ybn
Normal file
BIN
resources/[tools]/cfx_prompt_sandy_mapdata/stream/cs2_06_43.ybn
Normal file
Binary file not shown.
Binary file not shown.
BIN
resources/[tools]/cfx_prompt_sandy_mapdata/stream/cs2_06b_10.ybn
Normal file
BIN
resources/[tools]/cfx_prompt_sandy_mapdata/stream/cs2_06b_10.ybn
Normal file
Binary file not shown.
BIN
resources/[tools]/cfx_prompt_sandy_mapdata/stream/cs2_06b_12.ybn
Normal file
BIN
resources/[tools]/cfx_prompt_sandy_mapdata/stream/cs2_06b_12.ybn
Normal file
Binary file not shown.
BIN
resources/[tools]/cfx_prompt_sandy_mapdata/stream/cs2_06b_13.ybn
Normal file
BIN
resources/[tools]/cfx_prompt_sandy_mapdata/stream/cs2_06b_13.ybn
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
resources/[tools]/cfx_prompt_sandy_mapdata/stream/cs4_03_7.ybn
Normal file
BIN
resources/[tools]/cfx_prompt_sandy_mapdata/stream/cs4_03_7.ybn
Normal file
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.
BIN
resources/[tools]/cfx_prompt_sandy_mapdata/stream/cs4_05_0.ybn
Normal file
BIN
resources/[tools]/cfx_prompt_sandy_mapdata/stream/cs4_05_0.ybn
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
resources/[tools]/cfx_prompt_sandy_mapdata/stream/cs4_07_0.ybn
Normal file
BIN
resources/[tools]/cfx_prompt_sandy_mapdata/stream/cs4_07_0.ybn
Normal file
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.
BIN
resources/[tools]/cfx_prompt_sandy_mapdata/stream/cs4_08_0.ybn
Normal file
BIN
resources/[tools]/cfx_prompt_sandy_mapdata/stream/cs4_08_0.ybn
Normal file
Binary file not shown.
BIN
resources/[tools]/cfx_prompt_sandy_mapdata/stream/cs4_08_1.ybn
Normal file
BIN
resources/[tools]/cfx_prompt_sandy_mapdata/stream/cs4_08_1.ybn
Normal file
Binary file not shown.
BIN
resources/[tools]/cfx_prompt_sandy_mapdata/stream/cs4_08_2.ybn
Normal file
BIN
resources/[tools]/cfx_prompt_sandy_mapdata/stream/cs4_08_2.ybn
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
resources/[tools]/cfx_prompt_sandy_mapdata/stream/cs4_09_2.ybn
Normal file
BIN
resources/[tools]/cfx_prompt_sandy_mapdata/stream/cs4_09_2.ybn
Normal file
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.
BIN
resources/[tools]/cfx_prompt_sandy_mapdata/stream/cs4_10_247.ydr
Normal file
BIN
resources/[tools]/cfx_prompt_sandy_mapdata/stream/cs4_10_247.ydr
Normal file
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.
BIN
resources/[tools]/cfx_prompt_sandy_mapdata/stream/cs4_12_10.ybn
Normal file
BIN
resources/[tools]/cfx_prompt_sandy_mapdata/stream/cs4_12_10.ybn
Normal file
Binary file not shown.
BIN
resources/[tools]/cfx_prompt_sandy_mapdata/stream/cs4_12_9.ybn
Normal file
BIN
resources/[tools]/cfx_prompt_sandy_mapdata/stream/cs4_12_9.ybn
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
resources/[tools]/cfx_prompt_sandy_mapdata/stream/cs4_14_3.ybn
Normal file
BIN
resources/[tools]/cfx_prompt_sandy_mapdata/stream/cs4_14_3.ybn
Normal file
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