> For the complete documentation index, see [llms.txt](https://gabjeksuper.gitbook.io/fiveguard-configuration/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gabjeksuper.gitbook.io/fiveguard-configuration/block-expolits/block-crash-methods/before-reading/119626b-101c.md).

# 119626B / 101C

Add this function to prevent this crash method&#x20;

* `GTA5_b3258.exe+119626B`
* `GTA5_b3258.exe+101C`

```lua
local VIOLATIONS     = {}
local MAX_VIOLATIONS = 3
local lastHandle     = {}

local function flagPlayer(src, reason, detail, instant)
    if instant then
        DropPlayer(src, "[AC] " .. reason)
        VIOLATIONS[src] = nil
        lastHandle[src] = nil
        return
    end

    VIOLATIONS[src] = (VIOLATIONS[src] or 0) + 1
    print(("[AC] %s | %s | %s | x%d"):format(src, reason, detail, VIOLATIONS[src]))
    if VIOLATIONS[src] >= MAX_VIOLATIONS then
        DropPlayer(src, "[AC] " .. reason)
        VIOLATIONS[src] = nil
        lastHandle[src] = nil
    end
end

AddEventHandler("playerDropped", function()
    VIOLATIONS[source] = nil
    lastHandle[source] = nil
end)

CreateThread(function()
    while true do
        Wait(500)
        for _, src in ipairs(GetPlayers()) do
            local ped = GetPlayerPed(src)
            if ped and ped > 0 then

                if lastHandle[src] and math.abs(ped - lastHandle[src]) > 50000 then
                    flagPlayer(src, "FootIK_HandleJump",
                        ("Handle: %d → %d"):format(lastHandle[src], ped), true)
                end

                lastHandle[src] = ped

                if IsPedRagdoll(ped) or GetEntityHealth(ped) == 0 then
                    if NetworkGetEntityOwner(ped) ~= tonumber(src) then
                        flagPlayer(src, "FootIK_RagdollSpoof",
                            ("Owner: %d | Src: %s"):format(NetworkGetEntityOwner(ped), src), true)
                    end
                end
            end
        end
    end
end)
```

This function needs to be added **server side**
