Building Resource Structure

When you create a resource for alt:V you will want to put your resources inside of the resources folder. Which means each folder inside of resources is its own individual resource.

│   altv-server.exe
│   server.cfg
├───data/
├───modules/
└───resources/ # <-- Here

Before Proceeding Further

In the main directory where your altv-server.exe file is located you are going to want to initialize a new node project. Simply open up any command prompt, powershell, terminal, etc. and then run the following command.

If this is done correctly you will have a package.json available in the main directory where your altv-server.exe is located.

npm init -y

Modify package.json

Open package.json and add "type": "module" to the JSON structure in VSCode.

Your package.json file should look similar to:

{
    "name": "test",
    "version": "1.0.0",
    "description": "",
    "main": "index.js",
    "scripts": {
        "test": "echo \"Error: no test specified\" && exit 1"
    },
    "author": "",
    "license": "ISC",
    "type": "module"
}

Written by Stuyk & Alexa

results matching ""

    No results matching ""