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,
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:
my_resource
)my_resource
, create a new file: fxmanifest.lua
sub_resource
)sub_resource
, create/move your client and server scriptsmy_resource
and edit fxmanifest.lua
to the following:client_scripts {
'sub_resource/client.lua',
}
server_scripts {
'sub_resource/server.lua',
}
my_resource
to your server’s resources file and voila!Hope this helps
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!)
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.