Call a file from another resource

Hi,

Add another file from another resource.

Currently, we can do :

server_scripts {
	'@another-resource/file.server.lua',
}

But not :

client_scripts{
	'@another-resource/file.client.lua',
}

You can do that.

1 Like

Indeed, we must add in the __resource.lua (on another-resource). Otherwise it does not work.

Both things that you sent should work perfectly.

Which is 100% intended. You don’t have to use client_script in another-resource, you can also use file.

1 Like

What is the difference between file(s) and client_script(s) ?