Fraud ScammingWho may do fraud

Who may do fraud

Keep fraud to some players, by job, Discord role or FiveM license.

On this page

As it ships, anyone may. To keep fraud to some players, set permissions.enabled = true in config.lua and pick how they're chosen with permissions.method:

methodWho maySet up
'job'Players with one of these jobsjobs = { 'scammer', 'mafia' }, or the lowest grade of each that may: { scammer = 0, mafia = 2 }
'discord'Members of your Discord server with one of these rolesdiscord.guild (the server's id) and discord.roles (role ids), and a bot (below)
'license'These playerslicenses = { 'license:1a2b3c...' } (txAdmin shows a player's license; license: is optional)

A list, method = { 'job', 'discord' }, lets in players who pass any one of them.

Players who may not don't see tr_fraud's options on the third eye (ATMs, store registers, mailboxes, tellers, swiping cards, the check printer), the laptop won't sell them tr_fraud's apps, the apps they already have won't do anything for them, and the burner phone won't come out. Whatever they try anyway, the server refuses. They can still take things back out of a check printer.

Opening some parts to everyone

permissions.need says which parts need it. Set one to false to open that part to everyone:

PartWhat it covers
laptopThe apps (Skimmr, Fotoshop), swiping cards and the check printer
atmCloned cards at ATMs
moneyOrdersBuying money orders and cashing them
mailboxesGoing through mailboxes for checks
banksCashing forged checks
returnsBuying electronics with cloned cards and returning them
phoneThe burner phone

atm = false, say, lets anyone use a cloned card someone gave them.

Discord roles

A job change counts straight away. For 'discord', tr_fraud asks Discord through a bot:

Make a bot

Make an application at discord.com/developers/applications and copy its bot's token (the Bot page, Reset Token).

Invite it to your server

OAuth2 › URL Generator, scope bot, no permissions needed.

Put its token in server_config.lua

server_config.lua
discordToken = 'your bot token',

Not in config.lua: that file is sent to every player, and server_config.lua never leaves the server. Or leave it empty and add set tr_fraud_discord_token "your bot token" to server.cfg.

Copy the ids

In Discord, turn on Developer Mode (Settings › Advanced), then right click your server and the roles to copy their ids into permissions.discord.

Players need Discord running when they join FiveM, so it knows who they are. Their roles are asked for when they first try something, and again every discord.refresh minutes (5); if Discord doesn't answer, what it said last counts. If the token or server id is missing, the server console says so when tr_fraud starts.

Was this page helpful?

Still stuck? Open a ticket on Discord.Privacy