Skip to content

Latest commit

 

History

History
58 lines (39 loc) · 1.67 KB

README.md

File metadata and controls

58 lines (39 loc) · 1.67 KB

rebar-adminpanel

Important

Please read all installation steps to prevent unwanted behaviour

ko-fi

Installation

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

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

cd path/to/your/rebar-altv/
git clone https://github.com/programmernb-ctrl/rebar-adminpanel.git src/plugins/rebar-adminpanel
  1. If your character doesn't already have the admin group, you'll need to customize the config in ./shared/config.ts
export const adminpanelConfig = {
    adminMode: true, // true to see webview even if you don't got the admin group. mostly required to setup the plugin
};
  1. Start the server once by using one of the below commands. The plugin will load automatically.
pnpm start
pnpm dev
  1. Execute the Give Admin function.
  2. After you've executed the Give Admin function in the webview make sure you set adminMode: false, in the config ./shared/config.ts
export const adminpanelConfig = {
    adminMode: false, // this needs to be set so member who dont got the admin group simply cant see the adminpanel.
}
  1. 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.
cd path/to/your/rebar-altv/src/plugins/rebar-adminpanel
git pull
  • If you forked this repo and want to update it, simply search for merge from upstream on Google

Dependencies