altv-issues
altv-issues copied to clipboard
--justpack tries to pack serverside only ressource / skips them, but keeps dependency
Description of the problem
When packing the resources with --justpack option, the program will try to pack resources that have no client-main or client-files, without finishing them (log-wise). Additionally, if this resource, that is serverside only, is a dependency for another resource, connecting players will not have the main-resource started, because the dependency is not downloaded (missing) on the cdn.
Therefore it is not contained in the cdn_upload directory.
Reproduction steps
- Create a ressource with a main file
- Add ressource to
server.cfg - run altv-server with
--justpack
server_only_empty_ressource.zip
Expected behaviour
--justpack will not pack any ressource (or even try), where no client-files and client-main is provided in the resource.cfg.
Additional context
Maybe this is just a huge edge case, i resolved this issue by simply adding an empty 'index.js' and marking it as client (adding to resource.cfg:
client-main: index.js,
client-files: []
Operating system
Debian 11, Windows 10
Version
10.5-release