local samp = require 'samp.events'
function samp.onSendPlayerSync(data)
printStringNow(data.keysData..'~n~'..getKeys(data.keysData), 1000)
end
function getKeys(data)
local keys = {
['Tab'] = 1,
['C'] = 2,
['Ctrl'] = 4,
['Sprint'] = 8,
['Enter'] = 16,
['Jump'] = 32,
['RMB'] = 128,
['MMB'] = 512,
['Alt'] = 1024,
['Num 4'] = 8192,
['Num 6'] = 16384,
}
local pressed = ''
for k, v in pairs(keys) do
if bit.band(data, v) > 0 then
pressed = pressed == '' and k or pressed..' + '..k
end
end
return pressed == '' and 'No' or...