All resources in one

Hi, i was just wondering if there was a way to gather every resource and place them in one folder and run that one specific folder/resource instead of running multiple ones.

Yea. Just put all the files into one folder, create a __resource.lua with said files and start it.

Literally just like any other resource. There is no hard limit on the amount of files that can be run in one resource (as far as I’m aware)

1 Like

Thank you :3 you were a great help!

can you give an example of that __resource.lua?

client_scripts {
   'script1.lua',
   'script2.lua',
   'script3.lua',
   'script4.lua',
   'script5.lua',
   'script6.lua',
   'script7.lua',
   'script8.lua',
   'script9.lua',
}

server_scripts {
   'script10.lua',
   'script11.lua',
   'script12.lua',
   'script13.lua',
   'script14.lua',
   'script15.lua',
   'amazingcsharp.net.dll'
}

???

but if I have more then one config.lua do I have to add that to the __resource.lua?

1 Like

Then just rename it to something else and inside the script that use that configuration file too :man_shrugging:

Simple stuff really.

Sorry but i don’t understand how things work because my native language is not English and i am not a fluent speaker of it. Is it just scripts that can be compiled or can i do it with cars, ymaps/maps? I don’t know lua so i can’t figure out how to put things to work, but for example how/what will i do to compile my all cars/maps into one pack and make it count as just 1 resource? I’ve been dealing with everything and can’t make my brain work to figure out things no more lol, helpers will be appreciated a lot. Peace.

client_scripts {
‘*.lua’,
}

server_scripts {
‘*.lua’,
‘amazingcsharp.net.dll’
}

Hello, there is this method which is much quicker and easier, it allows you to put the lua files in the folder simply and they are taken into account directly.

1 Like