lua_thread.create(function()
while true do wait(0)
res, handle = getCharPlayerIsTargeting(playerHandle)
if res and doesCharExist(handle) and isKeyJustPressed(0x01) then
resid, Rid = sampGetPlayerIdByCharHandle(handle)
Rname = sampGetPlayerNickname(Rid)
sampAddChatMessage('Вы навелись на '.. Rname.. ' ['..Rid..'].', -1)
end
end
end)