JaredScar / Badger-Anticheat

Badger's Official Anticheat [code inspirations from DevLanceGood and Bluethefurry on GitHub]
MIT License
44 stars 29 forks source link

FiveM crashing #19

Closed yoshi-stunts closed 3 years ago

yoshi-stunts commented 3 years ago

Hey, so I installed the Anticheat, I tested No-clipping and spectating without setting up ace perms and got banned for both, which is a good thing, means it's working as intended. However, when I did set up ace perms, my FiveM crashes within 5 seconds of loading in. If I take away admin perms from myself, I have no issues (aside from the anticheat doing its job when I no-clip or spectate) or if I remove the ace perm for the anticheat, I also then have no issues.
fivem not responding ace perm in server cfg

LukeM03 commented 3 years ago

same issue

JaredScar commented 3 years ago

So if you don't have the bypass permission, you don't crash?

justmaiklas commented 3 years ago

Created pull request

yoshi-stunts commented 3 years ago

So if you don't have the bypass permission, you don't crash?

Correct, if I don't give myself the bypass permission, I don't crash... but obviously can't spectate or no clip without getting banned. But changing the client.lua to what @justmaiklas said fixed it.

JaredScar commented 3 years ago

This was fixed with latest pull request. Thanks @justmaiklas

yoshi-stunts commented 3 years ago

How would one take away the server side chat message whenever someone is banned or unbanned? Don't really want that to show up in chat for everyone especially when people are streaming.

justmaiklas commented 3 years ago

How would one take away the server side chat message whenever someone is banned or unbanned? Don't really want that to show up in chat for everyone especially when people are streaming.

Comment out this line: TriggerClientEvent('chatMessage', -1, '^3[^6Badger-Anticheat^3] ^0Player ^1' .. playerName .. ' ^0has been unbanned from the server by ^2CONSOLE'); And change where command is not exucuted by console: "-1" to source Example: From: TriggerClientEvent('chatMessage', -1...... To: TriggerClientEvent('chatMessage', src......

yoshi-stunts commented 3 years ago

@justmaiklas THANK YOU!!

justmaiklas commented 3 years ago

Do the same for ban command