Skip to content

How to Add Scripts to Your RAGE:MP Server

You can install server-side and client-side scripts on your RAGE:MP server.

Folder structure

RAGE:MP uses two folders for scripts:

FolderDescription
packages/Server-side scripts (logic, database, authentication)
client_packages/Client-side scripts (UI, rendering, inputs)

Add scripts

  1. Stop the server
    Stop your server via the dashboard.

  2. Connect via SFTP
    Connect to your server via SFTP.

  3. Upload scripts
    Upload the scripts to the appropriate folder:

    • Server-side scripts go into the packages/ folder
    • Client-side scripts go into the client_packages/ folder

    Example

    /
    ├── packages/
    │   └── my-gamemode/
    │       └── index.js
    └── client_packages/
        └── index.js
    /
    ├── packages/
    │   └── my-gamemode/
    │       └── index.js
    └── client_packages/
        └── index.js
  4. Start the server
    Start your server.

Note

Server-side scripts are placed in their own subfolder within packages/. Each subfolder needs an index.js file as entry point.

Warning

Client-side scripts are automatically downloaded by all players joining the server. Make sure not to store any sensitive data in client_packages/.