FiveM Ban/Warning/Help-Assist System for ESX
- Download the resource
- Rename it to
el_bwh
and put it in your resources folder - Import sql.sql into your database
- Edit the config to your liking
- Add
start el_bwh
to your server.cfg Make sure to add this after mysql-async and es_extended - Start it and you're good to go
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
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