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:
| Folder | Description |
|---|---|
packages/ | Server-side scripts (logic, database, authentication) |
client_packages/ | Client-side scripts (UI, rendering, inputs) |
Add scripts
Stop the server
Stop your server via the dashboard.Connect via SFTP
Connect to your server via SFTP.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- Server-side scripts go into the
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/.