Skip to content

error fs.write #32

Description

@kielerboy

Hello, I have a question. When I try to take pictures, I get this error message. Has anyone else encountered this error and managed to fix it? If so, I would be grateful for any help.

[c-scripting-node] Filesystem write permission check from 'screencapture' for permission fs.write on resource 'D:\gta\server_fx\qb\resources\fivem-greenscreener\images\clothing\male_1_8.png' - write not allowed
[script:screencapture] Error: Error saving file to disk: Error: Access to this API has been restricted. Use --allow-fs-write to manage permissions.
[script:screencapture]     at Object.openSync (node:fs:560:18)
[script:screencapture]     at writeFileSync (node:fs:2451:35)
[script:screencapture]     at saveFileToDisk (@screencapture/game/dist/server.js:31906:33)
[script:screencapture]     at @screencapture/game/dist/server.js:31779:30
[script:screencapture]     at processTicksAndRejections (node:internal/process/task_queues:105:5)
[script:screencapture]     at process.runNextTicks [as _tickCallback] (node:internal/process/task_queues:69:3)
[script:screencapture]     at @screencapture/citizen:/scripting/v8/timer.js:263:3

I've already tried using the start command --allow-fs-write but unfortunately that didn't work either.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions