A RedM anti-cheat and abuse prevention for Vorp
- Spam click auto kick
- AFK warning and auto kick
- Server Network check and auto kick
- Discord webhook integration
- Discord export API
- Auto Cross Site Scripting (XSS) attack prevention on player connections
- Resource Injection Prevention
- Database Group check
- Speed (Time) Check
- Resource Version Check export APIs
- Github Release(tag) based check
- Github Version file based check
- Player Bad Behavior Prevention export APIs for external scripts
- Profanity Filter for any string
- String XSS Check
- Blacklist Option
- Anti Spawn Blacklist Object
- Anti Spawn Blacklist Weapon
- Anti Health Hack
- Download this repo
- Copy and paste
bcc-anticheat
folder toresources/bcc-anticheat
- Add
ensure <YOUR_RESOURCE_NAME>
to yourserver.cfg
file - Now you are ready to get coding!
This API will allow you to add a version check to your resource.
How to use Github Releases
Create a Release and tag with the version number
Correct: 1.0.0
Wrong: v1.0.0
Add the following contents to your lua server
local versioner = exports['bcc-anticheat'].versioner()
local repo = 'https://github.com/VORPCORE/vorp_inventory-lua
versioner.checkRelease(GetCurrentResourceName(), repo)
Create a file called
version
with the following contents
<1.3>
- More awesome updates
<1.1>
- Some awesome updates
<1.0>
- My first Update
Add the following contents to your lua server
local versioner = exports['bcc-anticheat'].versioner()
local repo = 'https://github.com/VORPCORE/
versioner.checkFile(GetCurrentResourceName(), repo)
local mystring = 'What the crap is this mouse'
local filter = '*****'
local profanity = exports['bcc-anticheat'].profanity()
local cleaned = profanity.filter(mystring, filter)
print(cleaned)
-- prints out: "What the ****"
local mystring = 'What the crap is this mouse'
local filter = '*****'
local profanity = exports['bcc-anticheat'].profanity()
profanity.addToList({
'sad',
'cat',
'mouse'
})
local cleaned = profanity.filter(mystring, filter)
print(cleaned)
-- prints out: "What the **** is this ****"
This API allows you to easily add Discord webhooks messages to your scripts.
local discord = exports['bcc-anticheat'].discord()
discord.sendMessage('webhookurl', 'My Script', 'https://cdn2.iconfinder.com/data/icons/frosted-glass/256/Danger.png', 'user123', 'this user is awesome')
Add custom embeds
local discord = exports['bcc-anticheat'].discord()
discord.sendMessage('webhookurl', 'My Script', 'https://cdn2.iconfinder.com/data/icons/frosted-glass/256/Danger.png', 'user123', 'this user is awesome'{
{
{
color = 11342935,
title = 'some times',
description = 'awesomesauce'
},
{
color = 11342935,
title = 'some other time',
description = 'awesomesauce'
},
}
})
Cross Site Scripting Prevention (XSS)
local mystring = '<iframe src="badactor"></iframe>'
local stringy = exports['bcc-anticheat'].strings()
local isxss = stringy.xss(mystring)
print(isxss)
-- prints out: true
- Add other commonly exploited key spams
- Detect Menus better
- Multi-Framework support
- Open to suggestions!