Cage

Cage Service Docs

Documentation Hub

FAQ

Frequently asked questions about Ham Mafia.

General

What is Ham Mafia?
The HamMafia Executor is a FiveM Lua executor with a built-in drawing API, HTTP client, input handling, dumper, event logger, event blocker, and more. Player features like god mode, aimbot, and noclip are available through Vanity, the Lua menu that can be purchased separately.
How do I get a license?
You can purchase a license at cageservice.net. After purchase, you will receive your license key and download link.
Which scripting language does Ham use?
Ham Mafia uses Lua. The API is accessible via the Ham or ham global tables. All functions are available in both camelCase and lowercase.

Installation & Injection

My antivirus is blocking the download
This is a false positive. Add the Ham Mafia folder to your antivirus exclusions. For Windows Defender: Settings → Privacy & Security → Windows Security → Virus & Threat Protection → Manage Settings → Exclusions.
"Program is incompatible" error
First open FiveM, then open the loader, and inject the HamMafia Executor directly after opening. Do not wait too long between launching FiveM and injecting.
"Could not unload driver" error
Download and open the 3.reg registry fix file and restart your PC.
"Failed to load driver" error
Uninstall Windows Update KB5070311. This update causes conflicts with the driver loading process.

Go to: Settings → Windows Update → Update History → Uninstall Updates → find KB5070311 and uninstall it. Then restart your PC.
"Failed resolving imports" or "ADVAPI32" error
Try the following steps in order:

1. Restart your PC (this fixes it in most cases)
2. Make sure all antivirus software is disabled. Ideally, use software that completely blocks your antivirus system — we recommend dControl
3. Download and open the 3.reg registry fix file and restart your PC
4. If still not working, rename the loader to ntoskrnl and restart your PC
"adhesive.dll" crash after injecting
Make sure that FiveM is set to the "Release" version in the FiveM settings. Using other builds (Beta, Latest) can cause this crash.
"D3DCOMPILER_43.dll" missing error
You need to install the DirectX End-User Runtimes:

1. Download from: microsoft.com/download
2. Run the installer
3. Restart your PC
No menu tab after injecting
Make sure you redeemed the menu key on the same Ham Mafia account as the HamMafia Executor key: hammafia.cc

If you still don't have a menu tab after injecting, use a VPN and inject again.
How do I open the menu?
Press DEL (Delete) to toggle the Ham Mafia GUI. The GUI includes a Lua Executor, Dumper, Menus section, 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, etc. are part of Vanity — the Lua menu that can be purchased separately.
No icons after injecting
Download the utils.rar and extract the folder to C:\ham\utils.
Loader not opening
Download and use this alternative loader.

Scripting

Where is the full API documentation?
See the API Reference page for the complete list of all functions with syntax, parameters, and examples.
My drawing functions are not showing anything
All drawing functions (drawText, drawRect, etc.) must be called inside a render callback or loop. They draw for a single frame only, so you need to call them continuously.
HTTP requests are failing
Check that the URL is correct. If the server uses HTTPS with a self-signed certificate, set the insecure parameter to true. Use response.error to see the error message.

Still need help?

Join our Discord server for direct support from the team and community.

Join Discord