Last checked: 21 November 2026.

Most server takeovers do not start with a clever hacker. They start with a free script someone installed without reading it. This guide shows you how to look inside a FiveM resource and how to spot the patterns that should stop you.

You do not need to be a programmer. You need 10 minutes, VS Code, and the willingness to say no to a script you cannot read.

What a backdoor actually is

A backdoor is hidden code inside a script that lets someone else do things on your server. It might let them:

  • Run commands as an admin, or give themselves money and items.
  • Read or copy your database, including player identifiers, emails and IPs.
  • Spawn objects, vehicles or peds, or crash the server on demand.
  • Download and run more code later, so the file you checked is not the file that runs next week.

The important part is that a backdoor usually looks like a normal feature. That is why the checks below focus on patterns, not on one known bad file.

Warning signs before you even open the folder

  • It is a free copy of a paid script. This is the single biggest risk. Paid resources are leaked constantly, and the leaked copy is often modified.
  • The seller has no official store or repository. A script that only exists in a Discord DM or a Telegram channel has no history and no accountability.
  • The download is a mirror, not the official source. A reupload can be changed at any time.
  • The description promises an "unlocked" or "deobfuscated" version of something that is normally protected.
  • The resource is much larger than its feature. A small job script that contains megabytes of files deserves a look.

None of these prove a backdoor. Together, they mean slow down.

The manual check, step by step

Step 1: Unzip it somewhere safe

Unzip the resource into an empty folder that is not your server folder. Do not start it on a live server to "see if it works". You are inspecting it first.

Step 2: Open the folder in VS Code

Open VS Code, choose File, then Open Folder, and pick the resource folder. You now have the whole thing in one window.

Step 3: Read fxmanifest.lua first

The manifest lists every file the resource loads. Check:

  • The `author`, `description` and `version` fields. Do they match the seller or the repository you got it from?
  • Every entry in `client_script`, `server_script`, `shared_script` and `files`. If there is a file you did not expect, open it.
  • `escrow_ignore` and any escrow or asset protection files. Escrow is normal for paid scripts, but it means part of the code is unreadable. You are trusting the seller for that part.
  • Dependencies. A resource that quietly depends on an odd third-party resource is worth questioning.
  • File paths that point outside the resource, or names that look like random strings.

Step 4: Search the whole folder for the risky words

Press Ctrl+Shift+F in VS Code. That opens Search in Files across the open folder. Search for each of these, one at a time, and read every match:

  • PerformHttpRequest: the FiveM function that sends data to a web address. A legitimate script may use it for a version check, a Discord log or a Tebex purchase. Read the URL. If it points to a domain you do not recognise, treat the script as unsafe.
  • load( and assert(load(: Lua's way of running code built from a string. Scripts sometimes use it for configs, but it is also the standard way to hide a payload.
  • loadstring: an older form of the same idea.
  • os.execute and io.popen: run operating system commands. Almost no normal FiveM resource needs these.
  • io.open: reads or writes files outside the resource. Sometimes legitimate for logs, often not.
  • SetHttpHandler: creates a web endpoint on your server. Legitimate for APIs, dangerous if you did not expect it.
  • RegisterCommand: list every command the script creates. A command the description never mentions is a red flag, especially one with false (or nothing) as the third argument, because then anyone can use it.
  • DROP TABLE and TRUNCATE: SQL that removes whole tables. A resource that does this has no business on your server.
  • base64, string.char and \x: ways of hiding readable text as encoded data. One or two uses can be normal, but a wall of them is not.

Do not panic at a single match. Read the line, read the surrounding function, and ask what it is doing. The question is always the same: why does this file need to talk to that address or run that string?

Step 5: Look at the shape of the code

  • One enormous line with no spaces or readable names is obfuscated code. You cannot check it, so do not run it.
  • Files with meaningless names like a.lua, x1.lua or names made of random letters are a warning.
  • Many files that are not referenced in the manifest may be leftovers, or may be loaded dynamically later.
  • Code that checks for a specific player name or identifier and behaves differently for that player. That is a common way to give one person quiet admin power.
  • Events with generic names such as event, test or update registered by the server, especially if any client can trigger them. A server event that trusts whatever the client sends, without checking permissions, can be abused.

Step 6: Compare with the official source

If the script comes from a GitHub repository, download the release from that repository and compare:

  • Does the file list match?
  • Does the manifest match?
  • Does the repository have a history, issues and a licence?

A resource that claims to be from a repository but does not match it is not from that repository.

Step 7: Test on a throwaway server

If the script passes the reading checks, test it on a staging server with no players and a copy of your database. Watch the console. Then check that no new admin accounts, odd commands or unexpected files appeared. Only then move it to the live server, at a quiet time, with a backup taken first.

What to do if you find a backdoor

  1. Stop the resource and remove it from the server.
  2. Change the database password and the txAdmin password.
  3. Check for admin accounts, commands and permissions you did not create.
  4. Restore the database from a backup taken before the script was installed.
  5. Tell your players what happened and what data may have been seen. Short and honest beats silence.

Free tools for the check

  • VS Code is the main tool, and its Search in Files does most of the work. It is free. See our FiveM owner tools guide for setup.
  • txAdmin's console and logs help you see what a resource does when it starts.
  • A staging server is the most useful safety tool you can have, and it costs nothing but disk space.

You may see "FiveM backdoor scanner" tools offered online. We are not recommending one here, because the ones we could check were unaudited, abandoned, or themselves closed-source. A scanner you cannot read is another script you are trusting. Search manually, and if you do try a scanner, run it on a copy and read its code first.

The honest limit

This check catches the common patterns. It does not catch a backdoor hidden in escrowed code, or in a script that downloads its payload after a delay. That is why the final layer is a server-side anticheat that watches behaviour, not just files.

Server-side anticheat is also how you catch what slips through: unexpected money changes, impossible item counts, commands from players who should not have them. We're launching our own server-side anticheat soon.

These habits will matter just as much when the next generation of roleplay servers arrives, so it is worth reading our take on whether FiveM will work with GTA 6 before you rebuild your stack.

Bottom line

Open the folder, read the manifest, search for the words above, and read every match. If you cannot explain what a line does, do not install the script. That rule alone will keep most backdoors off your server.

If you would rather have someone build and secure the server for you, that is what we do: our server building service.