Skip to content
This repository was archived by the owner on Sep 20, 2025. It is now read-only.
This repository was archived by the owner on Sep 20, 2025. It is now read-only.

Missing the resource.cfg file and script doesn't work #10

Description

@Kamil02167

After successfully building and copying the directory "lr" from "resources", I get this error when loading the server.

[12:22:10] Loading resource lr
ReferenceError: require is not defined
    at Object.782 (file:///opt/altv/resources/lr/server.js:1:10958)
    at n (file:///opt/altv/resources/lr/server.js:1:11166)
    at Object.573 (file:///opt/altv/resources/lr/server.js:1:4401)
    at n (file:///opt/altv/resources/lr/server.js:1:11166)
    at Object.198 (file:///opt/altv/resources/lr/server.js:1:4357)
    at n (file:///opt/altv/resources/lr/server.js:1:11166)
    at file:///opt/altv/resources/lr/server.js:1:11206
    at file:///opt/altv/resources/lr/server.js:1:11228
    at ModuleJob.run (internal/modules/esm/module_job.js:152:23)
    at async Loader.import (internal/modules/esm/loader.js:166:24)
[12:22:10][Error] Failed to load resource lr

Additionally, resource.cfg is not created.
obraz

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions