> ## Documentation Index
> Fetch the complete documentation index at: https://help.freakhosting.com/llms.txt
> Use this file to discover all available pages before exploring further.

# How to Add Admins on a RAGE:MP Server

> RAGE:MP has no built-in admin system. Learn how to script an admin list by Social Club name, add kick and ban commands, and give panel access with sub-users.

RAGE:MP has no built-in admin system, admin file or admin command. Admins are part of your gamemode: a server script keeps a list of trusted players, for example by Social Club name (`player.socialClub`) or Rockstar ID (`player.rgscId`), and checks it before running commands such as kick (`player.kick`) or ban (`player.ban`). Many downloaded gamemodes include their own admin system; check their readme first.

| Fact | Value |
| - | - |
| Built-in admins | None |
| Identify a player | `player.socialClub`, `player.rgscId`, `player.serial`, `player.ip` |
| Moderation functions | `player.kick`, `player.kickSilent`, `player.ban` |
| Where | A server script in `packages/<gamemode>/` |
| Panel access for staff | **Users** (sub-users) |

## How to add a simple admin list

**1. Create the script**

Click **Files**, open `packages/<gamemode>/` and create `admin.js` with **New file**.

**2. Add your admins**

Paste the code below and put your Social Club names in the `admins` list.

**3. Load it**

Add `require('./admin.js');` to the gamemode's `index.js`.

**4. Save and restart**

Click **Save Content** and restart the server. Test with `/kick <name>` in game.

```javascript theme={null}
// packages/mygamemode/admin.js
const admins = ['YourSocialClubName', 'FriendSocialClubName'];

function isAdmin(player) {
    return admins.includes(player.socialClub);
}

function findPlayer(name) {
    return mp.players.toArray().find((p) => p.name.toLowerCase() === String(name).toLowerCase());
}

mp.events.addCommand('kick', (player, fullText, targetName) => {
    if (!isAdmin(player)) return player.outputChatBox('You are not an admin.');
    const target = findPlayer(targetName);
    if (!target) return player.outputChatBox('Player not found.');
    target.kick('Kicked by an admin');
});
```

Commands receive the player who typed them, the full text, then each word as a separate argument.

## Which ID should I use?

| Property | What it is | Notes |
| - | - | - |
| `player.socialClub` | Social Club name | Easy to read and add. |
| `player.rgscId` | Rockstar Games Social Club ID | A number tied to the account. |
| `player.serial` | The player's client serial | Useful for bans. |
| `player.ip` | IP address | Can change; avoid for admin lists. |
| `player.name` | In-game name | Players choose it; never use it for admin checks. |

## Admin rights in the Game Panel

In-game admins and panel access are separate. To let staff restart the server or read the console without your login, add them on **Users** in the panel; see [sub-users](https://help.freakhosting.com/portals/game-panel/how-to-manage-sub-users.md).

## Frequently asked questions

### Is there an admins file like in other games?

No. Nothing in `conf.json` or the server folder sets admins. Everything is done in scripts.

### How do I save bans?

To keep your own ban list that you control and that survives restarts, store the player's `rgscId` or `serial` in a file or database and check it in the `playerJoin` event.

### Can I add an admin menu?

Yes, build it with CEF and only open it for players your admin check accepts. See [CEF user interfaces](https://help.freakhosting.com/games/rage-multiplayer/using-cef-for-ui.md).

### Where do I find my Social Club name?

It is the name of your Rockstar Games Social Club account, the one the launcher uses. You can also print `player.socialClub` to the console from a script.

## Related guides

> [card] [RAGE:MP server guide](https://help.freakhosting.com/games/rage-multiplayer/rage-multiplayer-server-hosting-guide.md)
>
> Every RAGE:MP page in one place.

> [card] [Client-side vs server-side](https://help.freakhosting.com/games/rage-multiplayer/client-side-vs-server-side-scripts.md)
>
> Keep admin checks on the server.

> [card] [Weather and time](https://help.freakhosting.com/games/rage-multiplayer/syncing-weather-and-time.md)
>
> Commands to protect.

> [card] [Sub-users](https://help.freakhosting.com/portals/game-panel/how-to-manage-sub-users.md)
>
> Panel access for staff.

> [card] [Databases](https://help.freakhosting.com/portals/game-panel/how-to-manage-databases.md)
>
> Store bans and accounts.

***

> [!NOTE]
>
> **Checked against the official RAGE Multiplayer wiki** ([server-side functions](https://wiki.rage.mp/wiki/Server-side_functions), [Getting Started with Development](https://wiki.rage.mp/wiki/Getting_Started_with_Development)) and our Game Panel on 2 November 2026. Details may change if RAGE Multiplayer changes.

> [!NOTE]
>
> ### Need Extra Help?
>
> If you encounter any issues, our support team is ready to assist:
>
> * **Live Chat:** Quick assistance via our website.
> * **Support Ticket:** [Open a Ticket](https://freakhosting.com/clientarea/submitticket.php)
> * **Discord:** [Join our Community](https://discord.gg/freakhosting)
> * **Email:** [support@freakhosting.com](mailto:support@freakhosting.com)

> [!TIP]
>
> ### Save on Your Hosting
>
> Ready to upgrade your hosting? Use code **KB20** at checkout for **20% off** your first order!

***

**Last Updated:** November 2026


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.