Coder Social home page Coder Social logo

el_bwh's Introduction

el_bwh

FiveM Ban/Warning/Help-Assist System for ESX

Installation

  1. Download the resource
  2. Rename it to el_bwh and put it in your resources folder
  3. Import sql.sql into your database
  4. Edit the config to your liking
  5. Add start el_bwh to your server.cfg Make sure to add this after mysql-async and es_extended
  6. Start it and you're good to go

Documentation

There's a few commands this adds:

  • /bwh <- root admin command, this will display all sub-commands
  • /bwh ban <- opens the ban menu
  • /bwh warn <- opens the warn menu
  • /bwh banlist <- opens the ban list
  • /bwh warnlist <- opens the warning list
  • /bwh refresh <- pulls all bans from the database and refreshes the ban cache
  • /accassist <player id> <- admin command, admins can accept help requests from players
  • /finassist <- admin command, this closes the current help request and teleports you back to your original position
  • /decassist <- admin command, this just hides the current assist popup on the screen
  • /assist <- player command, players can request help with this
  • /cassist <- player command, this cancels the players ongoing assist request

Important notes

This bans all players identifiers, that means their ip,license,steam,discord,xbl ids will get banned
If you rename the folder to something else than el_bwh, it will break things.
To rename it successfully you'll have to do some additional stuff as well. I also recommend to have the name in lowercase because it does some weird things if there's some upper case letters in the folder name.
To do this, open html/script.js and replace every occurence of el_bwh with your new folder name, it should only be these lines

16 -> $.post("http://el_bwh/ban", JSON.stringify({ target: target, reason: reason, length: length }));
27 -> $.post("http://el_bwh/warn", JSON.stringify({ target: target, message: message, anon: anon }));
32 -> $.post("http://el_bwh/unban", JSON.stringify({ id: $(this).data("id") }));
42 -> $.post("http://el_bwh/hidecursor", JSON.stringify({}));

After you replace it, it should look like this

16 -> $.post("http://<YOUR FOLDER NAME>/ban", JSON.stringify({ target: target, reason: reason, length: length }));
27 -> $.post("http://<YOUR FOLDER NAME>/warn", JSON.stringify({ target: target, message: message, anon: anon }));
32 -> $.post("http://<YOUR FOLDER NAME>/unban", JSON.stringify({ id: $(this).data("id") }));
42 -> $.post("http://<YOUR FOLDER NAME>/hidecursor", JSON.stringify({}));

If you don't like the current design (i don't blame you, i'm really not a designer), you can edit the html/index.html and html/style.css files to change the design to your liking

If find any bugs, please join my discord server and report it in the #bug-reports channel
If you like my work, please check out my page, i'll probably release a few more things if i have the time and feel like it

el_bwh's People

Contributors

elipse458 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.