Rewrite AC bypass (#2430)

* fix(anticheat): rewrite AC bypass again (the old one isn't detected but this is cleaner)
* fix(chat): some chat tweaks
* fix(anticheat): fix memory leak
* feat(lua): add is_player_friend
* fix(protections): fix possible false positives with the vehicle task mismatch protection
* feat(protections): add debug logs to trace false positive
* fix(spam): add some more stuff
This commit is contained in:
maybegreat48
2023-11-19 22:20:15 +00:00
committed by GitHub
parent 6ec0478414
commit a97af16888
17 changed files with 78 additions and 91 deletions

View File

@ -605,8 +605,8 @@ for table_name, table in tables.items():
file_name = f"./tables/{table_name}.md"
if os.path.exists(file_name):
os.remove(file_name)
f = open(file_name, "a")
f.write(str(table))
f = open(file_name, "ba")
f.write(bytes(str(table), "UTF8"))
f.close()
tabs_file_name = f"./tabs.md"
@ -675,8 +675,8 @@ for class_name, class_ in classes.items():
file_name = f"./classes/{class_name}.md"
if os.path.exists(file_name):
os.remove(file_name)
f = open(file_name, "a")
f.write(str(class_))
f = open(file_name, "ba")
f.write(bytes(str(class_), "UTF8"))
f.close()