Hay Just wanted to make a quick tutorial on how to combine scripts
cl= client
sv=serverr
You grab the files and separate the server and client files and rename them, cl_name.lua/sv_name.lua
make a folder called server and one called client put the client ones in the client and the server in the server then you want to make a fxmanifest.lua and put the code below in it
and how about script that have locales inside ?
and somescript that have ‘@es_extended/locale.lua’ and ‘@mysql-async/lib/MySQL.lua’ . how to implant ? sorry sir cause i newbie
I have attempted this before and got them all running as one resource however the resource started running very high in ms like at least 1.X ms in console
I do not suggest doing this, as it will get so messy you will find it incredibly hard to work anymore in any of the combined scripts
It is easier to have resources separated into different folders and just include shared resources using @resource/clien.lua or @resource/server.lua in the fxmanifest.lua file, without having “dependencies” between them.