Back to Blog
Tutorial 14 min read April 4, 2026

How to Add a Social Deduction Minigame to Your FiveM Server (2026)

Complete guide to installing and running an Among Us-style social deduction game inside FiveM. Covers lobby creation, role assignment, voting mechanics, and full configuration for QBCore, ESX & QBOX servers.

fivem among us fivem imposter fivem social deduction fivem minigame script fivem party game qbcore scripts esx scripts fivem lobby system fivem voting system

Why Social Deduction Games Work Perfectly in FiveM

In 2026, keeping players engaged on your FiveM server means offering more than just jobs and car dealerships. Players crave interactive social experiences — moments that create real tension, laughter, and memorable stories. Social deduction games like Among Us proved that the formula works: one impostor hides among the group, and the group must figure out who it is through observation, discussion, and voting.

Now imagine that same experience running inside your FiveM server, with your players' actual characters, mugshots, and names. No alt-tabbing to another game. No external apps. Just pure roleplay-integrated social deduction running on a premium Vue 3 NUI.

That is exactly what Alone Imposter delivers.


What Is Alone Imposter?

Alone Imposter is a FiveM resource that brings a full social deduction game loop into your server. One player becomes the impostor, and the rest of the lobby must identify them through discussion and a structured voting system.

Core Features

FeatureDescription
Proximity InvitesHost invites nearby players within a configurable radius
Mugshot Player CardsEach player is represented by their in-game mugshot
Role RevealDramatic reveal screen showing who is the impostor
Discussion PhasePlayers debate and strategize before voting
Voting SystemTimed voting with visible tallies and elimination
Result ScreenClear outcome showing winners and the impostor reveal
Replay SystemJump straight back into a new round without recreating the lobby
Vue 3 + Vite NUIPremium interface that feels native and responsive
BilingualFull English and Spanish language support

The entire flow — from creating a lobby to seeing the final result — runs inside the FiveM client through a polished NUI overlay.


How the Game Loop Works

Understanding the game flow is key to configuring it for your server:

1. Lobby Creation

Any player can open the UI (via command or key binding) and create a new game. They become the host and the first player in the lobby.

2. Inviting Players

The host uses the invite system, which automatically detects nearby players within the configured radius (Config.InviteRadius). Selected players receive an invite notification in their UI. This proximity-based system encourages players to physically gather before starting — great for roleplay immersion.

3. Starting the Game

Once the minimum player count (Config.MinPlayers) is reached, the host can start the round. The maximum is controlled by Config.MaxPlayers.

4. Role Reveal

A dramatic role reveal screen shows each player their assignment. One player is randomly selected as the impostor. The reveal screen stays visible for Config.RoleRevealTime seconds.

5. Discussion Phase

Players discuss who they think the impostor is. This happens through voice chat (proximity or radio), creating natural roleplay conversations. The tension of not knowing who to trust is what makes this format work.

6. Voting Phase

A timed voting phase begins (Config.VoteTime seconds). Each player casts their vote against who they believe is the impostor. Votes are tallied in real time on the NUI.

7. Result

The game reveals the outcome — did the crew successfully identify the impostor, or did the impostor survive? Players see the full breakdown, and the host can immediately start a new round.


Installation Guide

Requirements

You need one of these frameworks running on your server:

  • QBCore
  • QBX Core
  • ESX

Steps

  1. Place the alone-imposter folder in your server resources directory
  2. Ensure your framework resource starts before the imposter script
  3. Add it to your server.cfg:
cfg
ensure alone-imposter
cfg
ensure qbx_core
ensure alone-imposter

Or for ESX:

cfg
ensure es_extended
ensure alone-imposter

The resource ships with pre-compiled NUI files in the html folder. You do not need Node.js on your production server unless you want to modify the UI source code.


Configuration Deep Dive

All settings live in config.lua. Here is the recommended production profile:

lua
Config.Language = 'en'

Config.InviteRadius = 10.0

Config.MinPlayers = 2

Config.MaxPlayers = 10

Config.VoteTime = 30

Config.RoleRevealTime = 6

Config.Command = 'imposter'

Config.UseKeyMapping = true

Config.KeyMappingDefault = 'F7'

Config.KeyMappingDescription = 'Toggle Alone Imposter UI'

Config.DebugMode = false

Key Settings Explained

  • InviteRadius: Controls how close players must be to receive invitations. 10.0 is a good default for most scenarios. Increase to 15.0 for larger gathering areas.
  • MinPlayers: Set to 2 for testing or small groups, 4-5 for competitive rounds.
  • MaxPlayers: Up to 10 players per lobby. This keeps rounds manageable and voting meaningful.
  • VoteTime: 30 seconds is tight enough to maintain pressure while giving players time to decide.
  • UseKeyMapping: When enabled, players can rebind the UI toggle in their FiveM settings — a significant UX improvement.

Framework Compatibility

Alone Imposter automatically detects your running framework and adapts accordingly:

FrameworkSupportCharacter Names
QBCoreFullResolved from QBCore player data
QBX CoreFullResolved from QBX player data
ESXFullResolved from ESX player object
No frameworkFallbackUses FiveM player name

The script resolves character names from your active framework, so players see proper roleplay names on mugshot cards instead of Steam names.


Why Your Players Will Love It

Social deduction games tap into fundamental social dynamics — trust, deception, observation, and group decision-making. Inside a roleplay server, these dynamics are amplified because players already have established characters and relationships.

The impostor isn't just "Red Sus" — it's the mechanic from the shop down the street. The discussion isn't anonymous text chat — it's voice roleplay with the people you interact with daily on the server.

This is content that creates stories, and stories are what keep players coming back.


Ready to Add Social Deduction to Your Server?

Alone Imposter is the only premium social deduction minigame built for FiveM with a Vue 3 NUI, mugshot-based player cards, and full framework support for QBCore, ESX & QBOX.

→ Get Alone Imposter by Alone Studios

Need help setting it up? Join our Discord community — we're always ready to help.

Ready to Add Social Deduction to Your Server?

Alone Imposter delivers everything discussed in this article — proximity lobbies, mugshot player cards, voting system, Vue 3 NUI. QBCore, ESX & QBOX.

Get Alone Imposter on Tebex