> For the complete documentation index, see [llms.txt](https://nurrage-lib.gitbook.io/nurrage-lib-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://nurrage-lib.gitbook.io/nurrage-lib-docs/documentation/readme.md).

# Installation NurRage

NurJS (Nurrage) makes RAGE:MP server development lightning fast ⚡.\
You can install and initialize it in just a few seconds.

**🔹 Step 1 — Install the library**

Run this command inside your RAGE:MP server folder:

```bash
// bash
npm install nurrage
```

This will automatically download and install all dependencies.\
\
**🔹 Step 2 — Initialize NurJS**\
\
After installation, initialize the library once.\
You can do this in your main server file (for example: `index.js` or `app.js`):

```javascript
// server/index.js
const N = require("nurrage");

N.command({
  cmd: "testveh",
  description: "test code vehicle",
  adminOnly: false,
  createVehicle: { model: "sultan", color1: 0, color2: 0 },
  notify: "Your car is ready!",
});

console.log("✅ NurJS successfully initialized!");

```

NurJS automatically:

* initializes all internal modules (`commands`, `binds`, `cooldowns`, etc.),
* creates a `/logs` folder for your future log files,
* prepares the environment for vehicle/object spawning, notifications, and admin checks,
* and confirms initialization in the console (`✅ NurJS successfully initialized!`).

**🔹 Step 3 — Start Coding Immediately**

Now you can start writing commands and logic anywhere in your server code.\
For example:

```javascript
N.command({
  cmd: "ping",
  description: "Simple ping command",
  action: (player) => {
    player.notify("PONG 🏓");
  }
});
```

That’s it — your first command is live!\
\
**🔹 Step 4 — Auto Setup (optional)**

If you want to **auto-initialize** NurJS without manual code,\
you can run this shortcut once:

```bash
// bash
npx nurrage init
```

Then in your main file, just require it:

```javascript
require("nurrage");
```

and start coding immediately — everything will be ready.

| Action              | Command                                    |
| ------------------- | ------------------------------------------ |
| Install             | `npm install nurrage`                      |
| Initialize manually | `require("nurrage")`                       |
| Auto setup          | `npx nurrage init`                         |
| Ready to code       | Use `N.command`, `N.bind`, `N.mysql`, etc. |

**⚡Next Step:**

Explore real use cases and learn how to create more complex commands.

👉 **Basic Commands →**


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://nurrage-lib.gitbook.io/nurrage-lib-docs/documentation/readme.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
