Important
Please read all installation steps to prevent unwanted behaviour
-
Go to your Rebar
mainserver's directory. -
Now clone this repository in to your Rebar
maindirectory using git commands.
cd path/to/your/rebar-altv/
git clone https://github.com/programmernb-ctrl/rebar-adminpanel.git src/plugins/rebar-adminpanel- 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
};- Start the server once by using one of the below commands. The plugin will load automatically.
pnpm start
pnpm dev
- Execute the
Give Adminfunction. - 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.
}- Simply stop and start the server again to be sure adminMode is set to false
- 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 upstreamon Google