Setup Guide
Complete guide to setting up and using Ham Mafia with FiveM.
1. Create an Account
- Go to the Ham Mafia Dashboard.
- Click "Register now" and create your account.
2. Redeem Your Product Key
- Purchase a license key at cageservice.net if you haven't already.
- In the dashboard, go to Settings.
- Scroll down and redeem your product key.
Keep your product key private. Do not share it with anyone.
3. Download the Loader
- In the dashboard, go to Download.
- Click "Download Loader" to get the zip file.
- Extract the zip to a folder of your choice.
4. Disable Antivirus
- The loader may be flagged as a false positive by antivirus software.
- Add the Ham Mafia folder to your antivirus exclusions before extracting.
- For Windows Defender: Settings → Privacy & Security → Windows Security → Virus & Threat Protection → Manage Settings → Exclusions.
5. Inject & Connect
- Open FiveM (do not connect to a server yet).
- Run
ntoskrnl.exefrom the extracted folder and log in with your dashboard account. - While in the FiveM main menu, inject Ham.
- 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
- Press
DEL(Delete) to toggle the Ham Mafia GUI menu. - 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).
- Player features like god mode, noclip, aimbot, and more are part of Vanity — the Lua menu that can be purchased separately.
