AntiCheat Whitlists
This section covers how to setup whitelists for the AntiCheat.
With WX AntiCheat, you can whitelist things like players, objects and more. This section covers how to setup whitelists for the AntiCheat.
Object Whitelisting
Object whitelisting is handled through the config file, specifically the wx.whitelistedObjects
table. This table contains a list of objects that will be ignored by the AntiCheat. By default, it contains all objects from scully_emotemenu.
wx.whitelistedObjects = {
[`prop_pencil_01`] = true,
-- more objects here
}
Explanation
[`object_name`: string] = boolean
- The table is structured as a key-value pair, where the key is the object name and the value is a boolean indicating whether the object should be ignored or not.
object_name
must be parsed between a pair of backticks (`).- The value can be either
true
orfalse
.
Why backticks?
As Linden perfectly explained:
GetHashKey converts a string into a hash each time the function is called. Using backticks will instead convert the string into hash during compilation, so any checks will have it hashed in the first place.
Vehicle Whitelisting
Vehicle whitelisting is handled the same way as object whitelisting, but with the wx.vehicleBlacklist
table and instead of adding vehicles to the table, you remove them. This table contains a list of vehicles that will be blocked by the AntiCheat.
To remove a vehicle from the blacklist, set the value to false
or comment the entry out.
wx.vehicleBlacklist = {
["oppressor"] = false,
}
Explanation
[`vehicle_model`: string] = boolean
- The table is structured as a key-value pair, where the key is the vehicle name and the value is a boolean indicating whether the vehicle should be blocked or not.
vehicle_name
must be parsed between a pair of backticks (`).- The value can be either
true
orfalse
.
Ped Whitelisting
Ped whitelisting is handled through the config file, specifically the wx.whitelistedPeds
table.
wx.whitelistedPeds = {
[`mp_m_freemode_01`] = true
}
Explanation
[`ped_model`: string] = boolean
- The table is structured as a key-value pair, where the key is the ped name and the value is a boolean indicating whether the ped should be ignored or not.
ped_name
must be parsed between a pair of backticks (`).- The value can be either
true
orfalse
.
Player Whitelisting
Player whitelisting is handled through server exports. See Exports - Whitelisting Players.