From 657e69ef804d8f010c540db6f8fcb99e0597e083 Mon Sep 17 00:00:00 2001 From: KingMcDonalds Date: Mon, 29 Dec 2025 00:44:33 -0800 Subject: [PATCH] fixing map dealership and sandyltdpizza --- resources/vertex-hub/client.js | 10 +++++++ resources/vertex-hub/fxmanifest.lua | 17 ++++++++++++ resources/vertex-hub/server.js | 27 +++++++++++++++++++ .../vertex-hub/stream/cs4_03_grass_0.ymap | 3 +++ resources/vertex-hub/stream/cs4_occl_01.ymap | 3 +++ .../stream/cs4_rd_props_xwire13.ydr | 3 +++ .../stream/cs4_rd_props_xwire28.ydr | 3 +++ .../stream/cs4_rd_props_xwire61.ydr | 3 +++ .../stream/cs4_rd_props_xwire96.ydr | 3 +++ resources/vertex-hub/stream/lr_cs4_03.ymap | 3 +++ .../stream/lr_cs4_03_critical_1.ymap | 3 +++ .../vertex-hub/stream/lr_cs4_03_long_2.ymap | 3 +++ .../vertex-hub/stream/lr_cs4_03_strm_3.ymap | 3 +++ .../vertex-hub/stream/lr_cs4_03_strm_4.ymap | 3 +++ server.cfg | 6 ++--- 15 files changed, 90 insertions(+), 3 deletions(-) create mode 100644 resources/vertex-hub/client.js create mode 100644 resources/vertex-hub/fxmanifest.lua create mode 100644 resources/vertex-hub/server.js create mode 100644 resources/vertex-hub/stream/cs4_03_grass_0.ymap create mode 100644 resources/vertex-hub/stream/cs4_occl_01.ymap create mode 100644 resources/vertex-hub/stream/cs4_rd_props_xwire13.ydr create mode 100644 resources/vertex-hub/stream/cs4_rd_props_xwire28.ydr create mode 100644 resources/vertex-hub/stream/cs4_rd_props_xwire61.ydr create mode 100644 resources/vertex-hub/stream/cs4_rd_props_xwire96.ydr create mode 100644 resources/vertex-hub/stream/lr_cs4_03.ymap create mode 100644 resources/vertex-hub/stream/lr_cs4_03_critical_1.ymap create mode 100644 resources/vertex-hub/stream/lr_cs4_03_long_2.ymap create mode 100644 resources/vertex-hub/stream/lr_cs4_03_strm_3.ymap create mode 100644 resources/vertex-hub/stream/lr_cs4_03_strm_4.ymap diff --git a/resources/vertex-hub/client.js b/resources/vertex-hub/client.js new file mode 100644 index 000000000..56ff80bc6 --- /dev/null +++ b/resources/vertex-hub/client.js @@ -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); + } +}); \ No newline at end of file diff --git a/resources/vertex-hub/fxmanifest.lua b/resources/vertex-hub/fxmanifest.lua new file mode 100644 index 000000000..1a7f6dbb2 --- /dev/null +++ b/resources/vertex-hub/fxmanifest.lua @@ -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' +} \ No newline at end of file diff --git a/resources/vertex-hub/server.js b/resources/vertex-hub/server.js new file mode 100644 index 000000000..2fdaefb26 --- /dev/null +++ b/resources/vertex-hub/server.js @@ -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); +}); \ No newline at end of file diff --git a/resources/vertex-hub/stream/cs4_03_grass_0.ymap b/resources/vertex-hub/stream/cs4_03_grass_0.ymap new file mode 100644 index 000000000..17512ebe5 --- /dev/null +++ b/resources/vertex-hub/stream/cs4_03_grass_0.ymap @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2c2a1ae24878a8b3322026844b1b5746fd73b2c23dad709d622c1425b40d39f1 +size 582131 diff --git a/resources/vertex-hub/stream/cs4_occl_01.ymap b/resources/vertex-hub/stream/cs4_occl_01.ymap new file mode 100644 index 000000000..17171ad4e --- /dev/null +++ b/resources/vertex-hub/stream/cs4_occl_01.ymap @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:807cbb27b6ebf4d26a92e2102fbc1af943db97e84cd1879d427d85afc74775d2 +size 16479 diff --git a/resources/vertex-hub/stream/cs4_rd_props_xwire13.ydr b/resources/vertex-hub/stream/cs4_rd_props_xwire13.ydr new file mode 100644 index 000000000..5a2b58c28 --- /dev/null +++ b/resources/vertex-hub/stream/cs4_rd_props_xwire13.ydr @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4868bb14b07fe3a2d319c52b00b59b1007f161e12ee7e864bdfbfa889e4f374b +size 3774 diff --git a/resources/vertex-hub/stream/cs4_rd_props_xwire28.ydr b/resources/vertex-hub/stream/cs4_rd_props_xwire28.ydr new file mode 100644 index 000000000..71333f1a2 --- /dev/null +++ b/resources/vertex-hub/stream/cs4_rd_props_xwire28.ydr @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:38057be7560d62513bd7fed648ba5e8f004b20cb16b799a50625d0477edd8f0a +size 6727 diff --git a/resources/vertex-hub/stream/cs4_rd_props_xwire61.ydr b/resources/vertex-hub/stream/cs4_rd_props_xwire61.ydr new file mode 100644 index 000000000..8dd89b76d --- /dev/null +++ b/resources/vertex-hub/stream/cs4_rd_props_xwire61.ydr @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:44b05024f3d732614d0f0622c1c68a4929069cdad24567add201a18a6f8ff9af +size 8278 diff --git a/resources/vertex-hub/stream/cs4_rd_props_xwire96.ydr b/resources/vertex-hub/stream/cs4_rd_props_xwire96.ydr new file mode 100644 index 000000000..86f8ac8c3 --- /dev/null +++ b/resources/vertex-hub/stream/cs4_rd_props_xwire96.ydr @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2c0b14756807dc09296e6fa18bc2e975d02bd0f42895e8bc47c92f11970a32c8 +size 2341 diff --git a/resources/vertex-hub/stream/lr_cs4_03.ymap b/resources/vertex-hub/stream/lr_cs4_03.ymap new file mode 100644 index 000000000..3da076ef8 --- /dev/null +++ b/resources/vertex-hub/stream/lr_cs4_03.ymap @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:88bb533591d0d6f352081ba1c4008c4e6d96ebcd24346dc0a38a913712f01b09 +size 14760 diff --git a/resources/vertex-hub/stream/lr_cs4_03_critical_1.ymap b/resources/vertex-hub/stream/lr_cs4_03_critical_1.ymap new file mode 100644 index 000000000..576c655fe --- /dev/null +++ b/resources/vertex-hub/stream/lr_cs4_03_critical_1.ymap @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:72d99548018bf9b57cf626955e22bccfc94890c4a6f8dde35ba1047f8aff85af +size 20538 diff --git a/resources/vertex-hub/stream/lr_cs4_03_long_2.ymap b/resources/vertex-hub/stream/lr_cs4_03_long_2.ymap new file mode 100644 index 000000000..31acefc7f --- /dev/null +++ b/resources/vertex-hub/stream/lr_cs4_03_long_2.ymap @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1e57e4183de6ae726a1f8f106622eac8ed85da08b9ad984afd43bd33c1269adf +size 13996 diff --git a/resources/vertex-hub/stream/lr_cs4_03_strm_3.ymap b/resources/vertex-hub/stream/lr_cs4_03_strm_3.ymap new file mode 100644 index 000000000..1e2238bff --- /dev/null +++ b/resources/vertex-hub/stream/lr_cs4_03_strm_3.ymap @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b0e591daa43a48cc24f6e21d281353578b9f8ee0c6db79e63ddcdf8c2d3d98bf +size 18242 diff --git a/resources/vertex-hub/stream/lr_cs4_03_strm_4.ymap b/resources/vertex-hub/stream/lr_cs4_03_strm_4.ymap new file mode 100644 index 000000000..6aad875f2 --- /dev/null +++ b/resources/vertex-hub/stream/lr_cs4_03_strm_4.ymap @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2aee3c4ffca93736ce01c738f0ae0f2848f11d07317d3cb0035212900eedcb8e +size 14021 diff --git a/server.cfg b/server.cfg index 17ab01e2d..a77b4a356 100644 --- a/server.cfg +++ b/server.cfg @@ -659,9 +659,9 @@ ensure Lost-MC ensure ed_white_mansion ensure jd-dot1 ensure int_mphouse01 -ensure RealCalifornIArchitecture - - +ensure RealCalifornIArchitectureensure +ensure vertex-hub +ensure 25sandydealership_rsm ensure jd-weighstation ensure jd-weighstation02