local memory = require 'memory'
local enable = true
function main()
if not isSampfuncsLoaded() or not isSampLoaded() then return end
while not isSampAvailable() do wait(100) end
displayHud(false)
memory.setint8(0xBA676C, 2, true)
sampRegisterChatCommand("hudinvis", function()
enable = not enable
if not enable then
displayHud(true)
memory.setint8(0xBA676C, 0, true)
else
displayHud(false)
memory.setint8(0xBA676C, 2, true)
end
end)
wait(-1)
end