LogoMIKADO/ Lua 5.4.7 VM Docs
Discord SupportGet Key
FiveM High-Performance Lua 5.4.7

Developer & Community API Reference

Zero-sandbox fiber architecture, Structured Exception Handling (SEH) crash isolation, 10MB+ mega-menu capacity, and direct SIMD vector arithmetic for FiveM.

5,000+ Natives Mapped
OneSync 2048 Synchronized
SEH Memory Guard Active
Auto-Coroutine Fibers

1. Architecture & Execution Model

Core Engine

The executor runs an un-sandboxed Lua 5.4.7 environment embedded directly into the FiveM/GTA V game engine with auto-coroutine fiber support.

Lua 5.4
-- Auto-Coroutine Fiber Execution
-- Call Wait() anywhere, even in root file scope:
print("Initializing script fiber...")
Wait(1000)
print("Resumed cleanly after 1000ms with zero C-call boundary errors")

2. Mikado Framework API (Mikado.*)

Framework

Dedicated high-level API wrapper for player state, visuals, vehicle spawner, in-world text, memory, and HTTP clients without raw native boilerplate.

Lua 5.4
-- Mikado Player & Visuals Framework
local myPed = Mikado.Player.GetPlayerPed(Mikado.Player.GetLocalPlayer())
local coords = Mikado.Player.GetCoords(myPed)

Mikado.Player.SetHealth(200)
Mikado.Player.SetArmour(100)
Mikado.Player.SetInvincible(true)
Mikado.Weapons.SetDamageModifier(2.5) -- 250% damage boost
Mikado.Visuals.Notify("Mikado Framework", "Modules Loaded Successfully", 3.0)

3. Cfx & FiveM Core Shims

Compatibility

Full compatibility layer for Citizen, CreateThread, Citizen.Await, and backtick JoAAT identifier hashes.

Lua 5.4
-- Thread Fiber and Backtick Hashes
CreateThread(function()
    local carHash = `adder`
    local gunHash = `weapon_carbinerifle`
    while true do
        Citizen.Wait(1000)
        print("Heartbeat OK")
    end
end)

4. Universal Native Calling (invoke, invokeV3, f)

Natives

Call any of GTA V 5,000+ native functions by 64-bit hex hash, decimal hash, or JoAAT name hash with IEEE-754 float marshaling.

Lua 5.4
local ped = PlayerPedId()

-- Teleport ped via SET_ENTITY_COORDS_NO_OFFSET (0x239A3351AC1DA385)
invoke('0x239A3351AC1DA385', ped, f(120.0), f(-1500.0), f(35.0), false, false, false)

-- Read vector3 position via GET_ENTITY_COORDS (0x3FEF770D40960D5A)
local pos = invokeV3('0x3FEF770D40960D5A', ped, true)
print(string.format("Position: X=%.2f, Y=%.2f, Z=%.2f", pos.x, pos.y, pos.z))

5. Vector Math & Swizzling

Math

Native vector2, vector3, and vector4 types with full component swizzling (.xy, .zyx) and SIMD-accelerated commutative operators.

Lua 5.4
local pos = vector3(15.0, 30.0, 45.0)

local xy  = pos.xy   -- vector2(15.0, 30.0)
local zyx = pos.zyx  -- vector3(45.0, 30.0, 15.0)

-- Commutative scalar math
local doubled = 2.0 * pos
local divided = pos / 2.0

6. Network & Event Dispatcher

Networking

Trigger server and client events with automatic msgpack serialization and latent throttling.

Lua 5.4
-- Trigger standard and latent events
TriggerServerEvent("esx:giveInventoryItem", "bread", 5)
TriggerLatentServerEvent("bank:deposit", 50000, 250000)

-- Listen for client event
local handler = AddEventHandler("custom:alert", function(msg)
    print("Alert: " .. tostring(msg))
end)

7. Player & Entity APIs (OneSync 2048)

OneSync

Enumerate all active players on standard and OneSync 2048 servers with live coordinates and health tables.

Lua 5.4
-- OneSync Player Enumerator
local players = online.players()
for _, p in ipairs(players) do
    print(string.format("[%d] %s | HP: %d/%d | Pos: (%.1f, %.1f, %.1f)",
        p.id, p.name, p.hp, p.max_hp, p.x, p.y, p.z))
end

8. Extended Runtime Cheats (runtime.*)

Runtime

Direct C++ engine hooks for camera NoClip, super jump, custom FOV, weapon spawners, and mini-map notifications.

Lua 5.4
-- High-level C++ Engine Features
runtime.noclip(true)            -- Camera-aim NoClip
runtime.godmode(true)           -- Player invincibility
runtime.teleportToWaypoint()    -- Teleport to map marker
runtime.setFov(95.0)            -- Custom FOV
runtime.giveWeapon("WEAPON_CARBINERIFLE", 9999)
runtime.toast("Script Loaded!", 3.0)

9. Direct Memory Access (runtime.memory*)

Memory

Read and write arbitrary process memory via 64-bit pointers with SEH crash protection.

Lua 5.4
local pedPtr = 0x140000000
local iVal = runtime.memoryReadInt(pedPtr + 0x280)
local fVal = runtime.memoryReadFloat(pedPtr + 0x320)

runtime.memoryWriteInt(pedPtr + 0x280, 1000)
runtime.memoryWriteFloat(pedPtr + 0x320, 0.0)

10. Custom In-Menu UI (MachoWindows)

GUI

Render custom GUI windows, tabs, buttons, checkboxes, and sliders natively inside the executor UI.

Lua 5.4
MachoWindows = MachoWindows or {}

table.insert(MachoWindows, {
    title = "My Script Menu",
    open = true,
    tabs = {
        {
            name = "Combat",
            groups = {
                {
                    title = "Aimbot & Mods",
                    items = {
                        {
                            type = "checkbox",
                            title = "Godmode",
                            val = false,
                            fn = function(toggled) runtime.godmode(toggled) end
                        }
                    }
                }
            }
        }
    }
})