[How-to] Have multiple scripts in one resource

yep, im just merging standalone scripts and cars

nice inventory

you just need to do this for the different files name

fx_version ‘cerulean’
game { ‘gta5’ }

client_scripts {
‘/**/*.lua’
}

server_scripts {
‘/**/*.lua’
}

What about

shared_scripts {
    '@map/import.lua',
}

ui_page > since a few maps use it.

files {
}

See my thing is, I’m using QB Framework and there are enough people that already know that framework, so my toughts where to hide it from the resources in that way they can’t peak whats scripts are loading.

I did the same with Maps ‘MLO’s’

No. Similar to the way it was done above for scripts, you can just do the same with the /**/ and then vehicles.meta and so on, then have a folder for each car‘s metas. You could also do the same for the stream folder, you can create subfolders within the stream folder and it‘ll all be streamed

how to merge scripts that have web (folder) and other stuff like config?

3 Likes

You can even do something like this to import any .lua file from a folder :

server_scripts {
    'smain.lua',
    'server/*.lua'
} 

client_scripts {
    'cmain.lua',
    'client/*.lua',
}

:melting_face:

1 Like

how to merge scripts if they have multiple html files and have in each script a ui_page “web/ui.html”

How to combine a script with resource.lua

push…

How Do You Get DLL Files To Work?

Like This?

-- Ocean Side Role Play | Main Scripts 

fx_version 'cerulean'
game { 'gta5' }

client_scripts {
    '/**/client.lua'
}

server_scripts {
    '/**/server.lua'
}
client_scripts {
    '/**/density.dll'
}

server_scripts {
    '/**/common.dll'
}

server_config {
    '/**/config.lua'
}