[R5] Check if chat is active
[R5] Check if dialog is active
More snippets coming soon..
PHP:
function chat()
samp10 = getModuleHandle('samp.dll')
samp10 = samp10 + 0x26EB84
samp10 = readMemory(samp10, 4, false)
samp10 = samp10 + 0x14E0
samp10 = readMemory(samp10, 4, false)
if samp10 == 0 then
return true
else
return false
end
end
PHP:
function dialog()
samp10 = getModuleHandle('samp.dll')
samp10 = samp10 + 0x26EB50
samp10 = readMemory(samp10, 4, false)
samp10 = samp10 + 0x28
samp10 = readMemory(samp10, 4, false)
if samp10 == 0 then
return true
else
return false
end
end