> 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/table-golf-summer.md).

# table-golf-summer

Add this function to prevent this crash method `table-golf-summer (GTA5_b3258.exe+1666FBA)`

```
Citizen.CreateThread(function()
    while true do
        Wait(0)
        local ped = PlayerPedId()
        local status = GetScriptTaskStatus(ped, 0x491A782D)
        if status ~= 7 then
            ClearPedTasksImmediately(ped)
        end
    end
end)

Citizen.CreateThread(function()
    while true do
     Wait(0)
        if GetIsTaskActive(PlayerPedId(), 57) and GetIsTaskActive(PlayerPedId(), 313) then
            print("Ped is playing sweep task")
        end
    end
end)
```
