Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/programmernb-ctrl/rebar-adminpanel

rebar-adminpanel for the Rebar Framework
https://github.com/programmernb-ctrl/rebar-adminpanel

altv altv-resource altv-server altvmp

Last synced: about 2 months ago
JSON representation

rebar-adminpanel for the Rebar Framework

Awesome Lists containing this project

README

        

# rebar-adminpanel

> [!IMPORTANT]
> Please read all installation steps to prevent unwanted behaviour

[![ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/S6S3171498)

## Installation

1. Go to your Rebar `main` server's directory.

2. Now clone this repository in to your Rebar `main` directory using git commands.

```bash
cd path/to/your/rebar-altv/
git clone https://github.com/programmernb-ctrl/rebar-adminpanel.git src/plugins/rebar-adminpanel
```

3. If your character doesn't already have the admin group, you'll need to customize the config in `./shared/config.ts`

```typescript
export const adminpanelConfig = {
adminMode: true, // true to see webview even if you don't got the admin group. mostly required to setup the plugin
};
```

4. Start the server once by using one of the below commands. The plugin will load __automatically.__

```
pnpm start
pnpm dev
```

5. Execute the `Give Admin` function.
6. After you've executed the __Give Admin__ function in the __webview__ make sure you set `adminMode: false,` in the config `./shared/config.ts`

```typescript
export const adminpanelConfig = {
adminMode: false, // this needs to be set so member who dont got the admin group simply cant see the adminpanel.
}
```

7. Simply stop and start the server again to be sure __adminMode__ is set to __false__

## Update

- If you cloned this repo and wanna update it, you can simply do it like this.

```bash
cd path/to/your/rebar-altv/src/plugins/rebar-adminpanel
git pull
```

- If you forked this repo and wanna update it, simply search for `merge from upstream` on [Google](https://www.google.com)

## Dependencies

- [Rebar Framework](https://github.com/stuyk/rebar-altv)