[Release] New Advanced BanSystem(Token Ban + KVP Method)

Hello :wave:

Version 2.6 Is Out! But for now I removed Multiple Accounts Detection Duo To Many Problems.

What does this script do?

  • [Disabled] Anti Multiple Accounts : players information such as(steam hex, license, tokens) will be saved in database after first login. so they cant connect to server with a diffrent steam hex or license(new account).

  • Anti Unban: if you ban a player, the player can not connect to server or unban himself(Even if Steam, license, discordid, ip,… has changed) :}

Dependencies:

  • ESX
  • mysql-async

How to use:

  1. Execute the sql file in your server database.
  2. Then put start HR_BanSystem in server.cfg. (after es_extended or mysql script)

Note: Make Sure To Put Your Steam Hex In [server/main.lua - Admins] to use commands.

Capture.PNG1
Capture
1

How Is This Possible? Are You Using HWID?
Not exactly HWID but im using a new native called GetPlayerToken() :
{Gets a player’s token. Tokens can be used to enhance banning logic, however are specific to a server.}
player tokens will not change if they change their information such as(discord id, ip, steamhex, license…)

Script Commands

/banreload  reloads ban list
/ban [ServerID /SteamHex] [Ban Duration] [Reason]
/unban [SteamHex]
[Example] : /ban 32 30 Cheating
or
[Example] : /ban steam:1111943hfb 30 Cheating

[Server Export]
exports.HR_BanSystem:BanThis(ID, Day, Reason)

Will I make any changes in the future?
probably yes

  • Compatibility Without ESX
  • Using json file instead of SQL

Download

27 Likes

Nice release, I’ll try it this day and make a feedback :slight_smile:

2 Likes

عالی پسر :blue_heart: :blue_heart: :blue_heart: :blue_heart: :blue_heart: :blue_heart: :blue_heart: :blue_heart: :blue_heart: :blue_heart: :blue_heart: :blue_heart: :blue_heart: :blue_heart: :blue_heart: :blue_heart: :blue_heart: :blue_heart: :blue_heart: :blue_heart: :blue_heart: :blue_heart: :blue_heart: :blue_heart: :blue_heart: :blue_heart: :blue_heart: :blue_heart: :blue_heart: :blue_heart: :blue_heart: :blue_heart: :blue_heart: :blue_heart: :blue_heart: :blue_heart: :blue_heart: :blue_heart: :blue_heart: :blue_heart: :blue_heart: :blue_heart: :blue_heart: :blue_heart: :blue_heart: :blue_heart: :blue_heart: :blue_heart: :blue_heart: :blue_heart:

2 Likes

thnx :smile:

nice :ok_hand:

1 Like

finally someone who used token method to make a public ban system

2 Likes

:+1: :+1: :+1:

any way to make this work without esx?

1 Like

This is so helpful for our server thanks so much we wont have any hackers at all after one week !!

1 Like

probably yes

Amazing!! :thinking:

could you maybe try and make it so it works without esx please?

2 Likes

Some peoples on my server said that they couldn’t connect even with one account. Is it possible that your system have a rare bug (about one guy out of 100) or is he just trying something with me ?

1 Like

maybe in the next update

I think they are lying, Because player tokens are unique and will not change, so Identifying these people will be more accurate.

Thanks for your answer

1 Like

Okay thank you very much :slight_smile:

1 Like

trying to give admin in server cfg it just says ur not an admin can u help
i added it like
‘license:xyz’,

1 Like

my server uses esx1.2 and doesnt use steam can u help

1 Like

you have to put your steamhex in (server/main.lua - Admins) to use script commands.