Cage

Cage Service Docs

Documentation Hub

Setup Guide

Complete guide to setting up and using Ham Mafia with FiveM.

1. Create an Account

  1. Go to the Ham Mafia Dashboard.
  2. Click "Register now" and create your account.

2. Redeem Your Product Key

  1. Purchase a license key at cageservice.net if you haven't already.
  2. In the dashboard, go to Settings.
  3. Scroll down and redeem your product key.
Keep your product key private. Do not share it with anyone.

3. Download the Loader

  1. In the dashboard, go to Download.
  2. Click "Download Loader" to get the zip file.
  3. Extract the zip to a folder of your choice.

4. Disable Antivirus

  1. The loader may be flagged as a false positive by antivirus software.
  2. Add the Ham Mafia folder to your antivirus exclusions before extracting.
  3. For Windows Defender: Settings → Privacy & Security → Windows Security → Virus & Threat Protection → Manage Settings → Exclusions.

5. Inject & Connect

  1. Open FiveM (do not connect to a server yet).
  2. Run ntoskrnl.exe from the extracted folder and log in with your dashboard account.
  3. While in the FiveM main menu, inject Ham.
  4. After injection, connect to a server. Once fully 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.

6. Video Tutorial

Watch the full setup walkthrough:

Ham Mafia Setup Tutorial on YouTube

7. Writing Scripts

Ham Mafia uses Lua as its scripting language. 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.

8. Using the GUI

  1. Press DEL (Delete) to toggle the Ham Mafia GUI menu.
  2. The GUI includes: Lua Executor, Dumper, Menus, Event Logger, Event Blocker, Chat (Ham user chat), and Settings (hotkey, block input, extended dumping, enable chat, anti teleport).
  3. Player features like god mode, noclip, aimbot, and more are part of Vanity — the Lua menu that can be purchased separately.

Quick Links