local hook = require("hooks")
function main()
if not isSampLoaded() or not isSampfuncsLoaded() then return end
while not isSampAvailable() do wait(100) end
sampChatHook = hook.jmp.new("void(__thiscall *)(uintptr_t this, uint32_t type, const char* text, const char* prefix, uint32_t color, uint32_t pcolor)", sampChatHook, getModuleHandle('samp.dll') + 0x64010)
while true do
end
end
function sampChatHook(this, type, text, prefix, color, pcolor)
if text:find("TEST TEST") then
print(this)
print(type)
print(text)
print(prefix)
print(color)
print(pcolor)
end
end