fixing map dealership and sandyltdpizza

This commit is contained in:
KingMcDonalds
2025-12-29 00:44:33 -08:00
parent a07ba28342
commit 657e69ef80
15 changed files with 90 additions and 3 deletions
+10
View File
@@ -0,0 +1,10 @@
const resourceName = GetCurrentResourceName();
emitNet('requestVertexHubResources/383cf555-4c25-4c64-a41e-bab94e0366fd');
onNet('registerVertexHubResources/383cf555-4c25-4c64-a41e-bab94e0366fd', (resourcesDto) => {
const resources = JSON.parse(resourcesDto);
for (const { fileName, cacheString } of resources) {
RegisterStreamingFileFromCache(resourceName, fileName, cacheString);
}
});
+17
View File
@@ -0,0 +1,17 @@
fx_version 'cerulean'
game 'gta5'
-- Compatibility by---:
author 'Vertex Hub - https://discord.gg/hxTYtxBS3x'
description 'Global Compatibility Files 383cf555-4c25-4c64-a41e-bab94e0366fd'
version '1.0.0'
this_is_a_map 'yes'
client_scripts {
'client.js'
}
server_scripts {
'server.js'
}
+27
View 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/383cf555-4c25-4c64-a41e-bab94e0366fd', () => {
const resourcesDto = JSON.stringify(resources);
emitNet('registerVertexHubResources/383cf555-4c25-4c64-a41e-bab94e0366fd', 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.
+3 -3
View File
@@ -659,9 +659,9 @@ ensure Lost-MC
ensure ed_white_mansion ensure ed_white_mansion
ensure jd-dot1 ensure jd-dot1
ensure int_mphouse01 ensure int_mphouse01
ensure RealCalifornIArchitecture ensure RealCalifornIArchitectureensure
ensure vertex-hub
ensure 25sandydealership_rsm
ensure jd-weighstation ensure jd-weighstation
ensure jd-weighstation02 ensure jd-weighstation02