Its because yarn is not working on Linux, check this Webpack on Linux Server - #6 by CruelAlpha

If you have a windows machine you can take a workaround following this steps:

  • Create a fivem server on windows and add this resource to it.
  • Add “start yarn” and “start screenshot-basic” to your server.cfg.
  • Start the server and let it build the resource webpack.
  • Open the “__resource.lua” of screenshot-basic and remove the following lines:
> dependency 'yarn'
> dependency 'webpack'
> webpack_config 'client.config.js'
> webpack_config 'server.config.js'
> webpack_config 'ui.config.js'
  • Delete the following files and folders (not needed because the resource is builded now)

node_modules
src
ui
client.config.js
server.config.js
ui.config.js
yarn.lock
dist\ui.js

  • Move the screenshot-basic resource folder to your Linux server and it’s ready to go :wink:

Sorry for my bad english, hope this helps you :slight_smile:

4 Likes