Required Identifiers

This section covers how to setup the required identifiers for the AntiCheat.

Introduced in 3.93, WX AntiCheat now allows you to setup the required player identifiers to be able to join the server.

Config

wx.NeededIdentifiers = {
    ["fivem"] = true,   
    ["license"] = false, 
    ["discord"] = false,
    ["steam"] = false,  
}

By enabling each identifier, players without the required identifier won't be allowed to join the server. This is really useful if you want to add some extra layer of security to your server, as most cheaters have only the license: identifier.

Identifiers

FiveM

The FiveM identifier has the following format: fivem:0000000. Every player that links their CFX.re account ingame will have this identifier. You can find out your FiveM identifier by opening your CFX.re forum account, go to "Summary" and click "Expand". FiveM Identifier FiveM Identifier 2

License

The license identifier has the following format: license:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX. Every player has this identifier, as you have to link your Rockstar account to your FiveM account.

Discord

The discord identifier has the following format: discord:DISCORDUSERID - where DISCORDUSERID is the player's linked Discord user ID. Every player that links their Discord account with FiveM will have this identifier.

Steam

The steam identifier has the following format: steam:000000000000000. This identifier is automatically assigned to player while Steam with account logged in is running in the background. You can obtain the Steam profile of the player from the Steam ID by following this method:

  • Grab the Steam identifier without the "steam:" prefix
  • You now have the steam ID in hexadecimal format, convert it to decimal
  • With the decimal ID, parse it to the steam profiles URL:
  • https://steamcommunity.com/profiles/DECIMAL_ID

Or you can use the following lua function:

local function getSteamProfile(steamId)
    local steamIdStripped = steamId:gsub("steam:", ""); -- Remove the "steam:" prefix
    local steamDec = tostring(tonumber(steamIdStripped,16)); -- Convert the stripped ID from hex to decimal

    return "https://steamcommunity.com/profiles/" .. steamDec; -- Return the profile URL
end

getSteamProfile("steam:11000010000D0E0")

IMPORTANT : This identifier will work only if you set up your Steam API Key in your server.cfg file. (How?)