Core ressources

Hello, I am looking for a tutorial so that I can create resource cores for my scripts.

Is it possible to do this with scripts including ui/html

Thank you,

That depends on what you mean by “resource cores”.

If you mean you want to create one resource that serves as a “core resource” for other resources, then yes - it is possible by all means.

Otherwise, please redefine and I might be able to help you further.

I would simply like to start in a single folder several resources to avoid having in example 200 resources but rather 80

In that case, just do this:

  1. Create a main “core” resource folder (for example: my_resource)
  2. Inside of my_resource, create a new file: fxmanifest.lua
  3. Create sub-folders for all the resources you wish to include in the core resource (for example: sub_resource)
  4. Inside sub_resource, create/move your client and server scripts
  5. Go back to my_resource and edit fxmanifest.lua to the following:
client_scripts {
      'sub_resource/client.lua',
}

server_scripts {
     'sub_resource/server.lua',
}
  1. Repeat the above for all your resources and just add my_resource to your server’s resources file and voila!

Hope this helps :slight_smile:

yes I know how to do but it always blocks with the config ^^

That’s over complicated.


Create a new directory, place the name in [] (square brackets), for example, [core], inside the directory place all the resources you want, you don’t need to change any manifest files. Then in your server.cfg, write ensure [core], or whatever you called the folder.

I don’t structure my game server’s resources in this way so unfortunately I don’t have much experience in ‘coupling’ resources.

Thank you for suggesting a better way of approaching the problem though, I’m sure it’ll help plenty of others (and I’ve also learnt something new today!) :slight_smile:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.