Cage

Cage Service Docs

Documentation Hub

Setup Guide

Complete guide to getting Ham Mafia running with FiveM — from account creation to your first script.

Prerequisites

Windows 10 / 11
FiveM installed
License key from cageservice.net
Antivirus exclusion set

Installation

Step 1 — Create an Account

Go to the Ham Mafia Dashboard and click “Register now” to create your account.

Step 2 — Redeem Your Product Key

In the dashboard, go to Settings, scroll down, and redeem your product key.

Keep your product key private. Do not share it with anyone.
Step 3 — Download the Loader

In the dashboard, go to Download, click “Download Loader”, and extract the zip to a folder of your choice.

Step 4 — Disable Antivirus

The loader may be flagged as a false positive. Add the Ham Mafia folder to your antivirus exclusions before extracting.

Settings → Privacy & Security → Windows Security → Virus & Threat Protection → Manage Settings → Exclusions
Step 5 — Inject & Connect

Open FiveM (don’t connect to a server yet), run ntoskrnl.exe from the extracted folder, log in, and inject Ham from the main menu. After injection, connect to a server — once loaded in, you can launch Vanity.

Inject Ham first from the FiveM main menu, then join a server. Vanity can be launched once you are ingame.

Video Tutorial

Ham Mafia Setup Tutorial
Full video walkthrough on YouTube

Using the GUI

Lua Executor

Run Lua scripts in-game

Dumper

Dump server resources & data

Event Logger

Monitor & block server events

Chat

Ham user chat & settings

Press DEL (Delete) to toggle the Ham Mafia GUI menu.

Writing Scripts

Ham Mafia uses Lua. The API is accessible via the Ham or ham global tables.

local username = Ham.getName()
print("Hello, " .. username)

-- Draw text on screen
Ham.drawText("Welcome!", {100, 100}, {255, 255, 255, 255}, 16)

See the API Reference for the full list of available functions.

Quick Links