All ressources in one | I'm wondering how it works

DISCLAIMER:

Hello,

This is one of the many posts/messages I’d like to remove from my profile. I’d like to exercise my right to erase or anonymize my data shared on this forum, as granted by the Commission Nationale de l’Informatique et des Libertés (my country’s organization).

This will give me a better starting point for future posts.

King regards,

ORIGINAL POST

Hello !

I’m not really a developer. And I’m wondering.

I play on a server with almost all their custom scripts in a core. I know pretty much how it can work.
RezCr being the “core” containing all trades, all scripts, except those that have not been added in the core.

But is it possible to get ESX and any additional resources needed to “build a server” with 1 core and some resources. In order to optimize obviously the connection time and the stability of it.

I have already designed small cores for light and standalone scripts, without configuration or translation files, without html folders and so on.
I have already designed cores as shown here.
I’m really talking about a core as if it were the server file.

Can you enlighten me and explain me how it is possible and/or how it works.
Or guide me to a tutorial that explains it very well.

Please note that I am not English but French.

Thank you!

Used DeepL translator, because gTranslates isn’t accurate.

Hello! I would be happy to help you, but it depends on if you want to put all cars, all scripts
in the same resource or what you want to do, but if you wanna do it with scripts then you
could just create 1 resource, and start moving the .lua files there, but make sure your fx-manifest
is right, and I wouldnt recommend having “esx” in the same resource as all the other ones!

1 Like

I would generally advise against putting all your scripts into one “core”/resource. It doesn’t provide a noticeable performance boost and really just makes it harder to debug.

I honestly don’t know enough about how the number of scripts would affect the “connection time and the stability of it”, to give you a 100% accurate answer. But I don’t think it has such a large impact on the connection time that merging them all into one would be beneficial in the long term.

Merging multiple smaller resources together, however, can be beneficial (for a good amount of reasons). And like Attrixx mentioned above I wouldn’t recommend having ESX in the same resource as everything else.

2 Likes